public interface IAttributes
IAttributes interface applies for classes that contain
attributes. An attribute is pair of an identifier and a value object. The
identifier must be a String.| Modifier and Type | Method and Description |
|---|---|
<O> O |
getAttribute(java.lang.String identifier)
Returns the attribute
|
java.util.Set<java.lang.String> |
getAttributeNames()
Returns the attribute names.
|
Parameter |
getAttributeParameter(java.lang.String identifier)
Return the parameter definition or
null if the attribute is not
defined as parameter. |
IAttributes |
getAttributes()
Returns the map of all pairs of attributes.
|
boolean |
isDefined(java.lang.String identifier)
Tests whether an attribute is defined.
|
void |
setAttribute(java.lang.String identifier,
java.lang.Object object)
Sets the attribute.
|
void setAttribute(java.lang.String identifier,
java.lang.Object object)
identifier - the identifier of the attributeobject - the value of the attribute<O> O getAttribute(java.lang.String identifier)
O - the type of the attributeidentifier - the identifier of the attributeParameter getAttributeParameter(java.lang.String identifier)
null if the attribute is not
defined as parameter.identifier - the identifier of the attributeIAttributes getAttributes()
java.util.Set<java.lang.String> getAttributeNames()
boolean isDefined(java.lang.String identifier)
identifier - the identifier of the attributetrue if defined