Package cz.vutbr.fit.layout.impl
Class BaseArtifact
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseArtifact
-
- All Implemented Interfaces:
Artifact
- Direct Known Subclasses:
ArtifactInfo,DefaultAreaTree,DefaultChunkSet,DefaultLogicalAreaTree,DefaultPage
public abstract class BaseArtifact extends Object implements Artifact
A common base class for artifact implementations.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description BaseArtifact(org.eclipse.rdf4j.model.IRI parentIri)BaseArtifact(org.eclipse.rdf4j.model.IRI parentIri, Artifact src)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DategetCreatedOn()The artifact creation date.StringgetCreator()An identification of the service that created the artifact.StringgetCreatorParams()The parametres of the service used for creating the artifact.org.eclipse.rdf4j.model.IRIgetIri()Gets a unique artifact IDStringgetLabel()Gets the element label when it is defined.Collection<Metadata>getMetadata()Metadata provided for the entire artifact.org.eclipse.rdf4j.model.IRIgetParentIri()Gets the IRI of the parent artifact - the artifact this one was created from.inthashCode()voidsetCreatedOn(Date createdOn)voidsetCreator(String creator)voidsetCreatorParams(String creatorParams)voidsetIri(org.eclipse.rdf4j.model.IRI iri)Sets the IRI of the artifact.voidsetLabel(String label)voidsetMetadata(Collection<Metadata> metadata)voidsetParentIri(org.eclipse.rdf4j.model.IRI parentIri)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.vutbr.fit.layout.model.Artifact
getArtifactType
-
-
-
-
Constructor Detail
-
BaseArtifact
public BaseArtifact(org.eclipse.rdf4j.model.IRI parentIri)
-
BaseArtifact
public BaseArtifact(org.eclipse.rdf4j.model.IRI parentIri, Artifact src)
-
-
Method Detail
-
getIri
public org.eclipse.rdf4j.model.IRI getIri()
Description copied from interface:ArtifactGets a unique artifact ID
-
setIri
public void setIri(org.eclipse.rdf4j.model.IRI iri)
Description copied from interface:ArtifactSets the IRI of the artifact.
-
getParentIri
public org.eclipse.rdf4j.model.IRI getParentIri()
Description copied from interface:ArtifactGets the IRI of the parent artifact - the artifact this one was created from.- Specified by:
getParentIriin interfaceArtifact- Returns:
- the parent artifact IRI or
nullwhen this is an initial artifact.
-
setParentIri
public void setParentIri(org.eclipse.rdf4j.model.IRI parentIri)
-
getLabel
public String getLabel()
Description copied from interface:ArtifactGets the element label when it is defined.
-
setLabel
public void setLabel(String label)
-
getCreatedOn
public Date getCreatedOn()
Description copied from interface:ArtifactThe artifact creation date.- Specified by:
getCreatedOnin interfaceArtifact- Returns:
- the date/time of the artifact creation.
-
setCreatedOn
public void setCreatedOn(Date createdOn)
-
getCreator
public String getCreator()
Description copied from interface:ArtifactAn identification of the service that created the artifact.- Specified by:
getCreatorin interfaceArtifact- Returns:
- a service ID string
-
setCreator
public void setCreator(String creator)
-
getCreatorParams
public String getCreatorParams()
Description copied from interface:ArtifactThe parametres of the service used for creating the artifact.- Specified by:
getCreatorParamsin interfaceArtifact- Returns:
- a service parameter string
-
setCreatorParams
public void setCreatorParams(String creatorParams)
-
getMetadata
public Collection<Metadata> getMetadata()
Description copied from interface:ArtifactMetadata provided for the entire artifact.- Specified by:
getMetadatain interfaceArtifact- Returns:
- A metadata collection or
nullwhen no metadata is provided.
-
setMetadata
public void setMetadata(Collection<Metadata> metadata)
-
-