org.broadleafcommerce.openadmin.web.rulebuilder.dto
Class DataWrapper

java.lang.Object
  extended by org.broadleafcommerce.openadmin.web.rulebuilder.dto.DataWrapper
All Implemented Interfaces:
Serializable

public class DataWrapper
extends Object
implements Serializable

Author:
Elbert Bautista (elbertbautista) An example of the Serialized JSON: (This is an example of a complex Item Rule) {'data': [ {'id':'100', 'quantity':'1', 'groupOperator':'AND', 'groups':[ {'id':null, 'quantity':null, 'groupOperator':null, 'groups':null, 'name':'name', 'operator':'IEQUALS', 'value':'merchandise'}]}, {'id':'200', 'quantity':'2', 'groupOperator':'AND', 'groups':[ {'id':null, 'quantity':null, 'groupOperator':null, 'groups':null, 'name':'retailPrice', 'operator':'GREATER_THAN', 'value':'20.00'}]} ]}
See Also:
Serialized Form

Field Summary
protected  ArrayList<DataDTO> data
           
protected  String error
           
protected  String rawMvel
           
 
Constructor Summary
DataWrapper()
           
 
Method Summary
 ArrayList<DataDTO> getData()
           
 String getError()
           
 String getRawMvel()
           
 String serialize()
           
 void setData(ArrayList<DataDTO> data)
           
 void setError(String error)
           
 void setRawMvel(String rawMvel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected ArrayList<DataDTO> data

error

protected String error

rawMvel

protected String rawMvel
Constructor Detail

DataWrapper

public DataWrapper()
Method Detail

getData

public ArrayList<DataDTO> getData()

setData

public void setData(ArrayList<DataDTO> data)

getError

public String getError()

setError

public void setError(String error)

getRawMvel

public String getRawMvel()

setRawMvel

public void setRawMvel(String rawMvel)

serialize

public String serialize()
                 throws org.codehaus.jackson.JsonGenerationException,
                        org.codehaus.jackson.map.JsonMappingException,
                        IOException
Throws:
org.codehaus.jackson.JsonGenerationException
org.codehaus.jackson.map.JsonMappingException
IOException


Copyright © 2013. All Rights Reserved.