Package com.pnfsoftware.jeb.core
Class Artifact
java.lang.Object
com.pnfsoftware.jeb.core.events.JebEventSource
com.pnfsoftware.jeb.core.Artifact
- All Implemented Interfaces:
IArtifact,IUnitCreator,IEventSource
Basic implementation for a named artifact that takes a flexible
IInput object.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArtifactEmpty placeholder artifact backed by an empty byte array.Fields inherited from class com.pnfsoftware.jeb.core.events.JebEventSource
onEventCallCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the artifact creation timestamp.getInput()Get the input backing this artifact.getName()Get the artifact name.getNotes()Get the user notes associated with this artifact.Get the parent creator of this artifact.voidSet the input backing this artifact.voidSet the artifact name.voidSet the user notes associated with this artifact.toString()Methods inherited from class com.pnfsoftware.jeb.core.events.JebEventSource
addListener, countListeners, getListeners, getParentSource, insertListener, notifyListeners, notifyListeners, notifyListeners, removeListener, setParentSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.pnfsoftware.jeb.core.IArtifact
getParentProjectMethods inherited from interface com.pnfsoftware.jeb.util.events.IEventSource
addListener, countListeners, getListeners, getParentSource, insertListener, notifyListeners, removeListener, setParentSource
-
Field Details
-
EMPTY
Empty placeholder artifact backed by an empty byte array.
-
-
Constructor Details
-
Artifact
Create an artifact backed by the provided input object.- Parameters:
name- artifact nameinput- artifact input
-
-
Method Details
-
getParent
Get the parent creator of this artifact.- Specified by:
getParentin interfaceIArtifact- Specified by:
getParentin interfaceIUnitCreator- Returns:
- null, because artifacts are root creators
-
getInput
Get the input backing this artifact.- Specified by:
getInputin interfaceIArtifact- Specified by:
getInputin interfaceIUnitCreator- Returns:
- input object
-
setInput
Set the input backing this artifact.- Parameters:
input- new input object
-
getName
Get the artifact name.- Specified by:
getNamein interfaceIArtifact- Specified by:
getNamein interfaceIUnitCreator- Returns:
- artifact name
-
setName
Set the artifact name. -
getNotes
Get the user notes associated with this artifact. -
setNotes
Set the user notes associated with this artifact. -
getCreationTimestamp
public long getCreationTimestamp()Get the artifact creation timestamp.- Specified by:
getCreationTimestampin interfaceIArtifact- Returns:
- creation timestamp in milliseconds since the epoch
-
toString
-