|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeValueContainer
An interface to be implemented by elements containing attributes.
Method Summary | |
---|---|
List<AttributeValue> |
getAllValues()
Returns complete list of attribute values in this container. |
AttributeManager |
getAttributeManager()
Returns attribute manager for this container. |
AttributeValue |
getAttributeValue(String name)
Returns the value of the attribute named name . |
boolean |
isAttributeEditable(String name)
Checks if given attribute is editable. |
AttributeValue |
removePropertyValue(String name)
Removes attribute value from this container. |
void |
setAttributeValue(String name,
Object newValue)
Sets a new attribute value, fires change event. |
void |
setAttributeValue(String name,
Object newValue,
AttributeMergePolicy policy)
Sets a new attribute value according to given AttributeMergePolicy , fires change event. |
Method Detail |
---|
AttributeValue getAttributeValue(String name)
name
.
name
- name of the attribute
AttributeValue
instance for the given attributevoid setAttributeValue(String name, Object newValue)
name
- name of the attribute to changenewValue
- new value of the attribute
UnsupportedOperationException
- if attribute is not editablevoid setAttributeValue(String name, Object newValue, AttributeMergePolicy policy)
AttributeMergePolicy
, fires change event.
If policy
is null
then acts the same as setAttributeValue(String, Object)
.
name
- name of the attribute to changenewValue
- new value of the attributepolicy
- merge policy
UnsupportedOperationException
- if attribute is not editableboolean isAttributeEditable(String name)
name
- name of the attribute
List<AttributeValue> getAllValues()
AttributeValue
sAttributeValue removePropertyValue(String name)
name
- name of attribute to remove
AttributeValue
, or null if this attribute's value was not set (see
Collection.remove(Object)
)AttributeManager getAttributeManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |