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 boolean
equals(Object obj)
Date
getCreatedOn()
The artifact creation date.String
getCreator()
An identification of the service that created the artifact.String
getCreatorParams()
The parametres of the service used for creating the artifact.org.eclipse.rdf4j.model.IRI
getIri()
Gets a unique artifact IDString
getLabel()
Gets the element label when it is defined.Collection<Metadata>
getMetadata()
Metadata provided for the entire artifact.org.eclipse.rdf4j.model.IRI
getParentIri()
Gets the IRI of the parent artifact - the artifact this one was created from.int
hashCode()
void
setCreatedOn(Date createdOn)
void
setCreator(String creator)
void
setCreatorParams(String creatorParams)
void
setIri(org.eclipse.rdf4j.model.IRI iri)
Sets the IRI of the artifact.void
setLabel(String label)
void
setMetadata(Collection<Metadata> metadata)
void
setParentIri(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:Artifact
Gets a unique artifact ID
-
setIri
public void setIri(org.eclipse.rdf4j.model.IRI iri)
Description copied from interface:Artifact
Sets the IRI of the artifact.
-
getParentIri
public org.eclipse.rdf4j.model.IRI getParentIri()
Description copied from interface:Artifact
Gets the IRI of the parent artifact - the artifact this one was created from.- Specified by:
getParentIri
in interfaceArtifact
- Returns:
- the parent artifact IRI or
null
when this is an initial artifact.
-
setParentIri
public void setParentIri(org.eclipse.rdf4j.model.IRI parentIri)
-
getLabel
public String getLabel()
Description copied from interface:Artifact
Gets the element label when it is defined.
-
setLabel
public void setLabel(String label)
-
getCreatedOn
public Date getCreatedOn()
Description copied from interface:Artifact
The artifact creation date.- Specified by:
getCreatedOn
in interfaceArtifact
- Returns:
- the date/time of the artifact creation.
-
setCreatedOn
public void setCreatedOn(Date createdOn)
-
getCreator
public String getCreator()
Description copied from interface:Artifact
An identification of the service that created the artifact.- Specified by:
getCreator
in interfaceArtifact
- Returns:
- a service ID string
-
setCreator
public void setCreator(String creator)
-
getCreatorParams
public String getCreatorParams()
Description copied from interface:Artifact
The parametres of the service used for creating the artifact.- Specified by:
getCreatorParams
in interfaceArtifact
- Returns:
- a service parameter string
-
setCreatorParams
public void setCreatorParams(String creatorParams)
-
getMetadata
public Collection<Metadata> getMetadata()
Description copied from interface:Artifact
Metadata provided for the entire artifact.- Specified by:
getMetadata
in interfaceArtifact
- Returns:
- A metadata collection or
null
when no metadata is provided.
-
setMetadata
public void setMetadata(Collection<Metadata> metadata)
-
-