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

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

本文整理了Java中org.jboss.shrinkwrap.descriptor.spi.node.Node.getTextValueForPatternName()方法的一些代码示例,展示了Node.getTextValueForPatternName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getTextValueForPatternName()方法的具体详情如下:
包路径:org.jboss.shrinkwrap.descriptor.spi.node.Node
类名称:Node
方法名:getTextValueForPatternName

Node.getTextValueForPatternName介绍

[英]Get the text value of the element found at the given query name. If no element is found, or no text exists, return null;
[中]获取在给定查询名称处找到的元素的文本值。如果找不到元素或不存在文本,则返回null;

代码示例

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

  1. /**
  2. * Returns the <code>ejb-name</code> element
  3. * @return the node defined for the element <code>ejb-name</code>
  4. */
  5. public String getEjbName()
  6. {
  7. return childNode.getTextValueForPatternName("ejb-name");
  8. }

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

  1. /**
  2. * Returns the <code>mapped-name</code> element
  3. * @return the node defined for the element <code>mapped-name</code>
  4. */
  5. public String getMappedName()
  6. {
  7. return childNode.getTextValueForPatternName("mapped-name");
  8. }

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

  1. /**
  2. * Returns the <code>local-home</code> element
  3. * @return the node defined for the element <code>local-home</code>
  4. */
  5. public String getLocalHome()
  6. {
  7. return childNode.getTextValueForPatternName("local-home");
  8. }

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

  1. /**
  2. * Returns the <code>local</code> element
  3. * @return the node defined for the element <code>local</code>
  4. */
  5. public String getLocal()
  6. {
  7. return childNode.getTextValueForPatternName("local");
  8. }

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

  1. /**
  2. * Returns the <code>handler-class</code> element
  3. * @return the node defined for the element <code>handler-class</code>
  4. */
  5. public String getHandlerClass()
  6. {
  7. return childNode.getTextValueForPatternName("handler-class");
  8. }

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

  1. /**
  2. * Returns the <code>type</code> element
  3. * @return the node defined for the element <code>type</code>
  4. */
  5. public String getType()
  6. {
  7. return childNode.getTextValueForPatternName("type");
  8. }

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

  1. /**
  2. * Returns the <code>handler-class</code> element
  3. * @return the node defined for the element <code>handler-class</code>
  4. */
  5. public String getHandlerClass()
  6. {
  7. return childNode.getTextValueForPatternName("handler-class");
  8. }

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

  1. /**
  2. * Returns the <code>second</code> element
  3. * @return the node defined for the element <code>second</code>
  4. */
  5. public String getSecond()
  6. {
  7. return childNode.getTextValueForPatternName("second");
  8. }

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

  1. /**
  2. * Returns the <code>day-of-month</code> element
  3. * @return the node defined for the element <code>day-of-month</code>
  4. */
  5. public String getDayOfMonth()
  6. {
  7. return childNode.getTextValueForPatternName("day-of-month");
  8. }

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

  1. /**
  2. * Returns the <code>timezone</code> element
  3. * @return the node defined for the element <code>timezone</code>
  4. */
  5. public String getTimezone()
  6. {
  7. return childNode.getTextValueForPatternName("timezone");
  8. }

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

  1. /**
  2. * Returns the <code>connectionfactory-interface</code> element
  3. * @return the node defined for the element <code>connectionfactory-interface</code>
  4. */
  5. public String getConnectionfactoryInterface()
  6. {
  7. return childNode.getTextValueForPatternName("connectionfactory-interface");
  8. }

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

  1. /**
  2. * Returns the <code>connection-interface</code> element
  3. * @return the node defined for the element <code>connection-interface</code>
  4. */
  5. public String getConnectionInterface()
  6. {
  7. return childNode.getTextValueForPatternName("connection-interface");
  8. }

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

  1. /**
  2. * Returns the <code>config-property-name</code> element
  3. * @return the node defined for the element <code>config-property-name</code>
  4. */
  5. public String getConfigPropertyName()
  6. {
  7. return childNode.getTextValueForPatternName("config-property-name");
  8. }

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

  1. @Override
  2. public int getLoadOnStartup() throws NumberFormatException {
  3. String tex = servlet.getTextValueForPatternName("load-on-startup");
  4. return tex == null ? null : Integer.valueOf(tex);
  5. }

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

  1. @Override
  2. public Map<String, String> getInitParams() {
  3. Map<String, String> result = new HashMap<String, String>();
  4. List<Node> params = servlet.get("init-param");
  5. for (Node node : params) {
  6. result.put(node.getTextValueForPatternName("param-name"), node.getTextValueForPatternName("param-value"));
  7. }
  8. return result;
  9. }

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

  1. /**
  2. * Returns the <code>session-type</code> element
  3. * @return the value found for the element <code>session-type</code>
  4. */
  5. public SessionTypeType getSessionType()
  6. {
  7. return SessionTypeType.getFromStringValue(childNode.getTextValueForPatternName("session-type"));
  8. }

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

  1. /**
  2. * Returns the <code>transaction-type</code> element
  3. * @return the value found for the element <code>transaction-type</code>
  4. */
  5. public TransactionTypeType getTransactionType()
  6. {
  7. return TransactionTypeType.getFromStringValue(childNode.getTextValueForPatternName("transaction-type"));
  8. }

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

  1. /**
  2. * Returns the <code>config-property-type</code> element
  3. * @return the value found for the element <code>config-property-type</code>
  4. */
  5. public ConfigPropertyTypeType getConfigPropertyType()
  6. {
  7. return ConfigPropertyTypeType.getFromStringValue(childNode.getTextValueForPatternName("config-property-type"));
  8. }

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

  1. /**
  2. * Returns the <code>unit</code> element
  3. * @return the value found for the element <code>unit</code>
  4. */
  5. public TimeUnitTypeType getUnit()
  6. {
  7. return TimeUnitTypeType.getFromStringValue(childNode.getTextValueForPatternName("unit"));
  8. }

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

  1. /**
  2. * Returns the <code>persistent</code> element
  3. * @return the node defined for the element <code>persistent</code>
  4. */
  5. public Boolean isPersistent()
  6. {
  7. return Strings.isTrue(childNode.getTextValueForPatternName("persistent"));
  8. }

相关文章