org.jboss.shrinkwrap.descriptor.spi.node.Node.getText()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(212)

本文整理了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

Node.getText介绍

[英]Get the Nodes text body.
[中]获取文本正文中的节点。

代码示例

代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee

  1. /**
  2. * Returns the body text of the element <code>propertyType</code>
  3. * @return the value defined for the text <code>propertyType</code>
  4. */
  5. public String getText()
  6. {
  7. return childNode.getText();
  8. }

代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee

  1. /**
  2. * Returns the body text of the element <code>elementType</code>
  3. * @return the value defined for the text <code>elementType</code>
  4. */
  5. public String getText()
  6. {
  7. return childNode.getText();
  8. }

代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee

  1. /**
  2. * Returns the body text of the element <code>propertyType</code>
  3. * @return the value defined for the text <code>propertyType</code>
  4. */
  5. public String getText()
  6. {
  7. return childNode.getText();
  8. }

代码示例来源:origin: org.jboss.shrinkwrap.descriptors/shrinkwrap-descriptors-impl-javaee

  1. /**
  2. * Returns the body text of the element <code>partial-response-updateType</code>
  3. * @return the value defined for the text <code>partial-response-updateType</code>
  4. */
  5. public String getText()
  6. {
  7. return childNode.getText();
  8. }

代码示例来源:origin: org.jboss.ironjacamar/ironjacamar-embedded

  1. /**
  2. * Returns the body text of the element <code>connection-propertyType</code>
  3. * @return the value defined for the text <code>connection-propertyType</code>
  4. */
  5. public String getText()
  6. {
  7. return childNode.getText();
  8. }

代码示例来源:origin: org.jboss.ironjacamar/ironjacamar-embedded

  1. /**
  2. * Returns the body text of the element <code>config-propertyType</code>
  3. * @return the value defined for the text <code>config-propertyType</code>
  4. */
  5. public String getText()
  6. {
  7. return childNode.getText();
  8. }

代码示例来源:origin: arquillian/arquillian-core

  1. @Override
  2. public String getProperty(String name) {
  3. final Node value = protocol.getSingle("property@name=" + name);
  4. return value != null ? value.getText() : null;
  5. }

代码示例来源:origin: org.jboss.arquillian.config/arquillian-config-impl-base

  1. private String getTextIfExists(String pattern) {
  2. Node propery = engine.getSingle(pattern);
  3. if (propery != null) {
  4. return propery.getText();
  5. }
  6. return null;
  7. }

代码示例来源:origin: arquillian/arquillian-core

  1. @Override
  2. public String getExtensionProperty(String name) {
  3. final Node value = extension.getSingle("property@name=" + name);
  4. return value != null ? value.getText() : null;
  5. }

代码示例来源:origin: arquillian/arquillian-core

  1. @Override
  2. public String getProtocolProperty(String name) {
  3. final Node value = protocol.getSingle("property@name=" + name);
  4. return value != null ? value.getText() : null;
  5. }

代码示例来源:origin: arquillian/arquillian-core

  1. @Override
  2. public Map<String, String> getProtocolProperties() {
  3. List<Node> props = protocol.get("property");
  4. Map<String, String> properties = new HashMap<String, String>();
  5. for (Node prop : props) {
  6. properties.put(prop.getAttribute("name"), prop.getText());
  7. }
  8. return properties;
  9. }

代码示例来源:origin: arquillian/arquillian-core

  1. public Map<String, String> getProperties() {
  2. List<Node> props = protocol.get("property");
  3. Map<String, String> properties = new HashMap<String, String>();
  4. for (Node prop : props) {
  5. properties.put(prop.getAttribute("name"), prop.getText());
  6. }
  7. return properties;
  8. }

代码示例来源:origin: org.jboss.arquillian.config/arquillian-config-impl-base

  1. public Map<String, String> getProperties() {
  2. List<Node> props = protocol.get("property");
  3. Map<String, String> properties = new HashMap<String, String>();
  4. for (Node prop : props) {
  5. properties.put(prop.getAttribute("name"), prop.getText());
  6. }
  7. return properties;
  8. }

代码示例来源:origin: arquillian/arquillian-core

  1. @Override
  2. public Map<String, String> getExtensionProperties() {
  3. List<Node> props = extension.get("property");
  4. Map<String, String> properties = new HashMap<String, String>();
  5. for (Node prop : props) {
  6. properties.put(prop.getAttribute("name"), prop.getText());
  7. }
  8. return properties;
  9. }

代码示例来源:origin: org.jboss.arquillian.protocol/arquillian-protocol-servlet

  1. @Override
  2. public String getServletClass() {
  3. if (servlet.getSingle("servlet-class") != null) {
  4. return servlet.getSingle("servlet-class").getText();
  5. }
  6. return null;
  7. }

代码示例来源:origin: arquillian/arquillian-core

  1. @Override
  2. public String getContainerProperty(String name) {
  3. Node props = container.getSingle("configuration");
  4. if (props != null) {
  5. final Node value = props.getSingle("property@name=" + name);
  6. return value != null ? value.getText() : null;
  7. } else {
  8. return null;
  9. }
  10. }

代码示例来源:origin: arquillian/arquillian-core

  1. @Override
  2. public String getServletClass() {
  3. if (servlet.getSingle("servlet-class") != null) {
  4. return servlet.getSingle("servlet-class").getText();
  5. }
  6. return null;
  7. }

代码示例来源:origin: org.jboss.arquillian.config/arquillian-config-impl-base

  1. @Override
  2. public String getContainerProperty(String name) {
  3. Node props = container.getSingle("configuration");
  4. if (props != null) {
  5. final Node value = props.getSingle("property@name=" + name);
  6. return value != null ? value.getText() : null;
  7. } else {
  8. return null;
  9. }
  10. }

代码示例来源:origin: org.jboss.arquillian.config/arquillian-config-impl-base

  1. @Override
  2. public List<String> getDependencies() {
  3. List<String> dependencies = new ArrayList<String>();
  4. if (container.getSingle("dependencies") != null) {
  5. for (Node dep : container.getSingle("dependencies").get("dependency")) {
  6. dependencies.add(dep.getText());
  7. }
  8. }
  9. return dependencies;
  10. }

代码示例来源:origin: arquillian/arquillian-core

  1. @Override
  2. public Map<String, String> getContainerProperties() {
  3. Node props = container.getSingle("configuration");
  4. Map<String, String> properties = new HashMap<String, String>();
  5. if (props != null) {
  6. for (Node prop : props.get("property")) {
  7. properties.put(prop.getAttribute("name"), prop.getText());
  8. }
  9. }
  10. return properties;
  11. }

相关文章