Package com.pnfsoftware.jeb.core
Interface IArtifact
- All Superinterfaces:
IEventSource,IUnitCreator
- All Known Implementing Classes:
Artifact
Base interface for artifacts. Artifacts form the basic item of analysis: they are loaded within
projects, can be analyzed or processed, and produce zero or more
units. Artifacts are unit creators.-
Method Summary
Modifier and TypeMethodDescriptionlongGet the timestamp at which this artifact was loaded into the project.getInput()Get the input data for the artifact.getName()Get the artifact name.getNotes()Get user-specific notes associated to the artifact.For artifacts, this method always return null.default IRuntimeProjectRetrieve the parentprojectthat owns this artifact.voidSet the artifact name.voidSet user-specific notes associated to the artifact.Methods inherited from interface com.pnfsoftware.jeb.util.events.IEventSource
addListener, countListeners, getListeners, getParentSource, insertListener, notifyListeners, removeListener, setParentSource
-
Method Details
-
getParentProject
Retrieve the parentprojectthat owns this artifact.- Returns:
-
getCreationTimestamp
long getCreationTimestamp()Get the timestamp at which this artifact was loaded into the project.- Returns:
- the epoch timestamp in milliseconds
-
getName
String getName()Get the artifact name.- Specified by:
getNamein interfaceIUnitCreator- Returns:
-
setName
Set the artifact name.- Parameters:
name- the new name
-
getNotes
String getNotes()Get user-specific notes associated to the artifact.- Returns:
- the current notes
-
setNotes
Set user-specific notes associated to the artifact.- Parameters:
notes- the new notes
-
getParent
IUnitCreator getParent()For artifacts, this method always return null. To retrieve the owner project, use getProject()- Specified by:
getParentin interfaceIUnitCreator- Returns:
-
getInput
IInput getInput()Get the input data for the artifact.- Specified by:
getInputin interfaceIUnitCreator- Returns:
- the input object
-