Interface IArtifact

All Superinterfaces:
IEventSource, IUnitCreator
All Known Implementing Classes:
Artifact

@Ser public interface IArtifact extends IEventSource, IUnitCreator
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 Details

    • getParentProject

      default IRuntimeProject getParentProject()
      Retrieve the parent project 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 interface IUnitCreator
      Returns:
    • setName

      void setName(String name)
      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

      void setNotes(String notes)
      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 interface IUnitCreator
      Returns:
    • getInput

      IInput getInput()
      Get the input data for the artifact.
      Specified by:
      getInput in interface IUnitCreator
      Returns:
      the input object