com.cumulocity.rest.representation.inventory
Class ManagedObjectRepresentation

java.lang.Object
  extended by com.cumulocity.rest.representation.BaseResourceRepresentation
      extended by com.cumulocity.rest.representation.AbstractExtensibleRepresentation
          extended by com.cumulocity.rest.representation.inventory.ManagedObjectRepresentation
All Implemented Interfaces:
OwnerSource, ResourceRepresentation, ResourceRepresentationWithId, org.svenson.DynamicProperties

public class ManagedObjectRepresentation
extends AbstractExtensibleRepresentation
implements ResourceRepresentationWithId, OwnerSource

A Java Representation for the MediaType ManagedObject


Constructor Summary
ManagedObjectRepresentation()
          Default constructor is needed for reflection based class instantiation.
 
Method Summary
 ManagedObjectReferenceCollectionRepresentation getChildAssets()
           
 ManagedObjectReferenceCollectionRepresentation getChildDevices()
           
 GId getId()
           
 Date getLastUpdated()
           
 String getName()
           
 String getOwner()
           
 ManagedObjectReferenceCollectionRepresentation getParents()
           
 String getType()
           
 void setChildAssets(ManagedObjectReferenceCollectionRepresentation childAssets)
           
 void setChildDevices(ManagedObjectReferenceCollectionRepresentation childDevices)
           
 void setId(GId id)
           
 void setLastUpdated(Date lastUpdate)
           
 void setName(String name)
           
 void setOwner(String owner)
           
 void setParents(ManagedObjectReferenceCollectionRepresentation parents)
           
 void setType(String type)
           
 
Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, propertyNames, set, set, set, setAttrs, setProperty
 
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

ManagedObjectRepresentation

public ManagedObjectRepresentation()
Default constructor is needed for reflection based class instantiation.

Method Detail

getId

@JSONConverter(type=IDTypeConverter.class)
@JSONProperty(ignoreIfNull=true)
public GId getId()

setId

public void setId(GId id)
Specified by:
setId in interface ResourceRepresentationWithId

getType

@JSONProperty(ignoreIfNull=true)
public String getType()

setType

public void setType(String type)

getName

@JSONProperty(ignoreIfNull=true)
public String getName()

setName

public void setName(String name)

getLastUpdated

@JSONProperty(value="lastUpdated",
              ignoreIfNull=true)
@JSONConverter(type=DateConverter.class)
public Date getLastUpdated()

setLastUpdated

public void setLastUpdated(Date lastUpdate)

getOwner

@JSONProperty(ignoreIfNull=true)
public String getOwner()
Specified by:
getOwner in interface OwnerSource

setOwner

public void setOwner(String owner)

getChildDevices

@JSONProperty(ignoreIfNull=true)
public ManagedObjectReferenceCollectionRepresentation getChildDevices()

setChildDevices

public void setChildDevices(ManagedObjectReferenceCollectionRepresentation childDevices)

getChildAssets

@JSONProperty(ignoreIfNull=true)
public ManagedObjectReferenceCollectionRepresentation getChildAssets()

setChildAssets

public void setChildAssets(ManagedObjectReferenceCollectionRepresentation childAssets)

getParents

@JSONProperty(ignoreIfNull=true)
public ManagedObjectReferenceCollectionRepresentation getParents()

setParents

public void setParents(ManagedObjectReferenceCollectionRepresentation parents)


Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.