本文整理了Java中org.deegree.commons.xml.XPath.getXPath()
方法的一些代码示例,展示了XPath.getXPath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPath.getXPath()
方法的具体详情如下:
包路径:org.deegree.commons.xml.XPath
类名称:XPath
方法名:getXPath
暂无
代码示例来源:origin: deegree/deegree3
private AXIOMXPath getAXIOMXPath( XPath xpath )
throws JaxenException {
AXIOMXPath compiledXPath = new AXIOMXPath( xpath.getXPath() );
compiledXPath.setNamespaceContext( xpath.getNamespaceContext() );
return compiledXPath;
}
代码示例来源:origin: deegree/deegree3
public static List<QName> extractQNames( XPath xpath ) {
List<QName> list = new ArrayList<QName>();
try {
Expr expr = new BaseXPath( xpath.getXPath(), null ).getRootExpr();
if ( expr instanceof LocationPath ) {
LocationPath lp = (LocationPath) expr;
for ( Object o : lp.getSteps() ) {
findQName( list, (Step) o, xpath.getNamespaceContext() );
}
}
} catch ( JaxenException e ) {
// not a proper xpath
}
return list;
}
代码示例来源:origin: deegree/deegree3
private AXIOMXPath getAsXPath( ValueReference propName )
throws JaxenException {
AXIOMXPath path;
XPath xPathFromCQP = ISOCQPMapping.getXPathFromCQP( propName.getAsQName(), getType() );
if ( xPathFromCQP != null )
path = new AXIOMXPath( xPathFromCQP.getXPath() );
else
path = new AXIOMXPath( propName.getAsText() );
path.setNamespaceContext( ns );
return path;
}
内容来源于网络,如有侵权,请联系作者删除!