org.eclipse.higgins.idas.cp.rest.xml
Class RESTEntity

java.lang.Object
  extended by org.eclipse.higgins.idas.spi.BasicEntity
      extended by org.eclipse.higgins.idas.cp.rest.xml.RESTEntity
All Implemented Interfaces:
org.eclipse.higgins.idas.api.IEntity, org.eclipse.higgins.idas.api.IHasAttributes, org.eclipse.higgins.idas.api.IValue, org.eclipse.higgins.idas.spi.IAttributeContainer

public class RESTEntity
extends org.eclipse.higgins.idas.spi.BasicEntity


Field Summary
 
Fields inherited from interface org.eclipse.higgins.idas.api.IValue
BASE_OWL_URI
 
Constructor Summary
RESTEntity(RESTContext context, org.apache.commons.httpclient.HttpClient httpClient, Element entityNode)
           
RESTEntity(RESTContext context, org.apache.commons.httpclient.HttpClient httpClient, String entityID)
           
 
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)
           
 boolean equals(org.eclipse.higgins.idas.api.IHasAttributes attributes)
           
 org.eclipse.higgins.idas.api.IAttribute getAttribute(URI attrID)
           
 Iterator getAttributes()
           
 org.eclipse.higgins.idas.api.IContext getContext()
           
 String getEntityID()
           
 URI getEntityType()
           
 org.eclipse.higgins.idas.api.ISingleValuedAttribute getSingleValuedAttribute(URI attrID)
           
 void remove()
           
 void removeAttribute(URI attrID)
           
 void removeAttributeValue(org.eclipse.higgins.idas.api.IAttribute attr)
           
 void removeAttributeValue(URI attrID, Object value)
           
 void updateNotification(org.eclipse.higgins.idas.spi.AttributeNotification attrNotif)
           
 
Methods inherited from class org.eclipse.higgins.idas.spi.BasicEntity
addAttributeValue, getModel, getType, getValueModel, isProxy, isSimple
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RESTEntity

public RESTEntity(RESTContext context,
                  org.apache.commons.httpclient.HttpClient httpClient,
                  String entityID)
           throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

RESTEntity

public RESTEntity(RESTContext context,
                  org.apache.commons.httpclient.HttpClient httpClient,
                  Element entityNode)
           throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException
Method Detail

getContext

public org.eclipse.higgins.idas.api.IContext getContext()
                                                 throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getContext in interface org.eclipse.higgins.idas.api.IEntity
Overrides:
getContext in class org.eclipse.higgins.idas.spi.BasicEntity
Throws:
org.eclipse.higgins.idas.api.IdASException

getEntityID

public String getEntityID()
                   throws org.eclipse.higgins.idas.api.IdASException
Specified by:
getEntityID in interface org.eclipse.higgins.idas.api.IEntity
Overrides:
getEntityID in class org.eclipse.higgins.idas.spi.BasicEntity
Throws:
org.eclipse.higgins.idas.api.IdASException

getEntityType

public URI getEntityType()
                  throws org.eclipse.higgins.idas.api.IdASException
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.IValue
Overrides:
remove in class org.eclipse.higgins.idas.spi.BasicEntity
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
Overrides:
addAttribute in class org.eclipse.higgins.idas.spi.BasicEntity
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
Overrides:
addAttribute in class org.eclipse.higgins.idas.spi.BasicEntity
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
Overrides:
equals in class org.eclipse.higgins.idas.spi.BasicEntity
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
Overrides:
getAttribute in class org.eclipse.higgins.idas.spi.BasicEntity
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
Overrides:
getAttributes in class org.eclipse.higgins.idas.spi.BasicEntity
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
Overrides:
getSingleValuedAttribute in class org.eclipse.higgins.idas.spi.BasicEntity
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
Overrides:
removeAttribute in class org.eclipse.higgins.idas.spi.BasicEntity
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
Overrides:
removeAttributeValue in class org.eclipse.higgins.idas.spi.BasicEntity
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
Overrides:
removeAttributeValue in class org.eclipse.higgins.idas.spi.BasicEntity
Throws:
org.eclipse.higgins.idas.api.IdASException

updateNotification

public void updateNotification(org.eclipse.higgins.idas.spi.AttributeNotification attrNotif)
                        throws org.eclipse.higgins.idas.api.IdASException
Specified by:
updateNotification in interface org.eclipse.higgins.idas.spi.IAttributeContainer
Overrides:
updateNotification in class org.eclipse.higgins.idas.spi.BasicEntity
Throws:
org.eclipse.higgins.idas.api.IdASException