public abstract class ObjectWithDynamicAttributes
extends java.lang.Object
| Constructor and Description |
|---|
ObjectWithDynamicAttributes() |
| Modifier and Type | Method and Description |
|---|---|
ObjectWithDynamicAttributes |
copy()
Creates and returns a copy of this ObjectWithDynamicAttributes
|
java.lang.String |
describeAttributes()
Returns a string representation of the object's current attributes
|
java.lang.String |
describeType()
By default, returns the simple name of the underlying class as given in
the source code.
|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getAttribute(java.lang.Object key)
Returns the value of the specified attribute key, or null if the
attribute was not found.
|
java.util.Set<java.lang.Object> |
getKeySet()
Returns an unmodifiable view of the object's key set
|
int |
hashCode() |
void |
removeAttribute(java.lang.Object key)
Removes the attribute with the specified key from this
ObjectWithDynamicAttributes.
|
void |
setAttribute(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified attribute key.
|
java.lang.String |
toString() |
public java.lang.String describeType()
public java.lang.String describeAttributes()
public java.util.Set<java.lang.Object> getKeySet()
public void setAttribute(java.lang.Object key,
java.lang.Object value)
key - the attribute keyvalue - the attribute valuepublic java.lang.Object getAttribute(java.lang.Object key)
key - the attribute keypublic void removeAttribute(java.lang.Object key)
key - the attribute keypublic ObjectWithDynamicAttributes copy()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object