org.eclipse.higgins.idas.cp.jena2.impl
Class Attribute

java.lang.Object
  extended byorg.eclipse.higgins.idas.cp.jena2.impl.Attribute
All Implemented Interfaces:
org.eclipse.higgins.idas.api.IAttribute, org.eclipse.higgins.idas.api.IHasAttributes
Direct Known Subclasses:
SingleValuedAttribute

public class Attribute
extends Object
implements org.eclipse.higgins.idas.api.IAttribute

Author:
sergey

Method Summary
 org.eclipse.higgins.idas.api.IAttribute addAttribute(org.eclipse.higgins.idas.api.IAttribute copyFrom)
           
 org.eclipse.higgins.idas.api.IAttribute addAttribute(URI attrID)
           
 org.eclipse.higgins.idas.api.IComplexAttrValue addComplexValue(URI type)
           
 org.eclipse.higgins.idas.api.ISimpleAttrValue addSimpleValue(URI type, Object data)
           
 org.eclipse.higgins.idas.api.IAttributeValue addValue(org.eclipse.higgins.idas.api.IAttributeValue copyFrom)
           
 org.eclipse.higgins.idas.api.IAttributeValue addValue(URI type)
           
 boolean equals(org.eclipse.higgins.idas.api.IAttribute attr)
          The methods below were added by Jim to replace IMetadata
 boolean equals(org.eclipse.higgins.idas.api.IHasAttributes attributes)
           
 org.eclipse.higgins.idas.api.IAttribute getAttribute(URI attrID)
           
 Entity getAttributeProperty()
           
 Iterator getAttributes()
           
 URI getAttrID()
           
 org.eclipse.higgins.idas.api.model.IAttributeModel getModel()
           
 com.hp.hpl.jena.ontology.Individual getOwner()
           
 com.hp.hpl.jena.ontology.OntClass getOwnerClass()
           
 org.eclipse.higgins.idas.api.ISingleValuedAttribute getSingleValuedAttribute(URI attrID)
           
 Entity getSubjectOwner()
           
 Iterator getValues()
           
 Iterator getValues(org.eclipse.higgins.idas.api.IExtension[] extensions)
           
 boolean isSingleValued()
           
 void remove()
           
 void removeAttribute(URI attrID)
           
 void removeAttributeValue(org.eclipse.higgins.idas.api.IAttribute attr)
           
 void removeAttributeValue(URI attrID, Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

getValues

public Iterator getValues(org.eclipse.higgins.idas.api.IExtension[] extensions)
                   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

equals

public boolean equals(org.eclipse.higgins.idas.api.IAttribute attr)
               throws org.eclipse.higgins.idas.api.IdASException
The methods below were added by Jim to replace IMetadata

Specified by:
equals in interface org.eclipse.higgins.idas.api.IAttribute
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

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

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

getSingleValuedAttribute

public org.eclipse.higgins.idas.api.ISingleValuedAttribute getSingleValuedAttribute(URI attrID)
                                                                             throws org.eclipse.higgins.idas.api.IdASException,
                                                                                    org.eclipse.higgins.idas.api.NotSingleValuedAttributeException
Specified by:
getSingleValuedAttribute in interface org.eclipse.higgins.idas.api.IHasAttributes
Throws:
org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.NotSingleValuedAttributeException

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