Lines Matching refs:id

47  * @see <A HREF="http://www.xml.com/lpt/a/2001/11/07/id.html">"Identity Crisis" on xml.com</A>
88 * @param id the ID attribute
90 public static void registerElementById(Element element, Attr id) {
91 IdResolver.registerElementById(element, id.getNodeValue());
98 * @param id the value of the ID
99 * @return the element obtained by the id, or null if it is not found.
101 public static Element getElementById(Document doc, String id) {
103 Element result = IdResolver.getElementByIdType(doc, id);
113 result = IdResolver.getElementByIdUsingDOM(doc, id);
124 result = IdResolver.getElementBySearching(doc, id);
127 IdResolver.registerElementById(result, id);
140 * @param id the value of the ID
141 * @return the element obtained by the id, or null if it is not found.
143 private static Element getElementByIdUsingDOM(Document doc, String id) {
145 log.log(java.util.logging.Level.FINE, "getElementByIdUsingDOM() Search for ID " + id);
146 return doc.getElementById(id);
153 * @param id the value of the ID
154 * @return the element obtained by the id, or null if it is not found.
156 private static Element getElementByIdType(Document doc, String id) {
158 log.log(java.util.logging.Level.FINE, "getElementByIdType() Search for ID " + id);
164 WeakReference weakReference = (WeakReference) elementMap.get(id);
188 private static Element getElementBySearching(Node root,String id) {
190 getEl(root,id,els);
199 private static int getEl(Node currentNode,String id,Element []els) {
212 if (isElement(currentElement, id, els)==1)
237 public static int isElement(Element el, String id,Element[] els) {
258 if (ch=='d' && value.equals(id)) {
263 } else if (ch=='D' &&value.endsWith(id)) {
269 } else if ( "id".equals(name) && value.equals(id) ) {
278 el.getAttribute("OriginalRequestID").equals(id) ||
279 el.getAttribute("RequestID").equals(id) ||
280 el.getAttribute("ResponseID").equals(id))) {
283 el.getAttribute("AssertionID").equals(id))) {
286 el.getAttribute("RequestID").equals(id) ||
287 el.getAttribute("ResponseID").equals(id))) {