本文整理了Java中org.joox.Match.namespaceURI()
方法的一些代码示例,展示了Match.namespaceURI()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Match.namespaceURI()
方法的具体详情如下:
包路径:org.joox.Match
类名称:Match
方法名:namespaceURI
[英]Get the namespace URI of the first element in the current set of matched elements.
This is the same as calling namespaceURI(0)
This only works if the underlying document is namespace-aware
[中]获取当前匹配元素集中第一个元素的名称空间URI。
这与呼叫namespaceURI(0)
相同
只有在底层文档支持名称空间时,这才有效
代码示例来源:origin: org.jooq/joox-java-6
@Override
public boolean filter(Context context) {
String match = $(context).namespaceURI();
if (match == null || "".equals(match)) {
return namespaceURI == null || "".equals(namespaceURI);
}
else {
return match.equals(namespaceURI);
}
}
};
代码示例来源:origin: org.jboss.windup.addon/config-impl
@SuppressWarnings("unchecked")
public <T> T processElement(Element element) throws ConfigurationException
{
String namespace = $(element).namespaceURI();
String tagName = $(element).tag();
ElementHandler<?> handler = handlers.get(new HandlerId(namespace, tagName));
if (handler != null)
{
Object o = handler.processElement(this, element);
return (T) o;
}
throw new ConfigurationException("No Handler registered for element named [" + tagName
+ "] in namespace: [" + namespace + "]");
}
代码示例来源:origin: org.jboss.windup.config/windup-config-xml
/**
* Process the provided {@link Element} with the appropriate handler for it's namespace and tag name.
*/
@SuppressWarnings("unchecked")
public <T> T processElement(Element element) throws ConfigurationException
{
String namespace = $(element).namespaceURI();
String tagName = $(element).tag();
ElementHandler<?> handler = handlers.get(new HandlerId(namespace, tagName));
if (handler != null)
{
Object o = handler.processElement(this, element);
return (T) o;
}
throw new ConfigurationException("No Handler registered for element named [" + tagName
+ "] in namespace: [" + namespace + "]");
}
代码示例来源:origin: windup/windup
/**
* Process the provided {@link Element} with the appropriate handler for it's namespace and tag name.
*/
@SuppressWarnings("unchecked")
public <T> T processElement(Element element) throws ConfigurationException
{
String namespace = $(element).namespaceURI();
String tagName = $(element).tag();
ElementHandler<?> handler = handlers.get(new HandlerId(namespace, tagName));
if (handler != null)
{
Object o = handler.processElement(this, element);
return (T) o;
}
throw new ConfigurationException("No Handler registered for element named [" + tagName
+ "] in namespace: [" + namespace + "]");
}
代码示例来源:origin: org.jboss.windup.rules.apps/rules-java-ee
String namespace = $(doc).find("web-app").namespaceURI();
if (StringUtils.isBlank(namespace))
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
String namespace = $(doc).find("web-app").namespaceURI();
if (StringUtils.isBlank(namespace))
代码示例来源:origin: windup/windup
String namespace = $(doc).find("web-app").namespaceURI();
if (StringUtils.isBlank(namespace))
代码示例来源:origin: org.jboss.windup.rules/rules-impl
String namespace = $(doc).find("ejb-jar").namespaceURI();
if (StringUtils.isBlank(namespace))
代码示例来源:origin: org.jboss.windup.rules.apps/rules-java-ee
String namespace = $(doc).find("ejb-jar").namespaceURI();
if (StringUtils.isBlank(namespace))
代码示例来源:origin: org.jboss.windup.rules/rules-impl
String namespace = $(doc).find("web-app").namespaceURI();
if (StringUtils.isBlank(namespace))
代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-ee
String namespace = $(doc).find("ejb-jar").namespaceURI();
if (StringUtils.isBlank(namespace))
代码示例来源:origin: windup/windup
String namespace = $(doc).find("ejb-jar").namespaceURI();
if (StringUtils.isBlank(namespace))
内容来源于网络,如有侵权,请联系作者删除!