java.lang.Object
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': [ {'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 Details

  • Constructor Details

    • DataWrapper

      public DataWrapper()
  • Method Details

    • 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 com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
      Throws:
      com.fasterxml.jackson.core.JsonGenerationException
      com.fasterxml.jackson.databind.JsonMappingException
      IOException
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object