本文整理了Java中org.jboss.shrinkwrap.descriptor.spi.node.Node.getText()
方法的一些代码示例,展示了Node.getText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getText()
方法的具体详情如下:
包路径:org.jboss.shrinkwrap.descriptor.spi.node.Node
类名称:Node
方法名:getText
[英]Get the Nodes text body.
[中]获取文本正文中的节点。
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Returns the body text of the element <code>propertyType</code>
* @return the value defined for the text <code>propertyType</code>
*/
public String getText()
{
return childNode.getText();
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Returns the body text of the element <code>elementType</code>
* @return the value defined for the text <code>elementType</code>
*/
public String getText()
{
return childNode.getText();
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Returns the body text of the element <code>propertyType</code>
* @return the value defined for the text <code>propertyType</code>
*/
public String getText()
{
return childNode.getText();
}
代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee
/**
* Returns the body text of the element <code>partial-response-updateType</code>
* @return the value defined for the text <code>partial-response-updateType</code>
*/
public String getText()
{
return childNode.getText();
}
代码示例来源:origin: org.jboss.ironjacamar/ironjacamar-embedded
/**
* Returns the body text of the element <code>connection-propertyType</code>
* @return the value defined for the text <code>connection-propertyType</code>
*/
public String getText()
{
return childNode.getText();
}
代码示例来源:origin: org.jboss.ironjacamar/ironjacamar-embedded
/**
* Returns the body text of the element <code>config-propertyType</code>
* @return the value defined for the text <code>config-propertyType</code>
*/
public String getText()
{
return childNode.getText();
}
代码示例来源:origin: arquillian/arquillian-core
@Override
public String getProperty(String name) {
final Node value = protocol.getSingle("property@name=" + name);
return value != null ? value.getText() : null;
}
代码示例来源:origin: org.jboss.arquillian.config/arquillian-config-impl-base
private String getTextIfExists(String pattern) {
Node propery = engine.getSingle(pattern);
if (propery != null) {
return propery.getText();
}
return null;
}
代码示例来源:origin: arquillian/arquillian-core
@Override
public String getExtensionProperty(String name) {
final Node value = extension.getSingle("property@name=" + name);
return value != null ? value.getText() : null;
}
代码示例来源:origin: arquillian/arquillian-core
@Override
public String getProtocolProperty(String name) {
final Node value = protocol.getSingle("property@name=" + name);
return value != null ? value.getText() : null;
}
代码示例来源:origin: arquillian/arquillian-core
@Override
public Map<String, String> getProtocolProperties() {
List<Node> props = protocol.get("property");
Map<String, String> properties = new HashMap<String, String>();
for (Node prop : props) {
properties.put(prop.getAttribute("name"), prop.getText());
}
return properties;
}
代码示例来源:origin: arquillian/arquillian-core
public Map<String, String> getProperties() {
List<Node> props = protocol.get("property");
Map<String, String> properties = new HashMap<String, String>();
for (Node prop : props) {
properties.put(prop.getAttribute("name"), prop.getText());
}
return properties;
}
代码示例来源:origin: org.jboss.arquillian.config/arquillian-config-impl-base
public Map<String, String> getProperties() {
List<Node> props = protocol.get("property");
Map<String, String> properties = new HashMap<String, String>();
for (Node prop : props) {
properties.put(prop.getAttribute("name"), prop.getText());
}
return properties;
}
代码示例来源:origin: arquillian/arquillian-core
@Override
public Map<String, String> getExtensionProperties() {
List<Node> props = extension.get("property");
Map<String, String> properties = new HashMap<String, String>();
for (Node prop : props) {
properties.put(prop.getAttribute("name"), prop.getText());
}
return properties;
}
代码示例来源: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;
}
代码示例来源:origin: arquillian/arquillian-core
@Override
public String getContainerProperty(String name) {
Node props = container.getSingle("configuration");
if (props != null) {
final Node value = props.getSingle("property@name=" + name);
return value != null ? value.getText() : null;
} else {
return null;
}
}
代码示例来源:origin: arquillian/arquillian-core
@Override
public String getServletClass() {
if (servlet.getSingle("servlet-class") != null) {
return servlet.getSingle("servlet-class").getText();
}
return null;
}
代码示例来源:origin: org.jboss.arquillian.config/arquillian-config-impl-base
@Override
public String getContainerProperty(String name) {
Node props = container.getSingle("configuration");
if (props != null) {
final Node value = props.getSingle("property@name=" + name);
return value != null ? value.getText() : null;
} else {
return null;
}
}
代码示例来源:origin: org.jboss.arquillian.config/arquillian-config-impl-base
@Override
public List<String> getDependencies() {
List<String> dependencies = new ArrayList<String>();
if (container.getSingle("dependencies") != null) {
for (Node dep : container.getSingle("dependencies").get("dependency")) {
dependencies.add(dep.getText());
}
}
return dependencies;
}
代码示例来源:origin: arquillian/arquillian-core
@Override
public Map<String, String> getContainerProperties() {
Node props = container.getSingle("configuration");
Map<String, String> properties = new HashMap<String, String>();
if (props != null) {
for (Node prop : props.get("property")) {
properties.put(prop.getAttribute("name"), prop.getText());
}
}
return properties;
}
内容来源于网络,如有侵权,请联系作者删除!