/** * Obtains the attribute value, after variable expansion. * * @return * null if the attribute is not found. */ public String attribute(String name) { return t(rawAttribute(name)); }
/** * Obtains the attribute value, after variable expansion. * * @return * null if the attribute is not found. */ public String attribute(String name) { return t(rawAttribute(name)); }
/** * Obtains the attribute value, after variable expansion. * * @return * null if the attribute is not found. */ public String attribute(String name) { return t(rawAttribute(name)); }
/** * Obtains the attribute value, after variable expansion. * * @return * null if the attribute is not found. */ public String attribute(String name) { return t(rawAttribute(name)); }
/** * Obtains the attribute value, after variable expansion. * * @return * null if the attribute is not found. */ public String attribute(String name) { return t(rawAttribute(name)); }
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 ... } } } }