public class ModelAccess extends Object
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(Node sourceNode,
String xpathExpression) |
String |
getAttribute(Node sourceNode,
String xpathExpression,
IGramarContext context) |
static ModelAccess |
getDefault() |
Node |
getNode(Node sourceNode,
String xpathExpresion,
boolean elementsOnly,
IGramarContext context) |
Node[] |
getNodes(Node sourceNode,
String xpathExpresion,
boolean elementsOnly,
IGramarContext context) |
Node[] |
getRawResult(Node sourceNode,
String xpathExpresion,
IGramarContext context) |
String |
getText(Node sourceNode,
String xpathExpression) |
String |
getText(Node sourceNode,
String xpathExpression,
IGramarContext context) |
Node |
newNode(Node sourceNode,
String childName) |
Object |
resolve(Node sourceNode,
String xpathExpression,
IGramarContext context,
QName type) |
void |
setAttribute(Node sourceNode,
String attributeName,
String value) |
public static ModelAccess getDefault()
public Node[] getRawResult(Node sourceNode, String xpathExpresion, IGramarContext context) throws XPathExpressionException
XPathExpressionException
public Node[] getNodes(Node sourceNode, String xpathExpresion, boolean elementsOnly, IGramarContext context) throws XPathExpressionException
XPathExpressionException
public Node getNode(Node sourceNode, String xpathExpresion, boolean elementsOnly, IGramarContext context) throws XPathExpressionException
XPathExpressionException
public String getText(Node sourceNode, String xpathExpression, IGramarContext context) throws XPathExpressionException
XPathExpressionException
public String getText(Node sourceNode, String xpathExpression) throws XPathExpressionException
XPathExpressionException
public String getAttribute(Node sourceNode, String xpathExpression, IGramarContext context) throws XPathExpressionException
XPathExpressionException
public String getAttribute(Node sourceNode, String xpathExpression) throws XPathExpressionException
XPathExpressionException
public Object resolve(Node sourceNode, String xpathExpression, IGramarContext context, QName type) throws XPathExpressionException
XPathExpressionException
Copyright © 2015. All rights reserved.