public abstract class AbstractDynamicObject extends Object implements DynamicObject
DynamicObject.| Constructor and Description |
|---|
AbstractDynamicObject() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getDisplayName() |
Map<String,?> |
getProperties() |
Object |
getProperty(String name) |
boolean |
hasMethod(String name,
Object... arguments) |
boolean |
hasProperty(String name) |
Object |
invokeMethod(String name,
Object... arguments) |
protected MissingMethodException |
methodMissingException(String name,
Object... params) |
protected MissingPropertyException |
propertyMissingException(String name) |
void |
setProperty(String name,
Object value) |
protected abstract String getDisplayName()
public boolean hasProperty(String name)
hasProperty in interface DynamicObjectpublic Object getProperty(String name) throws MissingPropertyException
getProperty in interface DynamicObjectMissingPropertyExceptionpublic void setProperty(String name, Object value) throws MissingPropertyException
setProperty in interface DynamicObjectMissingPropertyExceptionprotected MissingPropertyException propertyMissingException(String name)
public Map<String,?> getProperties()
getProperties in interface DynamicObjectpublic boolean hasMethod(String name, Object... arguments)
hasMethod in interface DynamicObjectpublic Object invokeMethod(String name, Object... arguments) throws MissingMethodException
invokeMethod in interface DynamicObjectMissingMethodExceptionprotected MissingMethodException methodMissingException(String name, Object... params)
Copyright © 2013. All rights reserved