Package com.axelor.meta.loader
Class AbstractXmlProcessor
- java.lang.Object
-
- com.axelor.meta.loader.AbstractXmlProcessor
-
- Direct Known Subclasses:
ComputedViewXmlProcessor
public abstract class AbstractXmlProcessor extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static LoadingCache<String,XPathExpression>
XPATH_EXPRESSION_CACHE
-
Constructor Summary
Constructors Constructor Description AbstractXmlProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluateXPath(String subExpression, String name, String type, Object item, QName returnType)
List<Element>
filterElements(List<Element> elements, String nodeName)
List<Element>
findElements(NodeList nodeList)
Node
findViewNode(Document document)
String
getNodeAttributeValue(NamedNodeMap attributes, String name)
List<Node>
nodeListToList(NodeList nodeList)
Stream<Node>
nodeListToStream(NodeList nodeList)
-
-
-
Field Detail
-
XPATH_EXPRESSION_CACHE
public static final LoadingCache<String,XPathExpression> XPATH_EXPRESSION_CACHE
-
-
Method Detail
-
evaluateXPath
public Object evaluateXPath(String subExpression, String name, String type, Object item, QName returnType) throws XPathExpressionException
- Throws:
XPathExpressionException
-
getNodeAttributeValue
public String getNodeAttributeValue(NamedNodeMap attributes, String name)
-
-