org.jvnet.hk2.config.Dom.t()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(123)

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

Dom.t介绍

[英]Performs translation with null pass-through.
[中]

代码示例

代码示例来源:origin: javaee/glassfish

/**
 * Obtains the attribute value, after variable expansion.
 *
 * @return
 *      null if the attribute is not found.
 */
public String attribute(String name) {
  return t(rawAttribute(name));
}

代码示例来源:origin: javaee/glassfish

/**
 * Picks up all leaf-element values of the given name.
 * @return
 *      Can be empty but never null.
 */
public List<String> leafElements(String name) {
  List<Child> children = this.children; // fix the snapshot that we'll work with
  final List<String> r = new ArrayList<String>();
  for (Child child : children) {
    if (child.name.equals(name)) {
      // error check on model guarantees that this cast works.
      r.add(t(((LeafChild) child).value));
    }
  }
  return r;
}

代码示例来源:origin: javaee/glassfish

/**
 * Picks up one leaf-element value.
 */
public String leafElement(String name) {
  return t(rawLeafElement(name));
}

代码示例来源:origin: org.glassfish.hk2/hk2-config

/**
 * Picks up all leaf-element values of the given name.
 * @return
 *      Can be empty but never null.
 */
public List<String> leafElements(String name) {
  List<Child> children = this.children; // fix the snapshot that we'll work with
  final List<String> r = new ArrayList<String>();
  for (Child child : children) {
    if (child.name.equals(name)) {
      // error check on model guarantees that this cast works.
      r.add(t(((LeafChild) child).value));
    }
  }
  return r;
}

代码示例来源:origin: eclipse-ee4j/glassfish

/**
 * Picks up all leaf-element values of the given name.
 * @return
 *      Can be empty but never null.
 */
public List<String> leafElements(String name) {
  List<Child> children = this.children; // fix the snapshot that we'll work with
  final List<String> r = new ArrayList<String>();
  for (Child child : children) {
    if (child.name.equals(name)) {
      // error check on model guarantees that this cast works.
      r.add(t(((LeafChild) child).value));
    }
  }
  return r;
}

代码示例来源:origin: com.sun.enterprise/config

/**
 * Picks up all leaf-element values of the given name.
 * @return
 *      Can be empty but never null.
 */
public List<String> leafElements(String name) {
  List<Child> children = this.children; // fix the snapshot that we'll work with
  final List<String> r = new ArrayList<String>();
  for (Child child : children) {
    if (child.name.equals(name)) {
      // error check on model guarantees that this cast works.
      r.add(t(((LeafChild) child).value));
    }
  }
  return r;
}

代码示例来源:origin: com.sun.enterprise/config

/**
 * Obtains the attribute value, after variable expansion.
 *
 * @return
 *      null if the attribute is not found.
 */
public String attribute(String name) {
  return t(rawAttribute(name));
}

代码示例来源:origin: org.glassfish.hk2/config

/**
 * Picks up all leaf-element values of the given name.
 * @return
 *      Can be empty but never null.
 */
public List<String> leafElements(String name) {
  List<Child> children = this.children; // fix the snapshot that we'll work with
  final List<String> r = new ArrayList<String>();
  for (Child child : children) {
    if (child.name.equals(name)) {
      // error check on model guarantees that this cast works.
      r.add(t(((LeafChild) child).value));
    }
  }
  return r;
}

代码示例来源:origin: org.glassfish.hk2/hk2-config

/**
 * Picks up one leaf-element value.
 */
public String leafElement(String name) {
  return t(rawLeafElement(name));
}

代码示例来源:origin: org.glassfish.hk2/hk2-config

/**
 * Obtains the attribute value, after variable expansion.
 *
 * @return
 *      null if the attribute is not found.
 */
public String attribute(String name) {
  return t(rawAttribute(name));
}

代码示例来源:origin: com.sun.enterprise/config

/**
 * Picks up one leaf-element value.
 */
public String leafElement(String name) {
  return t(rawLeafElement(name));
}

代码示例来源:origin: org.glassfish.hk2/config

/**
 * Obtains the attribute value, after variable expansion.
 *
 * @return
 *      null if the attribute is not found.
 */
public String attribute(String name) {
  return t(rawAttribute(name));
}

代码示例来源:origin: org.glassfish.hk2/config

/**
 * Picks up one leaf-element value.
 */
public String leafElement(String name) {
  return t(rawLeafElement(name));
}

代码示例来源:origin: eclipse-ee4j/glassfish

/**
 * Obtains the attribute value, after variable expansion.
 *
 * @return
 *      null if the attribute is not found.
 */
public String attribute(String name) {
  return t(rawAttribute(name));
}

代码示例来源:origin: eclipse-ee4j/glassfish

/**
 * Picks up one leaf-element value.
 */
public String leafElement(String name) {
  return t(rawLeafElement(name));
}

相关文章

微信公众号

最新文章

更多