com.atlassian.confluence.rest.api.model
Class RestEntity<T>

java.lang.Object
  extended by com.atlassian.confluence.rest.api.model.RestObject
      extended by com.atlassian.confluence.rest.api.model.RestEntity<T>
Type Parameters:
T -

@ExperimentalApi
public class RestEntity<T>
extends RestObject

This entity participates in our object serialization by jackson, and allows objects to be enriched with extra properties during serialization. It wraps a model object, but also exposes all JsonProperty annotated fields in the map as jsonProperties. This map of properties is added to by the property enrichers, and is ultimately used by the RestEntitySerializer to convert the object to json


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.confluence.rest.api.model.RestObject
RestObject.Properties
 
Field Summary
 
Fields inherited from class com.atlassian.confluence.rest.api.model.RestObject
jsonProperties
 
Constructor Summary
RestEntity(T delegate)
           
 
Method Summary
 T getDelegate()
           
 java.lang.Object removeProperty(java.lang.String key)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.confluence.rest.api.model.RestObject
getProperties, getProperty, hasProperty, putProperties, putProperty, putProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestEntity

public RestEntity(T delegate)
Method Detail

getDelegate

public T getDelegate()

removeProperty

public java.lang.Object removeProperty(java.lang.String key)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.