本文整理了Java中org.jvnet.hk2.config.Dom.t()
方法的一些代码示例,展示了Dom.t()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dom.t()
方法的具体详情如下:
包路径:org.jvnet.hk2.config.Dom
类名称: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));
}
内容来源于网络,如有侵权,请联系作者删除!