本文整理了Java中org.jvnet.hk2.config.Dom.rawAttribute()
方法的一些代码示例,展示了Dom.rawAttribute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dom.rawAttribute()
方法的具体详情如下:
包路径:org.jvnet.hk2.config.Dom
类名称:Dom
方法名:rawAttribute
[英]Obtians the attribute value without variable expansion.
[中]在不展开变量的情况下获取属性值。
代码示例来源: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: 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
/**
* 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
/**
* 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
/**
* 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.main.core/kernel
private static void listRefs(Dom dom, String value, List<String> refs) {
//this method is rather ugly, but it works. See 9340 which presents a compatibility issue
//frankly, it makes no sense to do an extensive search of all references of <system-property> being deleted,
//but that's what resolution of this issue demands. --- Kedar 10/5/2009
for (String aname : dom.getAttributeNames()) {
String raw = dom.rawAttribute(aname);
if (raw != null && raw.equals(value)) {
refs.add(dom.model.getTagName() + ":" + aname);
}
}
for (String ename : dom.getElementNames()) {
List<Dom> nodes = null;
try {
nodes = dom.nodeElements(ename);
} catch(Exception e) {
//ignore, in some situations, HK2 might throw ClassCastException here
}
if (nodes != null) {
for (Dom node : nodes)
listRefs(node, value, refs); //beware: recursive call ...
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!