org.eclipse.higgins.idas.spi
Class BasicDigitalSubject
java.lang.Object
org.eclipse.higgins.idas.spi.BasicDigitalSubject
- All Implemented Interfaces:
- IAttributeContainer, org.eclipse.higgins.idas.api.IDigitalSubject, org.eclipse.higgins.idas.api.IHasAttributes, org.eclipse.higgins.idas.api.IHasMetadata, IMetadataContainer
- public abstract class BasicDigitalSubject
- extends Object
- implements org.eclipse.higgins.idas.api.IDigitalSubject, IAttributeContainer, IMetadataContainer
Basic implementation of IDigitalSubject. The intent of this abstract class is
to be used by Context Provider writers as a superclass for IDigitalSubject
instances. The benefits of using this class are that you will pick up any
convenience methods as well as have the latest methods stubbed out such that
when new methods are added to IDigitalSubject and implemented here, the
subclass will still compile.
The following methods are deliberatly not implemented in this abstract class
because they must be provided by the subclass :
IDigitalSubject.remove()
IAttributeContainer.updateNotification(AttributeNotification)
IMetadataContainer.updateNotification(MetadataNotification)
| Methods inherited from interface org.eclipse.higgins.idas.api.IDigitalSubject |
remove |
BasicDigitalSubject
public BasicDigitalSubject(org.eclipse.higgins.idas.api.IContext context)
throws org.eclipse.higgins.idas.api.IdASException
- Parameters:
context -
- Throws:
org.eclipse.higgins.idas.api.IdASException
BasicDigitalSubject
public BasicDigitalSubject(org.eclipse.higgins.idas.api.IContext context,
URI type,
String subjectId)
throws org.eclipse.higgins.idas.api.IdASException
- The prefered constructor
- Parameters:
context - type - subjectId -
- Throws:
org.eclipse.higgins.idas.api.IdASException
BasicDigitalSubject
public BasicDigitalSubject(org.eclipse.higgins.idas.api.IContext context,
URI type,
String subjectId,
Iterator attributes,
Iterator metadata)
throws org.eclipse.higgins.idas.api.IdASException
- The prefered constructor
- Parameters:
context - type - subjectId - attributes - metadata -
- 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.IDigitalSubject
- Throws:
org.eclipse.higgins.idas.api.IdASException
getModel
public org.eclipse.higgins.idas.api.model.IDigitalSubjectModel getModel()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getModel in interface org.eclipse.higgins.idas.api.IDigitalSubject
- 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.IDigitalSubject
- Throws:
org.eclipse.higgins.idas.api.IdASException
getSubjectID
public String getSubjectID()
throws org.eclipse.higgins.idas.api.IdASException
- Specified by:
getSubjectID in interface org.eclipse.higgins.idas.api.IDigitalSubject
- Throws:
org.eclipse.higgins.idas.api.IdASException
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
addMetadata
public org.eclipse.higgins.idas.api.IMetadata addMetadata(URI type)
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
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
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
addAttribute
public org.eclipse.higgins.idas.api.IAttribute addAttribute(URI type)
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
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
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
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
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
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
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