public List<Namespace> declaredNamespaces() { BackedList<Namespace> answer = createResultList(); // if (getNamespaceURI().length() > 0) { // // answer.addLocal(getNamespace()); // // } final Object contentShadow = content; if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; for (Node node : list) { if (node instanceof Namespace) { answer.addLocal((Namespace) node); } } } else { if (contentShadow instanceof Namespace) { answer.addLocal((Namespace) contentShadow); } } return answer; }
public List<ProcessingInstruction> processingInstructions() { final Object contentShadow = content; if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; BackedList<ProcessingInstruction> answer = createResultList(); for (Node node : list) { if (node instanceof ProcessingInstruction) { answer.addLocal((ProcessingInstruction) node); } } return answer; } else { if (contentShadow instanceof ProcessingInstruction) { return createSingleResultList((ProcessingInstruction) contentShadow); } return createEmptyList(); } }
public List<ProcessingInstruction> processingInstructions(String target) { final Object shadow = content; if (shadow instanceof List) { List<Node> list = (List<Node>) shadow; BackedList<ProcessingInstruction> answer = createResultList(); for (Node node : list) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { answer.addLocal(pi); } } } return answer; } else { if (shadow instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) shadow; if (target.equals(pi.getName())) { return createSingleResultList(pi); } } return createEmptyList(); } }
public List<Namespace> additionalNamespaces(String defaultNamespaceURI) { final Object contentShadow = content; if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; BackedList<Namespace> answer = createResultList(); for (Node node : list) { if (node instanceof Namespace) { Namespace namespace = (Namespace) node; if (!defaultNamespaceURI.equals(namespace.getURI())) { answer.addLocal(namespace); } } } return answer; } else { if (contentShadow instanceof Namespace) { Namespace namespace = (Namespace) contentShadow; if (!defaultNamespaceURI.equals(namespace.getURI())) { return createSingleResultList(namespace); } } } return createEmptyList(); }
public List<Namespace> additionalNamespaces() { final Object contentShadow = content; if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; BackedList<Namespace> answer = createResultList(); for (Node node : list) { if (node instanceof Namespace) { Namespace namespace = (Namespace) node; if (!namespace.equals(getNamespace())) { answer.addLocal(namespace); } } } return answer; } else { if (contentShadow instanceof Namespace) { Namespace namespace = (Namespace) contentShadow; if (namespace.equals(getNamespace())) { return createEmptyList(); } return createSingleResultList(namespace); } else { return createEmptyList(); } } }
public List declaredNamespaces() { BackedList answer = createResultList(); // if (getNamespaceURI().length() > 0) { // // answer.addLocal(getNamespace()); // // } final Object contentShadow = content; if (contentShadow instanceof List) { List list = (List) contentShadow; int size = list.size(); for (int i = 0; i < size; i++) { Object object = list.get(i); if (object instanceof Namespace) { answer.addLocal(object); } } } else { if (contentShadow instanceof Namespace) { answer.addLocal(contentShadow); } } return answer; }
public List declaredNamespaces() { BackedList answer = createResultList(); // if (getNamespaceURI().length() > 0) { // // answer.addLocal(getNamespace()); // // } final Object contentShadow = content; if (contentShadow instanceof List) { List list = (List) contentShadow; int size = list.size(); for (int i = 0; i < size; i++) { Object object = list.get(i); if (object instanceof Namespace) { answer.addLocal(object); } } } else { if (contentShadow instanceof Namespace) { answer.addLocal(contentShadow); } } return answer; }
public List declaredNamespaces() { BackedList answer = createResultList(); // if (getNamespaceURI().length() > 0) { // // answer.addLocal(getNamespace()); // // } final Object contentShadow = content; if (contentShadow instanceof List) { List list = (List) contentShadow; int size = list.size(); for (int i = 0; i < size; i++) { Object object = list.get(i); if (object instanceof Namespace) { answer.addLocal(object); } } } else { if (contentShadow instanceof Namespace) { answer.addLocal(contentShadow); } } return answer; }
public List processingInstructions() { final Object contentShadow = content; if (contentShadow instanceof List) { List list = (List) contentShadow; 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; } else { if (contentShadow instanceof ProcessingInstruction) { return createSingleResultList(contentShadow); } return createEmptyList(); } }
public List processingInstructions() { final Object contentShadow = content; if (contentShadow instanceof List) { List list = (List) contentShadow; 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; } else { if (contentShadow instanceof ProcessingInstruction) { return createSingleResultList(contentShadow); } return createEmptyList(); } }
public List processingInstructions() { final Object contentShadow = content; if (contentShadow instanceof List) { List list = (List) contentShadow; 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; } else { if (contentShadow instanceof ProcessingInstruction) { return createSingleResultList(contentShadow); } return createEmptyList(); } }
public List processingInstructions() { final Object contentShadow = content; if (contentShadow instanceof List) { List list = (List) contentShadow; 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; } else { if (contentShadow instanceof ProcessingInstruction) { return createSingleResultList(contentShadow); } return createEmptyList(); } }
public List processingInstructions() { final Object contentShadow = content; if (contentShadow instanceof List) { List list = (List) contentShadow; 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; } else { if (contentShadow instanceof ProcessingInstruction) { return createSingleResultList(contentShadow); } return createEmptyList(); } }
public List<Namespace> declaredNamespaces() { BackedList<Namespace> answer = createResultList(); // if (getNamespaceURI().length() > 0) { // // answer.addLocal(getNamespace()); // // } final Object contentShadow = content; if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; for (Node node : list) { if (node instanceof Namespace) { answer.addLocal((Namespace) node); } } } else { if (contentShadow instanceof Namespace) { answer.addLocal((Namespace) contentShadow); } } return answer; }
public List processingInstructions() { final Object contentShadow = content; if (contentShadow instanceof List) { List list = (List) contentShadow; 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; } else { if (contentShadow instanceof ProcessingInstruction) { return createSingleResultList(contentShadow); } return createEmptyList(); } }
public List<ProcessingInstruction> processingInstructions() { final Object contentShadow = content; if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; BackedList<ProcessingInstruction> answer = createResultList(); for (Node node : list) { if (node instanceof ProcessingInstruction) { answer.addLocal((ProcessingInstruction) node); } } return answer; } else { if (contentShadow instanceof ProcessingInstruction) { return createSingleResultList((ProcessingInstruction) contentShadow); } return createEmptyList(); } }
public List<ProcessingInstruction> processingInstructions() { final Object contentShadow = content; if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; BackedList<ProcessingInstruction> answer = createResultList(); for (Node node : list) { if (node instanceof ProcessingInstruction) { answer.addLocal((ProcessingInstruction) node); } } return answer; } else { if (contentShadow instanceof ProcessingInstruction) { return createSingleResultList((ProcessingInstruction) contentShadow); } return createEmptyList(); } }
public List<Namespace> additionalNamespaces(String defaultNamespaceURI) { final Object contentShadow = content; if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; BackedList<Namespace> answer = createResultList(); for (Node node : list) { if (node instanceof Namespace) { Namespace namespace = (Namespace) node; if (!defaultNamespaceURI.equals(namespace.getURI())) { answer.addLocal(namespace); } } } return answer; } else { if (contentShadow instanceof Namespace) { Namespace namespace = (Namespace) contentShadow; if (!defaultNamespaceURI.equals(namespace.getURI())) { return createSingleResultList(namespace); } } } return createEmptyList(); }
public List<ProcessingInstruction> processingInstructions(String target) { final Object shadow = content; if (shadow instanceof List) { List<Node> list = (List<Node>) shadow; BackedList<ProcessingInstruction> answer = createResultList(); for (Node node : list) { if (node instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) node; if (target.equals(pi.getName())) { answer.addLocal(pi); } } } return answer; } else { if (shadow instanceof ProcessingInstruction) { ProcessingInstruction pi = (ProcessingInstruction) shadow; if (target.equals(pi.getName())) { return createSingleResultList(pi); } } return createEmptyList(); } }
public List<Namespace> additionalNamespaces() { final Object contentShadow = content; if (contentShadow instanceof List) { List<Node> list = (List<Node>) contentShadow; BackedList<Namespace> answer = createResultList(); for (Node node : list) { if (node instanceof Namespace) { Namespace namespace = (Namespace) node; if (!namespace.equals(getNamespace())) { answer.addLocal(namespace); } } } return answer; } else { if (contentShadow instanceof Namespace) { Namespace namespace = (Namespace) contentShadow; if (namespace.equals(getNamespace())) { return createEmptyList(); } return createSingleResultList(namespace); } else { return createEmptyList(); } } }