Class Artifact

All Implemented Interfaces:
IArtifact, IUnitCreator, IEventSource

@Ser public class Artifact extends JebEventSource implements IArtifact
Basic implementation for a named artifact that takes a flexible IInput object.
  • Field Details

    • EMPTY

      public static final Artifact EMPTY
  • Constructor Details

  • Method Details

    • getParent

      public IUnitCreator getParent()
      Description copied from interface: IArtifact
      For artifacts, this method always return null. To retrieve the owner project, use getProject()
      Specified by:
      getParent in interface IArtifact
      Specified by:
      getParent in interface IUnitCreator
      Returns:
    • getInput

      public IInput getInput()
      Description copied from interface: IArtifact
      Get the input data for the artifact.
      Specified by:
      getInput in interface IArtifact
      Specified by:
      getInput in interface IUnitCreator
      Returns:
      the input object
    • setInput

      public void setInput(IInput input)
    • getName

      public String getName()
      Description copied from interface: IArtifact
      Get the artifact name.
      Specified by:
      getName in interface IArtifact
      Specified by:
      getName in interface IUnitCreator
      Returns:
    • setName

      public void setName(String name)
      Description copied from interface: IArtifact
      Set the artifact name.
      Specified by:
      setName in interface IArtifact
      Parameters:
      name - the new name
    • getNotes

      public String getNotes()
      Description copied from interface: IArtifact
      Get user-specific notes associated to the artifact.
      Specified by:
      getNotes in interface IArtifact
      Returns:
      the current notes
    • setNotes

      public void setNotes(String notes)
      Description copied from interface: IArtifact
      Set user-specific notes associated to the artifact.
      Specified by:
      setNotes in interface IArtifact
      Parameters:
      notes - the new notes
    • getCreationTimestamp

      public long getCreationTimestamp()
      Description copied from interface: IArtifact
      Get the timestamp at which this artifact was loaded into the project.
      Specified by:
      getCreationTimestamp in interface IArtifact
      Returns:
      the epoch timestamp in milliseconds
    • toString

      public String toString()
      Overrides:
      toString in class Object