org.eclipse.higgins.idas.cp.jena2.impl
Class Attribute
java.lang.Object
org.eclipse.higgins.idas.cp.jena2.impl.Attribute
- All Implemented Interfaces:
- org.eclipse.higgins.idas.api.IAttribute, org.eclipse.higgins.idas.api.IHasMetadata
- Direct Known Subclasses:
- SingleValuedAttribute
- public class Attribute
- extends Object
- implements org.eclipse.higgins.idas.api.IAttribute
getOwner
public com.hp.hpl.jena.ontology.Individual getOwner()
- Returns:
Individual of Entity or ComplexValue which owns this attribure
getOwnerClass
public com.hp.hpl.jena.ontology.OntClass getOwnerClass()
- Returns:
- Ontology class of Individual of Entity or ComplexValue which immediately owns this attribure
getSubjectOwner
public Entity getSubjectOwner()
- Returns:
- Entity which owns this attribute (directly or through any level of complex value)
getAttributeProperty
public Entity getAttributeProperty()
- Returns:
- ObjectProperty of this attribute
addComplexValue
public org.eclipse.higgins.idas.api.IComplexAttrValue addComplexValue(URI type)
throws org.eclipse.higgins.idas.api.IdASException,
org.eclipse.higgins.idas.api.InvalidTypeException
- Specified by:
addComplexValue in interface org.eclipse.higgins.idas.api.IAttribute
- Throws:
org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.InvalidTypeException
addSimpleValue
public org.eclipse.higgins.idas.api.ISimpleAttrValue addSimpleValue(URI type,
Object data)
throws org.eclipse.higgins.idas.api.IdASException,
org.eclipse.higgins.idas.api.InvalidTypeException
- Specified by:
addSimpleValue in interface org.eclipse.higgins.idas.api.IAttribute
- Throws:
org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.InvalidTypeException
addValue
public org.eclipse.higgins.idas.api.IAttributeValue addValue(URI type)
throws org.eclipse.higgins.idas.api.IdASException,
org.eclipse.higgins.idas.api.InvalidTypeException
- Specified by:
addValue in interface org.eclipse.higgins.idas.api.IAttribute
- Throws:
org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.InvalidTypeException
addValue
public org.eclipse.higgins.idas.api.IAttributeValue addValue(org.eclipse.higgins.idas.api.IAttributeValue copyFrom)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
addValue in interface org.eclipse.higgins.idas.api.IAttribute
- Throws:
org.eclipse.higgins.idas.api.IdASException
getAttrID
public URI getAttrID()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getAttrID in interface org.eclipse.higgins.idas.api.IAttribute
- Throws:
org.eclipse.higgins.idas.api.IdASException
getModel
public org.eclipse.higgins.idas.api.model.IAttributeModel getModel()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getModel in interface org.eclipse.higgins.idas.api.IAttribute
- Throws:
org.eclipse.higgins.idas.api.IdASException
getValues
public Iterator getValues()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getValues in interface org.eclipse.higgins.idas.api.IAttribute
- Throws:
org.eclipse.higgins.idas.api.IdASException
isSingleValued
public boolean isSingleValued()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
isSingleValued in interface org.eclipse.higgins.idas.api.IAttribute
- 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.IAttribute
- 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
equals
public boolean equals(org.eclipse.higgins.idas.api.IAttribute attr)
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
equals in interface org.eclipse.higgins.idas.api.IAttribute
- 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