public class

Artifact

extends JebEventSource
implements IArtifact
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.events.JebEventSource
     ↳ com.pnfsoftware.jeb.core.Artifact

Class Overview

Basic implementation for a named artifact that takes a flexible IInput object.

Summary

Fields
public static final Artifact EMPTY
[Expand]
Inherited Fields
From class com.pnfsoftware.jeb.core.events.JebEventSource
Public Constructors
Artifact(String name, IInput input)
Public Methods
long getCreationTimestamp()
Get the timestamp at which this artifact was loaded into the project.
IInput getInput()
Get the input data for the artifact.
String getName()
Get the artifact name.
String getNotes()
Get user-specific notes associated to the artifact.
IUnitCreator getParent()
For artifacts, this method always return null.
void setInput(IInput input)
void setName(String name)
Set the artifact name.
void setNotes(String notes)
Set user-specific notes associated to the artifact.
String toString()
[Expand]
Inherited Methods
From class com.pnfsoftware.jeb.core.events.JebEventSource
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.IArtifact
From interface com.pnfsoftware.jeb.core.IUnitCreator
From interface com.pnfsoftware.jeb.util.events.IEventSource

Fields

public static final Artifact EMPTY

Public Constructors

public Artifact (String name, IInput input)

Public Methods

public long getCreationTimestamp ()

Get the timestamp at which this artifact was loaded into the project.

Returns
  • the epoch timestamp in milliseconds

public IInput getInput ()

Get the input data for the artifact.

Returns
  • the input object

public String getName ()

Get the artifact name.

public String getNotes ()

Get user-specific notes associated to the artifact.

Returns
  • the current notes

public IUnitCreator getParent ()

For artifacts, this method always return null. To retrieve the owner project, use getProject()

public void setInput (IInput input)

public void setName (String name)

Set the artifact name.

Parameters
name the new name

public void setNotes (String notes)

Set user-specific notes associated to the artifact.

Parameters
notes the new notes

public String toString ()