org.eclipse.higgins.idas
Interface IHasAttributes

All Known Subinterfaces:
IComplexValue, IDigitalSubject
All Known Implementing Classes:
AbstractComplexValue, BasicAttributeSet, BasicComplexValue

public interface IHasAttributes


Method Summary
 void addAttribute(IAttribute attribute)
           
 IAttribute createAttribute(java.net.URI type, IPropertyValue value)
          Creates and adds an attribute for this object.
 IAttribute createAttribute(java.net.URI type, java.lang.Iterable<IPropertyValue> values)
          Creates and adds an attribute for this object.
 IAttribute getAttribute(java.net.URI attrID)
          Return specified attribute of this object
 java.lang.Iterable<IAttribute> getAttributes()
          Return all attributes of this object
 void removeAttribute(IAttribute attribute)
           
 

Method Detail

createAttribute

IAttribute createAttribute(java.net.URI type,
                           IPropertyValue value)
                           throws IdASException
Creates and adds an attribute for this object.

Parameters:
type - The attribute's type.
value - The attribute's value.
Returns:
The resulting Attribute.
Throws:
IdASException

createAttribute

IAttribute createAttribute(java.net.URI type,
                           java.lang.Iterable<IPropertyValue> values)
                           throws IdASException
Creates and adds an attribute for this object.

Parameters:
type - The attribute's type.
values - The attribute's values.
Returns:
The resulting Attribute.
Throws:
IdASException

addAttribute

void addAttribute(IAttribute attribute)
                  throws IdASException
Throws:
IdASException

removeAttribute

void removeAttribute(IAttribute attribute)
                     throws IdASException
Throws:
IdASException

getAttributes

java.lang.Iterable<IAttribute> getAttributes()
                                             throws IdASException
Return all attributes of this object

Returns:
An Iterable object of IAttributes.
Throws:
IdASException

getAttribute

IAttribute getAttribute(java.net.URI attrID)
                        throws IdASException
Return specified attribute of this object

Parameters:
attrID - The identifier of the attribute to be returned.
Returns:
An IAttribute or null if none exits.
Throws:
IdASException