public class YamlObjectReflector extends Reflector
YamlObject instances.| Constructor and Description |
|---|
YamlObjectReflector(java.lang.Object newObject)
Deprecated.
since 1.2; use
YamlObjectReflector(YamlObject) instead |
YamlObjectReflector(YamlObject yamlObject) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getAllProperties() |
java.util.Set<java.lang.String> |
getOwnProperties() |
java.lang.Object |
getValue(java.lang.Object object,
java.lang.String attribute)
Gets the attribute of the object by invoking either
object.get<attribute>(), object.<attribute>()
or object.is<attribute>() (trying in that order). |
java.lang.Object |
newInstance()
Creates a new instance of the underlying class.
|
void |
removeObject(java.lang.Object object)
Removes all associations from the object by calling it's
removeYou() method. |
java.lang.Object |
setValue(java.lang.Object object,
java.lang.String attribute,
java.lang.Object value)
Sets the attribute of the object to the new value by invoking a fitting
set<attribute>(...) or
with<attribute>(...) method or get<attribute>.add(...) for EMF to-many associations. |
getClassName, getClazz, getProperties, removeValue, setClassName, setClazz, setUseEMF, setValue@Deprecated public YamlObjectReflector(java.lang.Object newObject)
YamlObjectReflector(YamlObject) insteadnewObject - the yaml object (must be a YamlObject instance)public YamlObjectReflector(YamlObject yamlObject)
yamlObject - the yaml objectpublic java.util.Set<java.lang.String> getOwnProperties()
getOwnProperties in class Reflectorpublic java.util.Set<java.lang.String> getAllProperties()
getAllProperties in class Reflectorpublic java.lang.Object newInstance()
Reflectornull is returnednewInstance in class Reflectornull if that failspublic java.lang.Object getValue(java.lang.Object object,
java.lang.String attribute)
Reflectorobject.get<attribute>(), object.<attribute>()
or object.is<attribute>() (trying in that order).public java.lang.Object setValue(java.lang.Object object,
java.lang.String attribute,
java.lang.Object value)
Reflectorset<attribute>(...) or
with<attribute>(...) method or get<attribute>.add(...) for EMF to-many associations.public void removeObject(java.lang.Object object)
ReflectorremoveYou() method.
If that method is not available, no action is taken.
In particular, no exception is thrown in that case.removeObject in class Reflectorobject - the object to remove