public class OwnedObject extends EncodableObject implements IOwnable
Constructor and Description |
---|
OwnedObject() |
Modifier and Type | Method and Description |
---|---|
Object |
getParentObject() |
Object |
getParentObject(Class parentClass)
Go up the chain of parents until a parent with the specified class is found or until no parent is found.
|
void |
setParentObject(Object parent) |
decode, decoded, decoded, decodeFields, decodeFields, encode, encoded, encoded, encodeFields, encodeFields, textDecode, textEncode
_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNew
public void setParentObject(Object parent)
setParentObject
in interface IOwnable
public Object getParentObject()
getParentObject
in interface IOwnable
public final Object getParentObject(Class parentClass)
getParentObject
in interface IOwnable
parentClass
- the class of the parent to search for or null to return the first parent.