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

java.lang.Object
  extended by org.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


Constructor Summary
Attribute(Context context, Entity owner, URI type, org.eclipse.higgins.idas.api.model.IAttributeModel model)
           
 
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.IEntity addAttributeValue(URI attrType, String entityId)
           
 org.eclipse.higgins.idas.api.IEntity addComplexValue(String entityID)
           
 org.eclipse.higgins.idas.api.IEntity addComplexValue(URI type)
           
 org.eclipse.higgins.idas.api.ISimpleValue addSimpleValue(URI dataType, Object data)
           
 org.eclipse.higgins.idas.api.IValue addValue(org.eclipse.higgins.idas.api.IValue copyFrom)
           
 org.eclipse.higgins.idas.api.IValue addValue(URI dataType)
           
 org.eclipse.higgins.idas.api.IAttribute getAttribute(URI attrID)
           
 Iterator<org.eclipse.higgins.idas.api.IAttribute> getAttributes()
           
 org.eclipse.higgins.idas.api.model.IAttributeModel getModel()
           
 Entity getOwner()
           
 org.eclipse.higgins.idas.api.ISingleValuedAttribute getSingleValuedAttribute(URI attrID)
           
 URI getType()
           
 Iterator<org.eclipse.higgins.idas.api.IValue> getValues()
           
 Iterator<org.eclipse.higgins.idas.api.IValue> 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
 

Constructor Detail

Attribute

public Attribute(Context context,
                 Entity owner,
                 URI type,
                 org.eclipse.higgins.idas.api.model.IAttributeModel model)
          throws org.eclipse.higgins.idas.api.model.IdASModelException
Throws:
org.eclipse.higgins.idas.api.model.IdASModelException
Method Detail

getOwner

public Entity getOwner()

addComplexValue

public org.eclipse.higgins.idas.api.IEntity 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.ISimpleValue addSimpleValue(URI dataType,
                                                                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.IValue addValue(URI dataType)
                                             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.IValue addValue(org.eclipse.higgins.idas.api.IValue 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

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

getType

public URI getType()
            throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getType in interface org.eclipse.higgins.idas.api.IAttribute
Throws:
org.eclipse.higgins.idas.api.IdASException

getValues

public Iterator<org.eclipse.higgins.idas.api.IValue> 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<org.eclipse.higgins.idas.api.IValue> 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

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<org.eclipse.higgins.idas.api.IAttribute> 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

addComplexValue

public org.eclipse.higgins.idas.api.IEntity addComplexValue(String entityID)
                                                     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

addAttributeValue

public org.eclipse.higgins.idas.api.IEntity addAttributeValue(URI attrType,
                                                              String entityId)
                                                       throws org.eclipse.higgins.idas.api.IdASException
Specified by:
addAttributeValue in interface org.eclipse.higgins.idas.api.IHasAttributes
Throws:
org.eclipse.higgins.idas.api.IdASException