If creating an ExtensibleObject, it is usually best to extend liquibase. rather than this interface directly.
You should also create a test that extends from AbstractExtensibleObjectTest.
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public String | |
| public <T> T | |
| public <T> T | get(String attribute, T defaultValue)
Works like |
| public SortedSet | |
| public ObjectMetaData | |
| public List | getValuePath(String attributePath, Class<T>
the type to convert the last value in the list to. lastType)Traverses dot-separated attributes in the attributePath and returns a list containing all the intermediate values. |
| public boolean | |
| public ExtensibleObject |
| clone | back to summary |
|---|---|
| public Object clone() Expose | |
| describe | back to summary |
|---|---|
| public String describe() Output a full description of this object. Should include all attributes and values. | |
| get | back to summary |
|---|---|
| public <T> T get(String attribute, Class<T> type) 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) 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. | |
| getAttributes | back to summary |
|---|---|
| public SortedSet 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. | |
| getObjectMetaData | back to summary |
|---|---|
| public ObjectMetaData getObjectMetaData() Returns the | |
| getValuePath | back to summary |
|---|---|
| public List Traverses dot-separated attributes in the attributePath and returns a list containing all the intermediate values.
| |
| has | back to summary |
|---|---|
| public boolean has(String attribute) Returns true if the given attribute is set and not null. | |
| set | back to summary |
|---|---|
| public ExtensibleObject set(String attribute, Object value) 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. | |