|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface marks an object to be attributable.
Notice:
There is no predefinition that a class implementing this interface will work
with AttributeSets or with AttributeCollections in
general.
Attribute,
AttributeSet,
AttributeCollection,
AttributableOnSet| Method Summary | |
Attribute |
getAttribute(java.lang.String name)
Returns the attribute with the given name or null if there
is no Attribute with the given name. |
AttributeType |
getAttributeType(java.lang.String name)
Returns the AttributeType of the attribute with the given
name. |
java.lang.Object |
getAttributeValue(java.lang.String name)
Return the value of the attribute with the given name. |
void |
setAttribute(Attribute attribute)
Sets the value of the attribute with the same name to the value of the given attribute. |
void |
setAttributeValue(java.lang.String name,
java.lang.Object value)
Sets the value of the attribute with the name to the given value. |
| Method Detail |
public Attribute getAttribute(java.lang.String name)
null if there
is no Attribute with the given name.
name - name of the attribute to return.
null.
public void setAttribute(Attribute attribute)
throws IllegalValueException,
ConstraintViolationException
Attributable interface doesn't support an
Attribute with the name of the Attribute given
by attribute, the given attribute is not
handled by nor added to the attributes of the Attributable.
attribute - the attribute to be set.
IllegalValueException - is thrown when the value of the given
Attribute is illegal (for instance when it is null).
ConstraintViolationException - is thrown when the value of the
given Attribute violates the constraint of the
Attribute to set.public java.lang.Object getAttributeValue(java.lang.String name)
name - the name of the attribute to return the value from.
public void setAttributeValue(java.lang.String name,
java.lang.Object value)
throws IllegalValueException,
ConstraintViolationException
Attributable interface doesn't support an
Attribute with the name given by name,
the attribute given through name and value
is not handled nor created by Attributable.
name - the name of the attribute.value - the value to set the attributes value to.
IllegalValueException - is thrown when the given value
is illegal (for instance when it is null).
ConstraintViolationException - is thrown when the given
value violates the constraint of the
Attribute to set.public AttributeType getAttributeType(java.lang.String name)
AttributeType of the attribute with the given
name.
name - the name of the attribute.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||