public abstract class Identified extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
addWasDerivedFrom(URI wasDerivedFromURI)
Adds the given wasDerivedFrom URI to the set of wasDerivedFrom URIs.
|
boolean |
addWasGeneratedBy(URI wasGeneratedByURI)
Adds the given wasGeneratedBy URI to the set of wasGeneratedBy URIs.
|
void |
clearAnnotations()
Removes all entries of this instance's list of annotations.
|
void |
clearWasDerivedFroms()
Removes all entries from the set of wasDerivedFrom URIs.
|
void |
clearWasGeneratedBys()
Removes all entries from the set of wasGeneratedBy URIs.
|
boolean |
containsWasDerivedFrom(URI wasDerivedFromURI)
Checks if the given wasDerivedFrom URI is included in the set of wasDerivedFrom URIs.
|
boolean |
containsWasGeneratedBy(URI wasGeneratedByURI)
Checks if the given wasGeneratedBy URI is included in the set of wasGeneratedBy URIs.
|
Annotation |
createAnnotation(QName qName,
boolean literal)
Creates an annotation using the given arguments, and
then adds to the list of annotaions.
|
Annotation |
createAnnotation(QName qName,
double literal)
Creates an annotation using the given arguments,
then adds to this instance's list of annotations.
|
Annotation |
createAnnotation(QName qName,
int literal)
Creates an annotation using the given arguments,
then adds to this instance's list of annotations.
|
Annotation |
createAnnotation(QName qName,
QName nestedQName,
String nestedId,
List<Annotation> annotations)
Creates an annotation with nested annotations using the given arguments, and then adds to this instance's list of annotations.
|
Annotation |
createAnnotation(QName qName,
String literal)
Creates an annotation using the given arguments,
then adds to this instance's list of annotations.
|
Annotation |
createAnnotation(QName qName,
URI literal)
Creates an annotation using the given arguments,
then adds to this instance's list of annotations.
|
boolean |
equals(Object obj) |
Annotation |
getAnnotation(QName qName)
Returns the annotation matching the given QName.
|
List<Annotation> |
getAnnotations()
Returns the list of annotations owned by this instance.
|
String |
getDescription()
Returns the description property of this instance.
|
String |
getDisplayId()
Returns the display ID of this instance.
|
URI |
getIdentity()
Returns the identity URI of this instance.
|
String |
getName()
Returns the name property of this instance.
|
URI |
getPersistentIdentity()
Returns the persistent identity URI of this instance.
|
String |
getVersion()
Returns this instance's version.
|
URI |
getWasDerivedFrom()
Deprecated.
|
Set<URI> |
getWasDerivedFroms()
Returns the set of wasDerivedFrom URIs.
|
Set<URI> |
getWasGeneratedBys()
Returns the set of wasGeneratedBy URIs.
|
boolean |
hasAnnotations()
Test if this instance has any annotations.
|
int |
hashCode() |
boolean |
isSetDescription()
Test if the description property is set.
|
boolean |
isSetDisplayId()
Test if the display ID is set.
|
boolean |
isSetName()
Test if the name property is set.
|
boolean |
isSetPersistentIdentity()
Test if the persistent identity URI is set.
|
boolean |
isSetVersion()
Test if the version is set.
|
boolean |
isSetWasDerivedFrom()
Deprecated.
|
boolean |
removeAnnotation(Annotation annotation)
Removes the given annotation from the list of annotations owned by this instance.
|
boolean |
removeWasDerivedFrom(URI wasDerivedFromURI)
Removes the given wasDerivedFrom URI from the set of wasDerivedFroms.
|
boolean |
removeWasGeneratedBy(URI wasGeneratedByURI)
Removes the given wasGeneratedBy URI from the set of wasGeneratedBys.
|
void |
setDescription(String description)
Sets the description property for this instance.
|
void |
setName(String name)
Sets the name property for this instance.
|
void |
setWasDerivedFrom(URI wasDerivedFrom)
Deprecated.
|
void |
setWasDerivedFroms(Set<URI> wasDerivedFroms)
Clears the existing set of wasDerivedFroms first, and then adds the given
set of the wasDerivedFroms.
|
void |
setWasGeneratedBys(Set<URI> wasGeneratedBys)
Clears the existing set of wasGeneratedBys first, and then adds the given
set of the wasGeneratedBys.
|
String |
toString() |
void |
unsetDescription()
Sets the description property to
null . |
void |
unsetName()
Sets the name of this instance to
null . |
void |
unsetWasDerivedFrom()
Deprecated.
|
public URI getIdentity()
public boolean isSetPersistentIdentity()
true
if it is not null
, or false
otherwisepublic URI getPersistentIdentity()
public boolean isSetVersion()
true
if it is not null
, or false
otherwise@Deprecated public boolean isSetWasDerivedFrom()
true
if it is not null
, or false
otherwisepublic String getVersion()
public boolean isSetDisplayId()
true
if it is not null
, or false
otherwisepublic String getDisplayId()
public boolean addWasDerivedFrom(URI wasDerivedFromURI) throws SBOLValidationException
wasDerivedFromURI
- the wasDerivedFrom URI to be addedtrue
if this set did not already contain the specified wasDerivedFrom, false
otherwise.SBOLValidationException
- if the following SBOL validation rules was violated: 10305.public boolean removeWasDerivedFrom(URI wasDerivedFromURI)
wasDerivedFromURI
- the given wasDerivedFrom URI to be removedtrue
if the matching wasDerivedFrom reference was removed successfully, false
otherwise.public boolean containsWasDerivedFrom(URI wasDerivedFromURI)
wasDerivedFromURI
- the wasDerivedFrom URI to be checkedtrue
if this set contains the given wasDerivedFrom URI, false
otherwise.public void clearWasDerivedFroms()
public Set<URI> getWasDerivedFroms()
@Deprecated public URI getWasDerivedFrom()
@Deprecated public void setWasDerivedFrom(URI wasDerivedFrom) throws SBOLValidationException
wasDerivedFrom
- the wasDerivedFrom property to set toSBOLValidationException
- if the following SBOL validation rules was violated: 10303, 10304, 10305.public void setWasDerivedFroms(Set<URI> wasDerivedFroms) throws SBOLValidationException
wasDerivedFroms
- the set of wasDerivedFroms to set toSBOLValidationException
- if the following SBOL validation rules was violated: 10305.public boolean addWasGeneratedBy(URI wasGeneratedByURI) throws SBOLValidationException
wasGeneratedByURI
- the wasGeneratedBy URI to be addedtrue
if this set did not already contain the specified wasGeneratedBy, false
otherwise.SBOLValidationException
- if the following SBOL validation rule was violated: 10222public boolean removeWasGeneratedBy(URI wasGeneratedByURI)
wasGeneratedByURI
- the given wasGeneratedBy URI to be removedtrue
if the matching wasGeneratedBy reference was removed successfully, false
otherwise.public boolean containsWasGeneratedBy(URI wasGeneratedByURI)
wasGeneratedByURI
- the wasGeneratedBy URI to be checkedtrue
if this set contains the given wasGeneratedBy URI, false
otherwise.public void clearWasGeneratedBys()
public Set<URI> getWasGeneratedBys()
public void setWasGeneratedBys(Set<URI> wasGeneratedBys) throws SBOLValidationException
wasGeneratedBys
- the set of wasGeneratedBys to set toSBOLValidationException
- if the following SBOL validation rules was violated: 10222public boolean hasAnnotations()
true
if this instance has any annotations, or false
otherwisepublic Annotation createAnnotation(QName qName, String literal) throws SBOLValidationException
qName
- the QName of the annotation to be createdliteral
- the literal stringSBOLValidationException
- if any of the following SBOL validation rules was violated:
10401, 10501, 10701, 10801, 10901, 11101, 11201, 11301, 11401, 11501, 11601, 11701, 11801, 11901, 12001, 12101, 12301.public Annotation createAnnotation(QName qName, double literal) throws SBOLValidationException
qName
- the QName of the annotation to be createdliteral
- the double type literalSBOLValidationException
- if any of the following SBOL validation rules was violated:
10401, 10501, 10701, 10801, 10901, 11101, 11201, 11301, 11401, 11501, 11601, 11701, 11801, 11901, 12001, 12101, 12301.public Annotation createAnnotation(QName qName, int literal) throws SBOLValidationException
qName
- the QName of the annotation to be createdliteral
- the integer type literalSBOLValidationException
- if any of the following SBOL validation rules was violated:
10401, 10501, 10701, 10801, 10901, 11101, 11201, 11301, 11401, 11501, 11601, 11701, 11801, 11901, 12001, 12101, 12301.public Annotation createAnnotation(QName qName, boolean literal) throws SBOLValidationException
qName
- the QName of the annotation to be createdliteral
- a boolean type literalSBOLValidationException
- if any of the following SBOL validation rule was violated:
10401, 10501, 10701, 10801, 10901, 11101, 11201, 11301, 11401, 11501, 11601, 11701, 11801, 11901, 12001, 12101public Annotation createAnnotation(QName qName, URI literal) throws SBOLValidationException
qName
- the QName of the annotation to be createdliteral
- the literal URISBOLValidationException
- if any of the following SBOL validation rules was violated:
10401, 10501, 10701, 10801, 10901, 11101, 11201, 11301, 11401, 11501, 11601, 11701, 11801, 11901, 12001, 12101, 12301.public Annotation createAnnotation(QName qName, QName nestedQName, String nestedId, List<Annotation> annotations) throws SBOLValidationException
qName
- the QName of the annotation to be creatednestedQName
- the QName of the nested annotationnestedId
- the id for the nested annotationannotations
- the list of annotations used to construct the nested annotationSBOLValidationException
- if any of the following SBOL validation rules was violated:
10401, 10501, 10701, 10801, 10901, 11101, 11201, 11301, 11401, 11501, 11601, 11701, 11801, 11901, 12001, 12101, 12301.public boolean removeAnnotation(Annotation annotation)
annotation
- the annotation to be removedtrue
if the matching annotation was removed successfully,
or false
otherwise.public List<Annotation> getAnnotations()
public Annotation getAnnotation(QName qName)
qName
- the QName of the annotation to be retrievedpublic void clearAnnotations()
@Deprecated public void unsetWasDerivedFrom()
null
.public boolean isSetName()
true
if it is not null
, or false
otherwisepublic String getName()
public void setName(String name)
name
- the name property to set topublic void unsetName()
null
.public boolean isSetDescription()
true
if it is not null
, or false
otherwisepublic String getDescription()
public void setDescription(String description)
description
- the description to set topublic void unsetDescription()
null
.