org.eclipse.higgins.idas.cp.jena2.impl
Class ComplexValue
java.lang.Object
org.eclipse.higgins.idas.cp.jena2.impl.ComplexValue
- All Implemented Interfaces:
- org.eclipse.higgins.idas.api.IAttributeValue, org.eclipse.higgins.idas.api.IComplexAttrValue, org.eclipse.higgins.idas.api.IHasAttributes, org.eclipse.higgins.idas.api.IHasMetadata
- public class ComplexValue
- extends Object
- implements org.eclipse.higgins.idas.api.IComplexAttrValue
| Fields inherited from interface org.eclipse.higgins.idas.api.IAttributeValue |
BASE_OWL_URI |
|
Constructor Summary |
ComplexValue(Context context,
Attribute attribute,
com.hp.hpl.jena.ontology.Individual container,
com.hp.hpl.jena.ontology.OntProperty attributeProperty)
|
ComplexValue
public ComplexValue(Context context,
Attribute attribute,
com.hp.hpl.jena.ontology.Individual container,
com.hp.hpl.jena.ontology.OntProperty attributeProperty)
throws org.eclipse.higgins.idas.api.IdASException
- Parameters:
context - attribute - container - attributeProperty -
- Throws:
org.eclipse.higgins.idas.api.IdASException
getSubjectOwner
public DigitalSubject getSubjectOwner()
- Returns:
DigitalSubject which owns this attribute (directly or through any level of complex value)
getType
public URI getType()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getType in interface org.eclipse.higgins.idas.api.IAttributeValue
- Throws:
org.eclipse.higgins.idas.api.IdASException
isSimple
public boolean isSimple()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
isSimple in interface org.eclipse.higgins.idas.api.IAttributeValue
- Throws:
org.eclipse.higgins.idas.api.IdASException
remove
public void remove()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
remove in interface org.eclipse.higgins.idas.api.IAttributeValue
- Throws:
org.eclipse.higgins.idas.api.IdASException
addMetadata
public org.eclipse.higgins.idas.api.IMetadata addMetadata(URI metadataID)
throws org.eclipse.higgins.idas.api.IdASException,
org.eclipse.higgins.idas.api.InvalidTypeException
- Specified by:
addMetadata in interface org.eclipse.higgins.idas.api.IHasMetadata
- Throws:
org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.InvalidTypeException
addMetadata
public org.eclipse.higgins.idas.api.IMetadata addMetadata(org.eclipse.higgins.idas.api.IMetadata copyFrom)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
addMetadata in interface org.eclipse.higgins.idas.api.IHasMetadata
- Throws:
org.eclipse.higgins.idas.api.IdASException
getMetadata
public org.eclipse.higgins.idas.api.IMetadata getMetadata(URI metadataID)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getMetadata in interface org.eclipse.higgins.idas.api.IHasMetadata
- Throws:
org.eclipse.higgins.idas.api.IdASException
getMetadataSet
public Iterator getMetadataSet()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getMetadataSet in interface org.eclipse.higgins.idas.api.IHasMetadata
- Throws:
org.eclipse.higgins.idas.api.IdASException
addAttribute
public org.eclipse.higgins.idas.api.IAttribute addAttribute(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException,
org.eclipse.higgins.idas.api.InvalidTypeException
- Specified by:
addAttribute in interface org.eclipse.higgins.idas.api.IHasAttributes
- Throws:
org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.InvalidTypeException
addAttribute
public org.eclipse.higgins.idas.api.IAttribute addAttribute(org.eclipse.higgins.idas.api.IAttribute copyFrom)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
addAttribute in interface org.eclipse.higgins.idas.api.IHasAttributes
- Throws:
org.eclipse.higgins.idas.api.IdASException
getAttribute
public org.eclipse.higgins.idas.api.IAttribute getAttribute(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getAttribute in interface org.eclipse.higgins.idas.api.IHasAttributes
- Throws:
org.eclipse.higgins.idas.api.IdASException
getAttributes
public Iterator getAttributes()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getAttributes in interface org.eclipse.higgins.idas.api.IHasAttributes
- Throws:
org.eclipse.higgins.idas.api.IdASException
getValueIndividual
public com.hp.hpl.jena.ontology.Individual getValueIndividual()
throws org.eclipse.higgins.idas.api.IdASException
- Returns:
- Individual of this value
- Throws:
org.eclipse.higgins.idas.api.IdASException
getValueClass
public com.hp.hpl.jena.ontology.OntClass getValueClass()
throws org.eclipse.higgins.idas.api.IdASException
- Returns:
-
- Throws:
org.eclipse.higgins.idas.api.IdASException
getValueModel
public org.eclipse.higgins.idas.model.impl.AttributeComplexValueModel getValueModel()
throws org.eclipse.higgins.idas.api.IdASException
- Returns:
-
- Throws:
org.eclipse.higgins.idas.api.IdASException
getSingleValuedAttribute
public org.eclipse.higgins.idas.api.ISingleValuedAttribute getSingleValuedAttribute(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getSingleValuedAttribute in interface org.eclipse.higgins.idas.api.IHasAttributes
- Throws:
org.eclipse.higgins.idas.api.IdASException
equals
public boolean equals(org.eclipse.higgins.idas.api.IAttributeValue value)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
equals in interface org.eclipse.higgins.idas.api.IAttributeValue
- Throws:
org.eclipse.higgins.idas.api.IdASException
equals
public boolean equals(org.eclipse.higgins.idas.api.IHasMetadata metadataSet)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
equals in interface org.eclipse.higgins.idas.api.IHasMetadata
- Throws:
org.eclipse.higgins.idas.api.IdASException
equals
public boolean equals(org.eclipse.higgins.idas.api.IHasAttributes attributes)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
equals in interface org.eclipse.higgins.idas.api.IHasAttributes
- Throws:
org.eclipse.higgins.idas.api.IdASException
removeAttribute
public void removeAttribute(URI attrID)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
removeAttribute in interface org.eclipse.higgins.idas.api.IHasAttributes
- Throws:
org.eclipse.higgins.idas.api.IdASException
removeAttributeValue
public void removeAttributeValue(URI attrID,
Object value)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
removeAttributeValue in interface org.eclipse.higgins.idas.api.IHasAttributes
- Throws:
org.eclipse.higgins.idas.api.IdASException
removeAttributeValue
public void removeAttributeValue(org.eclipse.higgins.idas.api.IAttribute attr)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
removeAttributeValue in interface org.eclipse.higgins.idas.api.IHasAttributes
- Throws:
org.eclipse.higgins.idas.api.IdASException