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 TypeMethodDescriptionlong
Get 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 IRuntimeProject
Retrieve the parentproject
that owns this artifact.void
Set the artifact name.void
Set 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 parentproject
that 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:
getName
in 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:
getParent
in interfaceIUnitCreator
- Returns:
-
getInput
IInput getInput()Get the input data for the artifact.- Specified by:
getInput
in interfaceIUnitCreator
- Returns:
- the input object
-