|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.svenson.AbstractDynamicProperties
com.cumulocity.model.JSONBase
com.cumulocity.model.Document<T>
com.cumulocity.model.FragmentDocument<T>
com.cumulocity.model.ManagedObject<T>
public class ManagedObject<T extends ID>
Represents a Managed Object. According to inventory model specification, it extends Document, thus inheriting _id, and adds the generic properties of Managed Objects. _id, from Document is used to uniquely identify a Managed Object.
| Constructor Summary | |
|---|---|
ManagedObject()
|
|
| Method Summary | |
|---|---|
boolean |
addAllChildAssets(Collection<T> c)
Adds a collection of ManagedObjectId as child assets |
boolean |
addAllChildDevices(Collection<T> c)
Adds a collection of ManagedObjectId as child devices |
boolean |
addChildAsset(T e)
Adds a ManagedObjectId as a child asset |
boolean |
addChildDevice(T e)
Adds a ManagedObjectId as a child device |
boolean |
equals(Object obj)
Autogenerated by Eclipse |
static ManagedObject |
fromJSON(String json)
Unmarshall the JSON representation to ManagedObject type. |
Set<T> |
getChildAssets()
|
Set<T> |
getChildDevices()
|
Date |
getLastUpdated()
|
String |
getName()
|
String |
getOwner()
|
String |
getType()
|
int |
hashCode()
Autogenerated by Eclipse |
boolean |
removeAllChildAssets(Collection<T> c)
Removes a collection of ManagedObjectId from the child assets set |
boolean |
removeAllChildDevices(Collection<T> c)
Removes a collection of ManagedObjectId from the child devices set |
boolean |
removeChildAsset(T o)
Removes a ManagedObjectId from the child assets set |
boolean |
removeChildDevice(T o)
Removes a ManagedObjectId from the child devices set |
void |
setChildAssets(Collection<T> assets)
Replaces the underlying assets set with a new synchronized set containing the elements passed in the parameter. |
void |
setChildAssets(Set<T> assets)
Replaces the underlying assets set with a new synchronized set containing the elements passed in the parameter. |
void |
setChildDevices(Collection<T> devices)
Replaces the underlying devices set with a new synchronized set containing the elements passed in the parameter. |
void |
setChildDevices(Set<T> devices)
Replaces the underlying devices set with a new synchronized set containing the elements passed in the parameter. |
void |
setLastUpdated(Date lastUpdated)
|
void |
setName(String name)
|
void |
setOwner(String owner)
|
void |
setType(String type)
|
| Methods inherited from class com.cumulocity.model.FragmentDocument |
|---|
addFragment, addFragments, getFragment, getFragments, removeFragment, setFragments, updateFragment |
| Methods inherited from class com.cumulocity.model.Document |
|---|
get, get, getFragment, getId, getInternalId, getRevision, set, set, set, setId, setInternalId, setRevision, toString |
| Methods inherited from class com.cumulocity.model.JSONBase |
|---|
fromJSON, getJSONGenerator, getJSONParser, toJSON |
| Methods inherited from class org.svenson.AbstractDynamicProperties |
|---|
getProperty, propertyNames, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedObject()
| Method Detail |
|---|
@JSONProperty(value="type",
ignoreIfNull=true)
public String getType()
public void setType(String type)
@JSONProperty(value="name",
ignoreIfNull=true)
public String getName()
public void setName(String name)
@JSONProperty(value="lastUpdated",
ignoreIfNull=true)
@JSONConverter(type=DateConverter.class)
public Date getLastUpdated()
public void setLastUpdated(Date lastUpdated)
@JSONProperty(value="owner",
ignoreIfNull=true)
public String getOwner()
getOwner in interface OwnerSourcepublic void setOwner(String owner)
@JSONProperty(ignoreIfNull=true) @JSONConverter(type=IDListTypeConverter.class) public Set<T> getChildAssets()
public void setChildAssets(Collection<T> assets)
assets - public void setChildAssets(Set<T> assets)
assets - setChildAssets(final Collection assets) public boolean addChildAsset(T e)
public boolean addAllChildAssets(Collection<T> c)
public boolean removeChildAsset(T o)
o - the ManagedObjectId to remove
Set.remove(java.lang.Object)public boolean removeAllChildAssets(Collection<T> c)
c - the collection of ManagedObjectId to remove
Set.removeAll(java.util.Collection)@JSONProperty(ignoreIfNull=true) @JSONConverter(type=IDListTypeConverter.class) public Set<T> getChildDevices()
public void setChildDevices(Collection<T> devices)
Devices - public void setChildDevices(Set<T> devices)
devices - setChildDevices(final Collection devices) public boolean addChildDevice(T e)
public boolean addAllChildDevices(Collection<T> c)
public boolean removeChildDevice(T o)
o - the ManagedObjectId to remove
Set.remove(java.lang.Object)public boolean removeAllChildDevices(Collection<T> c)
c - the collection of ManagedObjectId to remove
Set.removeAll(java.util.Collection)public int hashCode()
hashCode in class Document<T extends ID>public boolean equals(Object obj)
equals in class Document<T extends ID>public static ManagedObject fromJSON(String json)
json - the json string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||