public List<Element> elements(String name) { BackedList<Element> answer = createResultList(); for (Node node : contentList()) { if (node instanceof Element) { Element element = (Element) node; if (name.equals(element.getName())) { answer.addLocal(element); } } } return answer; }
public List<Namespace> declaredNamespaces() { BackedList<Namespace> answer = createResultList(); for (Node node : contentList()) { if (node instanceof Namespace) { answer.addLocal((Namespace) node); } } return answer; }
public List<Element> elements() { BackedList<Element> answer = createResultList(); for (Node node : contentList()) { if (node instanceof Element) { answer.addLocal((Element) node); } } return answer; }
public List<ProcessingInstruction> processingInstructions() { BackedList<ProcessingInstruction> answer = createResultList(); for (Node node : contentList()) { if (node instanceof ProcessingInstruction) { answer.addLocal((ProcessingInstruction) node); } } return answer; }
public List<Namespace> additionalNamespaces(String defaultNamespaceURI) { BackedList<Namespace> answer = createResultList(); for (Node node : contentList()) { if (node instanceof Namespace) { Namespace namespace = (Namespace) node; if (!defaultNamespaceURI.equals(namespace.getURI())) { answer.addLocal(namespace); } } } return answer; }
public List<ProcessingInstruction> processingInstructions(String target) { BackedList<ProcessingInstruction> answer = createResultList(); for (Node node : contentList()) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { answer.addLocal(pi); } } } return answer; }
public List<Namespace> getNamespacesForURI(String uri) { BackedList<Namespace> answer = createResultList(); for (Node node : contentList()) { if ((node instanceof Namespace) && ((Namespace) node).getURI().equals(uri)) { answer.addLocal((Namespace) node); } } return answer; }
public List<Element> elements(QName qName) { BackedList<Element> answer = createResultList(); for (Node node : contentList()) { if (node instanceof Element) { Element element = (Element) node; if (qName.equals(element.getQName())) { answer.addLocal(element); } } } return answer; }
public List<Namespace> additionalNamespaces() { BackedList<Namespace> answer = createResultList(); for (Node node : contentList()) { if (node instanceof Namespace) { Namespace namespace = (Namespace) node; if (!namespace.equals(getNamespace())) { answer.addLocal(namespace); } } } return answer; }
public List<Element> elements(String name) { BackedList<Element> answer = createResultList(); for (Node node : contentList()) { if (node instanceof Element) { Element element = (Element) node; if (name.equals(element.getName())) { answer.addLocal(element); } } } return answer; }
public List processingInstructions() { List list = contentList(); BackedList answer = createResultList(); int size = list.size(); for (int i = 0; i < size; i++) { Object object = list.get(i); if (object instanceof ProcessingInstruction) { answer.addLocal(object); } } return answer; }
public List processingInstructions() { List list = contentList(); BackedList answer = createResultList(); int size = list.size(); for (int i = 0; i < size; i++) { Object object = list.get(i); if (object instanceof ProcessingInstruction) { answer.addLocal(object); } } return answer; }
public List<ProcessingInstruction> processingInstructions() { BackedList<ProcessingInstruction> answer = createResultList(); for (Node node : contentList()) { if (node instanceof ProcessingInstruction) { answer.addLocal((ProcessingInstruction) node); } } return answer; }
public List<Element> elements() { BackedList<Element> answer = createResultList(); for (Node node : contentList()) { if (node instanceof Element) { answer.addLocal((Element) node); } } return answer; }
public List<Namespace> declaredNamespaces() { BackedList<Namespace> answer = createResultList(); for (Node node : contentList()) { if (node instanceof Namespace) { answer.addLocal((Namespace) node); } } return answer; }
public List<Namespace> additionalNamespaces(String defaultNamespaceURI) { BackedList<Namespace> answer = createResultList(); for (Node node : contentList()) { if (node instanceof Namespace) { Namespace namespace = (Namespace) node; if (!defaultNamespaceURI.equals(namespace.getURI())) { answer.addLocal(namespace); } } } return answer; }
public List<ProcessingInstruction> processingInstructions(String target) { BackedList<ProcessingInstruction> answer = createResultList(); for (Node node : contentList()) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { answer.addLocal(pi); } } } return answer; }
public List<Namespace> getNamespacesForURI(String uri) { BackedList<Namespace> answer = createResultList(); for (Node node : contentList()) { if ((node instanceof Namespace) && ((Namespace) node).getURI().equals(uri)) { answer.addLocal((Namespace) node); } } return answer; }
public List<Element> elements(QName qName) { BackedList<Element> answer = createResultList(); for (Node node : contentList()) { if (node instanceof Element) { Element element = (Element) node; if (qName.equals(element.getQName())) { answer.addLocal(element); } } } return answer; }
public List<Namespace> additionalNamespaces() { BackedList<Namespace> answer = createResultList(); for (Node node : contentList()) { if (node instanceof Namespace) { Namespace namespace = (Namespace) node; if (!namespace.equals(getNamespace())) { answer.addLocal(namespace); } } } return answer; }