public class VariableComponent extends Identified
Modifier and Type | Method and Description |
---|---|
void |
addVariant(String uriPrefix,
String displayId,
String version)
Adds the given variant to the list of variants.
|
void |
addVariant(URI variant)
Adds the given variant URI to the list of variant URIs.
|
void |
addVariantCollection(String uriPrefix,
String displayId,
String version)
Adds the given variant collection to the list of variant collections.
|
void |
addVariantCollection(URI variantCollection)
Adds the given variant collection URI to the list of variant collection URIs.
|
void |
addVariantDerivation(String uriPrefix,
String displayId,
String version)
Adds the given variant derivation to the list of variant derivations.
|
void |
addVariantDerivation(URI variantDerivation)
Adds the given variant derivation URI to the list of variant derivations URIs.
|
void |
clearVariantCollections()
removes all entries of this variable component's set of variant collection
URIs.
|
void |
clearVariantDerivations()
removes all entries of this variable component's set of variant derivation
URIs.
|
void |
clearVariants()
removes all entries of this variable component's set of variant URIs.
|
OperatorType |
getOperator()
Returns the operator of the given variable component.
|
Component |
getVariable()
Returns the instance matching the given variable component's variable.
|
URI |
getVariableURI()
Returns the URI of the instance matching the given variable component's variable.
|
Set<Collection> |
getVariantCollections()
Returns a set of collections belonging to the variable component.
|
Set<URI> |
getVariantCollectionURIs()
Returns a set of collection URIs belonging to the variable component.
|
Set<CombinatorialDerivation> |
getVariantDerivations()
Returns a set of combinatorial derivations belonging to the variable component.
|
Set<URI> |
getVariantDerivationURIs()
Returns a set of combinatorial derivation URIs belonging to the variable component.
|
Set<ComponentDefinition> |
getVariants()
Returns a set of component definitions belonging to the variable component.
|
Set<URI> |
getVariantURIs()
Returns a set of component definition URIs belonging to the variable component.
|
boolean |
removeVariant(ComponentDefinition variant)
Removes the given component definition from the list of variants.
|
boolean |
removeVariant(URI variantURI)
Removes the component definition with the given URI from the list of
variants.
|
boolean |
removeVariantCollection(Collection variantCollection)
Removes the given collection from the list of variantCollections.
|
boolean |
removeVariantCollection(URI variantCollectionURI)
Removes the collection with the given URI from the list of
variantCollections.
|
boolean |
removeVariantDerivation(CombinatorialDerivation variantDerivation)
Removes the given combinatorial derivation from the list of variant
derivations.
|
boolean |
removeVariantDerivation(URI variantDerivationURI)
Removes the combinatorial derivation with the given URI from the list of
variant derivations.
|
void |
setCombinatorialDerivation(CombinatorialDerivation combinatorialDerivation)
Sets the parent combinatorial derivation to the given one.
|
void |
setOperator(OperatorType operator)
Sets the operator property to the given one.
|
void |
setVariable(URI variable)
Sets the variable property to the given one.
|
void |
setVariantCollections(Set<URI> variantCollections)
Clears the existing set of variant collections first, and then adds the given
set of the variant collections to this variable component.
|
void |
setVariantDerivations(Set<URI> variantDerivations)
Clears the existing set of variant derivations first, and then adds the given
set of the variant derivations to this variable component.
|
void |
setVariants(Set<URI> variants)
Clears the existing set of variants first, and then adds the given
set of the variants to this variable component.
|
String |
toString() |
addWasDerivedFrom, addWasGeneratedBy, clearAnnotations, clearWasDerivedFroms, clearWasGeneratedBys, containsWasDerivedFrom, containsWasGeneratedBy, createAnnotation, createAnnotation, createAnnotation, createAnnotation, createAnnotation, createAnnotation, equals, getAnnotation, getAnnotations, getDescription, getDisplayId, getIdentity, getName, getPersistentIdentity, getVersion, getWasDerivedFrom, getWasDerivedFroms, getWasGeneratedBys, hasAnnotations, hashCode, isSetDescription, isSetDisplayId, isSetName, isSetPersistentIdentity, isSetVersion, isSetWasDerivedFrom, removeAnnotation, removeWasDerivedFrom, removeWasGeneratedBy, setDescription, setName, setWasDerivedFrom, setWasDerivedFroms, setWasGeneratedBys, unsetDescription, unsetName, unsetWasDerivedFrom
public void setCombinatorialDerivation(CombinatorialDerivation combinatorialDerivation)
combinatorialDerivation
- the given combinatorial derivation to set topublic void addVariant(URI variant) throws SBOLValidationException
variant
- variant to be addedSBOLValidationException
- if the following SBOL validation rule was violated: 13008public void addVariantCollection(URI variantCollection) throws SBOLValidationException
variantCollection
- variant collection to be addedSBOLValidationException
- if the following SBOL validation rule was violated: 13010public void addVariantDerivation(URI variantDerivation) throws SBOLValidationException
variantDerivation
- variant derivation to be addedSBOLValidationException
- if the following SBOL validation rule was violated: 13014public Component getVariable()
null
otherwise.public URI getVariableURI()
null
otherwise.public void setVariable(URI variable) throws SBOLValidationException
variable
- the given component to set toSBOLValidationException
- if the following SBOL validation rule was violated: 13004, 13005public OperatorType getOperator()
null
otherwise.public void setOperator(OperatorType operator) throws SBOLValidationException
operator
- the given operator type to set toSBOLValidationException
- if the following SBOL validation rule was violated: 13002public Set<ComponentDefinition> getVariants()
public Set<URI> getVariantURIs()
public Set<Collection> getVariantCollections()
public Set<URI> getVariantCollectionURIs()
public Set<CombinatorialDerivation> getVariantDerivations()
public Set<URI> getVariantDerivationURIs()
public void setVariants(Set<URI> variants) throws SBOLValidationException
variants
- The set of variantsSBOLValidationException
- if an SBOL validation rule violation occurred in any of the following methods:
public void setVariantCollections(Set<URI> variantCollections) throws SBOLValidationException
variantCollections
- The set of variant collectionsSBOLValidationException
- if an SBOL validation rule violation occurred in any of the following methods:
public void setVariantDerivations(Set<URI> variantDerivations) throws SBOLValidationException
variantDerivations
- The set of variant derivationsSBOLValidationException
- if an SBOL validation rule violation occurred in any of the following methods:
public void addVariant(String uriPrefix, String displayId, String version) throws SBOLValidationException
uriPrefix
- URI prefix for variantdisplayId
- display id for variantversion
- version for variantSBOLValidationException
- if the following SBOL validation rule was violated:public void addVariantCollection(String uriPrefix, String displayId, String version) throws SBOLValidationException
uriPrefix
- URI prefix for variant collectiondisplayId
- display id for variant collectionversion
- version for variant collectionSBOLValidationException
- if the following SBOL validation rule was violated:public void addVariantDerivation(String uriPrefix, String displayId, String version) throws SBOLValidationException
uriPrefix
- URI prefix for variant derivationdisplayId
- display id for variant derivationversion
- version for variant derivationSBOLValidationException
- if the following SBOL validation rule was violated:public boolean removeVariant(ComponentDefinition variant)
variant
- a component definition be removedtrue
if the matching component definition is removed
successfully, false
otherwise.public boolean removeVariant(URI variantURI)
variantURI
- a component definition URI be removedtrue
if the matching component definition is removed
successfully, false
otherwise.public void clearVariants()
public boolean removeVariantCollection(Collection variantCollection)
variantCollection
- a collection to be removedtrue
if the matching collection is removed successfully,
false
otherwise.public boolean removeVariantCollection(URI variantCollectionURI)
variantCollectionURI
- a collection URI to be removedtrue
if the matching collection is removed successfully,
false
otherwise.public void clearVariantCollections()
public boolean removeVariantDerivation(CombinatorialDerivation variantDerivation)
variantDerivation
- a combinatorial derivation to be removedtrue
if the matching combinatorial derivation is removed
successfully, false
otherwise.public boolean removeVariantDerivation(URI variantDerivationURI)
variantDerivationURI
- a combinatorial derivation URI to be removedtrue
if the matching combinatorial derivation is removed
successfully, false
otherwise.public void clearVariantDerivations()
public String toString()
toString
in class Identified