org.eclipse.higgins.idas.cp.rest.xml
Class RESTEntity
java.lang.Object
org.eclipse.higgins.idas.spi.BasicEntity
org.eclipse.higgins.idas.cp.rest.xml.RESTEntity
- All Implemented Interfaces:
- org.eclipse.higgins.idas.api.IBlankEntity, org.eclipse.higgins.idas.api.IEntity, org.eclipse.higgins.idas.api.IHasAttributes, org.eclipse.higgins.idas.spi.IAttributeContainer
public class RESTEntity
- extends org.eclipse.higgins.idas.spi.BasicEntity
| Methods inherited from class org.eclipse.higgins.idas.spi.BasicEntity |
getModel |
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
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
- Specified by:
getEntityType in interface org.eclipse.higgins.idas.api.IEntity- Overrides:
getEntityType in class org.eclipse.higgins.idas.spi.BasicEntity
- 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.IEntity- 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
- Specified by:
equals in interface org.eclipse.higgins.idas.api.IHasAttributes- 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