Package io.jmix.core.querycondition
Class ConditionXmlLoader
java.lang.Object
io.jmix.core.querycondition.ConditionXmlLoader
Loads the tree of
Condition
s from XML.
Use addFactory(String, Function)
method to add your own functions creating conditions from XML elements.
By default, LogicalCondition
and JpqlCondition
are supported.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFactory
(String name, Function<org.dom4j.Element, Condition> factory) Adds a function creating a condition from XML element.Creates a conditions tree from XML string.fromXml
(org.dom4j.Element element) Creates a conditions tree from XML element.void
removeFactory
(String name) Removes a factory by its name.
-
Constructor Details
-
ConditionXmlLoader
public ConditionXmlLoader()
-
-
Method Details
-
addFactory
Adds a function creating a condition from XML element.- Parameters:
name
- name that can be used later inremoveFactory(String)
method to remove the functionfactory
- function creating a condition from XML element
-
removeFactory
Removes a factory by its name. -
fromXml
Creates a conditions tree from XML string. -
fromXml
Creates a conditions tree from XML element.
-