本文整理了Java中org.jboss.shrinkwrap.descriptor.spi.node.Node.getSingle()
方法的一些代码示例,展示了Node.getSingle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getSingle()
方法的具体详情如下:
包路径:org.jboss.shrinkwrap.descriptor.spi.node.Node
类名称:Node
方法名:getSingle
[英]Get a single child node.
If multiple children are found with same name it is considered a IllegalArgumentException.
[中]获取一个子节点。
如果发现多个子项具有相同的名称,则视为非法argumentexception。
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>validator-extension</code> element
* @return the current instance of <code>FacesConfigValidatorType<T></code>
*/
public Boolean isValidatorExtension()
{
return childNode.getSingle("validator-extension") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>local-bean</code> element
* @return the current instance of <code>SessionBeanType<T></code>
*/
public Boolean isLocalBean()
{
return childNode.getSingle("local-bean") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>faces-config-extension</code> element
* @return the current instance of <code>WebFacesConfigDescriptor</code>
*/
public Boolean isFacesConfigExtension()
{
return model.getSingle("faces-config-extension") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>others</code> element
* @return the current instance of <code>AbsoluteOrderingType<T></code>
*/
public Boolean isOthers()
{
return childNode.getSingle("others") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>converter-extension</code> element
* @return the current instance of <code>FaceletTaglibTagConverterType<T></code>
*/
public Boolean isConverterExtension()
{
return childNode.getSingle("converter-extension") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>property-extension</code> element
* @return the current instance of <code>FacesConfigPropertyType<T></code>
*/
public Boolean isPropertyExtension()
{
return childNode.getSingle("property-extension") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>navigation-rule-extension</code> element
* @return the current instance of <code>FacesConfigNavigationRuleType<T></code>
*/
public Boolean isNavigationRuleExtension()
{
return childNode.getSingle("navigation-rule-extension") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>extension</code> element
* @return the current instance of <code>PartialResponseChangesType<T></code>
*/
public Boolean isExtension()
{
return childNode.getSingle("extension") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>lob</code> element
* @return the current instance of <code>Basic<T></code>
*/
public Boolean isLob()
{
return childNode.getSingle("lob") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>converter-extension</code> element
* @return the current instance of <code>FacesConfigConverterType<T></code>
*/
public Boolean isConverterExtension()
{
return childNode.getSingle("converter-extension") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>cascade-merge</code> element
* @return the current instance of <code>CascadeType<T></code>
*/
public Boolean isCascadeMerge()
{
return childNode.getSingle("cascade-merge") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>others</code> element
* @return the current instance of <code>FacesConfigOrderingOrderingType<T></code>
*/
public Boolean isOthers()
{
return childNode.getSingle("others") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>cascade-all</code> element
* @return the current instance of <code>CascadeType<T></code>
*/
public Boolean isCascadeAll()
{
return childNode.getSingle("cascade-all") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>cascade-persist</code> element
* @return the current instance of <code>CascadeType<T></code>
*/
public Boolean isCascadePersist()
{
return childNode.getSingle("cascade-persist") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>cascade-remove</code> element
* @return the current instance of <code>CascadeType<T></code>
*/
public Boolean isCascadeRemove()
{
return childNode.getSingle("cascade-remove") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>taglib-extension</code> element
* @return the current instance of <code>WebFacelettaglibraryDescriptor</code>
*/
public Boolean isTaglibExtension()
{
return model.getSingle("taglib-extension") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>render-kit-extension</code> element
* @return the current instance of <code>FacesConfigRenderKitType<T></code>
*/
public Boolean isRenderKitExtension()
{
return childNode.getSingle("render-kit-extension") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>unchecked</code> element
* @return the current instance of <code>MethodPermissionType<T></code>
*/
public Boolean isUnchecked()
{
return childNode.getSingle("unchecked") != null;
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Removes the <code>behavior-extension</code> element
* @return the current instance of <code>FacesConfigBehaviorType<T></code>
*/
public Boolean isBehaviorExtension()
{
return childNode.getSingle("behavior-extension") != null;
}
代码示例来源:origin: org.jboss.arquillian.protocol/arquillian-protocol-servlet
@Override
public String getServletClass() {
if (servlet.getSingle("servlet-class") != null) {
return servlet.getSingle("servlet-class").getText();
}
return null;
}
内容来源于网络,如有侵权,请联系作者删除!