Class DataWrapper
java.lang.Object
org.broadleafcommerce.openadmin.web.rulebuilder.dto.DataWrapper
- All Implemented Interfaces:
Serializable
- Author:
- Elbert Bautista (elbertbautista)
An example of the Serialized JSON: (This is an example of a complex Item Rule)
{'data': [ {'pk':'100', 'quantity':'1', 'condition':'AND', 'rules':[ {'pk':null, 'quantity':null, 'condition':null, 'rules':null, 'id':'name', 'operator':'IEQUALS', 'value':'merchandise'}]}, {'pk':'200', 'quantity':'2', 'condition':'AND', 'rules':[ {'pk':null, 'quantity':null, 'condition':null, 'rules':null, 'id':'retailPrice', 'operator':'GREATER_THAN', 'value':'20.00'}]} ], "error":null, "rawMvel":null}
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
data
-
error
-
rawMvel
-
-
Constructor Details
-
DataWrapper
public DataWrapper()
-
-
Method Details
-
getData
-
setData
-
getError
-
setError
-
getRawMvel
-
setRawMvel
-
serialize
public String serialize() throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException- Throws:
com.fasterxml.jackson.core.JsonGenerationException
com.fasterxml.jackson.databind.JsonMappingException
IOException
-
equals
-
hashCode
public int hashCode()
-