|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
| Method Summary | |
|---|---|
IAttribute |
addAttribute(IAttribute copyFrom)
Creates a new Attribute for this container of attributes (typically IDigitalSubject) by copying the data from
the passed IAttribute. |
IAttribute |
addAttribute(URI attrID)
Creates a new Attribute for this container of attributes (typically IDigitalSubject). |
boolean |
equals(IHasAttributes attributes)
Returns true if the passed attribute set is equal to this one. |
IAttribute |
getAttribute(URI attrID)
Returns the specified attribute of this object. |
Iterator |
getAttributes()
Return all attributes of this object |
ISingleValuedAttribute |
getSingleValuedAttribute(URI attrID)
Returns the specified attribute of this object as an ISingleValuedAttribute. |
void |
removeAttribute(URI attrID)
Deletes the specified attrID. |
void |
removeAttributeValue(IAttribute attr)
Deletes the specified value(s) from the specified attribute. |
void |
removeAttributeValue(URI attrID,
Object value)
Deletes the specified value from the specified attrID. |
| Method Detail |
public Iterator getAttributes()
throws IdASException
IAttributes.
IdASException
public IAttribute getAttribute(URI attrID)
throws IdASException
attrID - The identifier of the attribute to be returned.
IAttribute or if none exits.
IdASException
public ISingleValuedAttribute getSingleValuedAttribute(URI attrID)
throws IdASException,
NotSingleValuedAttributeException
attrID - The identifier of the attribute to be returned.
IAttribute or if none exits.
IdASException
NotSingleValuedAttributeException - when the specified attrID is not
specified by its model as a single-valued attribute.
public IAttribute addAttribute(URI attrID)
throws IdASException,
InvalidTypeException
IDigitalSubject).
This call is typically followed by one or more calls to
IAttribute.addValue(java.net.URI), IAttribute.addSimpleValue(java.net.URI, java.lang.Object),
IAttribute.addComplexValue(java.net.URI), (@link IHasMetadata#addMetadata} on
the returned IAttribute
Note: If the specified attribute already exists, the subsequently added
values are added to the subject, adding to the existing values of that attribute
(subject to any model restrictions).
Note: This operation is only applied to any backing data store after
IContext.applyUpdates() is called.
attrID - The URI specifying the type (attributeID) of the Attribute being created
{@link - IdASException}
{@link - InvalidTypeException} when the type is invalid
IdASException
InvalidTypeException
public IAttribute addAttribute(IAttribute copyFrom)
throws IdASException
IDigitalSubject) by copying the data from
the passed IAttribute.
Note: This operation is only applied to any backing data store after
IContext.applyUpdates() is called.
copyFrom - an IAttribute from which data is copied to construct a new
Attribute
{@link - IdASException}
IdASException
public void removeAttribute(URI attrID)
throws IdASException
getAttribute(URI) and then calling remove on the returned IAttribute.
More importantly however is that this method allows
an attribute to be removed when the caller has permissions
to remove, but no permissions to read that attribute.
attrID - identifies the attribute to be removed
IdASException
public void removeAttributeValue(URI attrID,
Object value)
throws IdASException
getAttribute(URI), then fetching the
appropriate value from the returned IAttribute,
and then calling remove on that value.
More importantly however is that this method allows
an attribute value to be removed when the caller has
permissions to remove values, but no permissions to
read that attribute or its values.
attrID - identifies the attribute to be removedvalue - identifies the attribute value to be removed
IdASException
public void removeAttributeValue(IAttribute attr)
throws IdASException
removeAttributeValue(URI, Object) once for each value in attr.
attr - Holds one or more values to be deleted from the
attribute (named in attr)
IdASException
public boolean equals(IHasAttributes attributes)
throws IdASException
attributes - the set of attributes to compare to this one
IdASException
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||