com.cumulocity.rest.representation
Class BaseCollectionRepresentation

java.lang.Object
  extended by com.cumulocity.rest.representation.BaseResourceRepresentation
      extended by com.cumulocity.rest.representation.BaseCollectionRepresentation
All Implemented Interfaces:
ResourceRepresentation
Direct Known Subclasses:
AlarmCollectionRepresentation, ApplicationCollectionRepresentation, ApplicationReferenceCollectionRepresentation, AuditRecordCollectionRepresentation, EventCollectionRepresentation, EventsApiRepresentation, ExternalIDCollectionRepresentation, GroupCollectionRepresentation, GroupReferenceCollectionRepresentation, ManagedObjectCollectionRepresentation, ManagedObjectReferenceCollectionRepresentation, MeasurementCollectionRepresentation, OperationCollectionRepresentation, RoleCollectionRepresentation, RoleReferenceCollectionRepresentation, TenantCollectionRepresentation, TenantUsageStatisticsCollectionRepresentation, UserCollectionRepresentation, UserReferenceCollectionRepresentation

public class BaseCollectionRepresentation
extends BaseResourceRepresentation

Common Base Class for all Collection Representations. The actual items are intentionally not part of this class because the (json) name varies from Collection to Collection and the Mapping has to be defined for each Collection Type separately because the a generic Type Parameter would not be available at runtime.


Constructor Summary
BaseCollectionRepresentation()
           
 
Method Summary
 String getNext()
           
 PageStatisticsRepresentation getPageStatistics()
           
 String getPrev()
           
 void setNext(String next)
           
 void setPageStatistics(PageStatisticsRepresentation pageStatistics)
           
 void setPrev(String prev)
           
 
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

BaseCollectionRepresentation

public BaseCollectionRepresentation()
Method Detail

getPageStatistics

@JSONProperty(value="statistics",
              ignoreIfNull=true)
public PageStatisticsRepresentation getPageStatistics()

setPageStatistics

public void setPageStatistics(PageStatisticsRepresentation pageStatistics)

getPrev

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

setPrev

public void setPrev(String prev)

getNext

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

setNext

public void setNext(String next)


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