java.lang.Object | |
↳ | org.springframework.core.AttributeAccessorSupport |
Known Direct Subclasses |
Known Indirect Subclasses |
Support class for AttributeAccessors
, providing
a base implementation of all methods. To be extended by subclasses.
Serializable
if subclasses and all attribute values are Serializable
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the names of all attributes.
| |||||||||||
Get the value of the attribute identified by
name . | |||||||||||
Return
true if the attribute identified by name exists. | |||||||||||
Remove the attribute identified by
name and return its value. | |||||||||||
Set the attribute defined by
name to the supplied value . |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Copy the attributes from the supplied AttributeAccessor to this accessor.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.core.AttributeAccessor
|
Get the value of the attribute identified by name
.
Return null
if the attribute doesn't exist.
name | the unique attribute key |
---|
Return true
if the attribute identified by name
exists.
Otherwise return false
.
name | the unique attribute key |
---|
Remove the attribute identified by name
and return its value.
Return null
if no attribute under name
is found.
name | the unique attribute key |
---|
Set the attribute defined by name
to the supplied value
.
If value
is null
, the attribute is removed
.
In general, users should take care to prevent overlaps with other metadata attributes by using fully-qualified names, perhaps using class or package names as prefix.
name | the unique attribute key |
---|---|
value | the attribute value to be attached |
Copy the attributes from the supplied AttributeAccessor to this accessor.
source | the AttributeAccessor to copy from |
---|