Top Description Fields Constructors Methods
org.eclipse.persistence.oxm

public Class JSONWithPadding<T>

extends Object
Class Inheritance

JSONWithPadding is used to hold an Object along with the corresponding callback name to marshal.

Sample Usage: JSONWithPadding<Person> jsonWithPaddingObject = new JSONWithPadding(person, "theCallBackName"); Marshal this jsonWithPaddingObject object would result in JSON like this: theCallBackName({"person":{"id":10,"name":"Bob"}});

Field Summary

Modifier and TypeField and Description
private String
public static final String
private T

Constructor Summary

AccessConstructor and Description
public
public
JSONWithPadding(T rootObject)

public
JSONWithPadding(T rootObject, String callbackName)

Method Summary

Modifier and TypeMethod and Description
public String
getCallbackName()

The callback name that should me marshalled with the object

public T
getObject()

The Object that will be marshalled

public void
setCallbackName(String callbackName)

The callback name that should me marshalled with the object

public void
setObject(T rootObject)

The Object to be marshalled

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

callbackNameback to summary
private String callbackName
DEFAULT_CALLBACK_NAMEback to summary
public static final String DEFAULT_CALLBACK_NAME
rootObjectback to summary
private T rootObject

Constructor Detail

JSONWithPaddingback to summary
public JSONWithPadding()
JSONWithPaddingback to summary
public JSONWithPadding(T rootObject)
JSONWithPaddingback to summary
public JSONWithPadding(T rootObject, String callbackName)

Method Detail

getCallbackNameback to summary
public String getCallbackName()

The callback name that should me marshalled with the object

getObjectback to summary
public T getObject()

The Object that will be marshalled

setCallbackNameback to summary
public void setCallbackName(String callbackName)

The callback name that should me marshalled with the object

setObjectback to summary
public void setObject(T rootObject)

The Object to be marshalled