| Modifier and Type | Field and Description |
|---|---|
| private static final Map | attributeFieldCache
Cache of fields on this object. |
| private final SmartMap | attributes
Additional non-standard attributes. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides java. Implements liquibase. Expose |
| public String | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Default implementation counts objects equal if their describe() methods return equal strings. |
| public <T> T | get(String attribute, Class<T> type)
Implements liquibase. Return the current value of the given attribute name, converted to the passed type. |
| public <T> T | get(String attribute, T defaultValue)
Implements liquibase. Works like |
| protected <T> T | |
| private Map | |
| public SortedSet | getAttributes()
Implements liquibase. Return the names of all the set attributes. |
| protected Object | |
| public ObjectMetaData | getObjectMetaData()
Implements liquibase. Returns the |
| public List | getValuePath(String attributes, Class<T>
the type to convert the last value in the list to. lastType)Implements liquibase. Traverses dot-separated attributes in the attributePath and returns a list containing all the intermediate values. |
| public boolean | |
| public int | |
| public ExtensibleObject | set(String attribute, Object value)
Implements liquibase. Sets the value of the given attribute. |
| public String |
| attributeFieldCache | back to summary |
|---|---|
| private static final Map<Class<T>, Map<String, Field>> attributeFieldCache Cache of fields on this object. Lazy loaded in | |
| attributes | back to summary |
|---|---|
| private final SmartMap attributes Additional non-standard attributes. | |
| AbstractExtensibleObject | back to summary |
|---|---|
| public AbstractExtensibleObject() | |
| AbstractExtensibleObject | back to summary |
|---|---|
| public AbstractExtensibleObject(Map<String, ?> values) Creates a new object with the given attributes. | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Implements liquibase. Doc from liquibase. Expose
| |
| describe | back to summary |
|---|---|
| public String describe() Implements liquibase. Doc from liquibase. Output a full description of this object. Should include all attributes and values.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Default implementation counts objects equal if their describe() methods return equal strings.
| |
| get | back to summary |
|---|---|
| public <T> T get(String attribute, Class<T> type) Implements liquibase. Doc from liquibase. Return the current value of the given attribute name, converted to the passed type.
If the passed attribute is null or not defined, returns null.
If you do not know the type to convert to, pass Object.class as the type.
Conversion is done using
| |
| get | back to summary |
|---|---|
| public <T> T get(String attribute, T defaultValue) Implements liquibase. Doc from liquibase. Works like If null is passed to the default value, no conversion of attribute is made if it is set. If traversing a dot-separated attribute path, return the default value if any along the path are null.
| |
| get | back to summary |
|---|---|
| protected <T> T get(String attribute, T defaultValue, Class<T> type) | |
| getAttributeFields | back to summary |
|---|---|
| private Map | |
| getAttributes | back to summary |
|---|---|
| public SortedSet Implements liquibase. Doc from liquibase. Return the names of all the set attributes. If an attribute is null the name should not be returned. Should return both "standard" attributes and any custom attributes that have been set.
| |
| getFieldValue | back to summary |
|---|---|
| protected Object getFieldValue(String attribute, Class<T> type) | |
| getObjectMetaData | back to summary |
|---|---|
| public ObjectMetaData getObjectMetaData() Implements liquibase. Doc from liquibase. Returns the
| |
| getValuePath | back to summary |
|---|---|
| public List Implements liquibase. Doc from liquibase. Traverses dot-separated attributes in the attributePath and returns a list containing all the intermediate values. | |
| has | back to summary |
|---|---|
| public boolean has(String key) Implements liquibase. Return true if the given key is defined.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| set | back to summary |
|---|---|
| public ExtensibleObject set(String attribute, Object value) Implements liquibase. Doc from liquibase. Sets the value of the given attribute. Subclasses can override this method to provide conversion business logic, but must remember that fields can be set directly when no type conversion is needed.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |