|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cumulocity.rest.representation.BaseResourceRepresentation
com.cumulocity.rest.representation.AbstractExtensibleRepresentation
public class AbstractExtensibleRepresentation
Constructor Summary | |
---|---|
AbstractExtensibleRepresentation()
|
Method Summary | ||
---|---|---|
|
get(Class<T> clazz)
Returns the object whose parameter name is given by clazz, or null if no such property exists. |
|
Object |
get(String name)
Returns the object associated with the given property name, or null if no such property exists. |
|
Map<String,Object> |
getAttrs()
|
|
Object |
getProperty(String name)
|
|
Set<String> |
propertyNames()
|
|
void |
set(Object object)
Sets a property referring to the given object. |
|
|
set(Object object,
Class<T> clazz)
Sets a property referring to the given object. |
|
void |
set(Object object,
String propertyName)
Sets a property referring to the given object, using an arbitrary property name. |
|
void |
setAttrs(Map<String,Object> attrs)
|
|
void |
setProperty(String name,
Object value)
|
Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation |
---|
getSelf, setSelf, toJSON, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractExtensibleRepresentation()
Method Detail |
---|
@JSONProperty(ignore=true) public Map<String,Object> getAttrs()
public void setAttrs(Map<String,Object> attrs)
public Object getProperty(String name)
getProperty
in interface org.svenson.DynamicProperties
public void setProperty(String name, Object value)
setProperty
in interface org.svenson.DynamicProperties
public Set<String> propertyNames()
propertyNames
in interface org.svenson.DynamicProperties
@JSONProperty(ignore=true) public void set(Object object)
object
- @JSONProperty(ignore=true) public void set(Object object, String propertyName)
object
- propertyName
- @JSONProperty(ignore=true) public <T> void set(Object object, Class<T> clazz)
object
- clazz
- public <T> T get(Class<T> clazz)
clazz
-
set(Object)
public Object get(String name)
name
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |