@Component(value="cuba_FilterParser") public class FilterParserImpl extends java.lang.Object implements FilterParser
NAME
Constructor and Description |
---|
FilterParserImpl() |
Modifier and Type | Method and Description |
---|---|
protected AbstractCondition |
createCondition(ConditionType type,
org.dom4j.Element element,
Filter filter,
java.lang.String xml) |
ConditionsTree |
getConditions(Filter filter,
java.lang.String xml) |
java.lang.String |
getXml(ConditionsTree conditions,
Param.ValueProperty valueProperty)
Converts filter conditions tree to filter xml
|
protected void |
recursiveFromXml(org.dom4j.Element element,
com.haulmont.bali.datastruct.Node<AbstractCondition> parentNode,
Filter filter,
java.lang.String xml,
ConditionsTree conditions) |
protected void |
recursiveToXml(com.haulmont.bali.datastruct.Node<AbstractCondition> node,
org.dom4j.Element element,
Param.ValueProperty valueProperty) |
public ConditionsTree getConditions(Filter filter, java.lang.String xml)
getConditions
in interface FilterParser
protected void recursiveFromXml(org.dom4j.Element element, com.haulmont.bali.datastruct.Node<AbstractCondition> parentNode, Filter filter, java.lang.String xml, ConditionsTree conditions)
protected AbstractCondition createCondition(ConditionType type, org.dom4j.Element element, Filter filter, java.lang.String xml)
@Nullable public java.lang.String getXml(ConditionsTree conditions, Param.ValueProperty valueProperty)
getXml
in interface FilterParser
conditions
- conditions treevalueProperty
- Describes what parameter value will be serialized to xml: current value or default oneprotected void recursiveToXml(com.haulmont.bali.datastruct.Node<AbstractCondition> node, org.dom4j.Element element, Param.ValueProperty valueProperty)