public Element elementNS(Namespace nameSpace, String tagName) { List<Element> elements = elementsNS(nameSpace.getNamespaceUri(), tagName); if (elements.size() == 0 && nameSpace.hasAlternativeUri()) { elements = elementsNS(nameSpace.getAlternativeUri(), tagName); } if (elements.size() == 0) { return null; } else if (elements.size() > 1) { throw new ProcessEngineException("Parsing exception: multiple elements with tag name " + tagName + " found"); } return elements.get(0); }
public Element elementNS(Namespace nameSpace, String tagName) { List<Element> elements = elementsNS(nameSpace.getNamespaceUri(), tagName); if (elements.size() == 0 && nameSpace.hasAlternativeUri()) { elements = elementsNS(nameSpace.getAlternativeUri(), tagName); } if (elements.size() == 0) { return null; } else if (elements.size() > 1) { throw new ProcessEngineException("Parsing exception: multiple elements with tag name " + tagName + " found"); } return elements.get(0); }
public List<Element> elementsNS(Namespace nameSpace, String tagName) { List<Element> elementsNS = elementsNS(nameSpace.getNamespaceUri(), tagName); if(elementsNS.isEmpty() && nameSpace.hasAlternativeUri()){ elementsNS = elementsNS(nameSpace.getAlternativeUri(), tagName); } return elementsNS; }
public List<Element> elementsNS(Namespace nameSpace, String tagName) { List<Element> elementsNS = elementsNS(nameSpace.getNamespaceUri(), tagName); if(elementsNS.isEmpty() && nameSpace.hasAlternativeUri()){ elementsNS = elementsNS(nameSpace.getAlternativeUri(), tagName); } return elementsNS; }
public String attributeNS(Namespace namespace, String name, String defaultValue) { String attribute = attribute(composeMapKey(namespace.getNamespaceUri(), name)); if (attribute == null && namespace.hasAlternativeUri()) { attribute = attribute(composeMapKey(namespace.getAlternativeUri(), name)); } if (attribute == null) { return defaultValue; } return attribute; }
public String attributeNS(Namespace namespace, String name, String defaultValue) { String attribute = attribute(composeMapKey(namespace.getNamespaceUri(), name)); if (attribute == null && namespace.hasAlternativeUri()) { attribute = attribute(composeMapKey(namespace.getAlternativeUri(), name)); } if (attribute == null) { return defaultValue; } return attribute; }
public String attributeNS(Namespace namespace, String name) { String attribute = attribute(composeMapKey(namespace.getNamespaceUri(), name)); if (attribute == null && namespace.hasAlternativeUri()) { attribute = attribute(composeMapKey(namespace.getAlternativeUri(), name)); } return attribute; }
public String attributeNS(Namespace namespace, String name) { String attribute = attribute(composeMapKey(namespace.getNamespaceUri(), name)); if (attribute == null && namespace.hasAlternativeUri()) { attribute = attribute(composeMapKey(namespace.getAlternativeUri(), name)); } return attribute; }
public Element elementNS(Namespace nameSpace, String tagName) { List<Element> elements = elementsNS(nameSpace.getNamespaceUri(), tagName); if (elements.size() == 0 && nameSpace.hasAlternativeUri()) { elements = elementsNS(nameSpace.getAlternativeUri(), tagName); } if (elements.size() == 0) { return null; } else if (elements.size() > 1) { throw new ProcessEngineException("Parsing exception: multiple elements with tag name " + tagName + " found"); } return elements.get(0); }
public List<Element> elementsNS(Namespace nameSpace, String tagName) { List<Element> elementsNS = elementsNS(nameSpace.getNamespaceUri(), tagName); if(elementsNS.isEmpty() && nameSpace.hasAlternativeUri()){ elementsNS = elementsNS(nameSpace.getAlternativeUri(), tagName); } return elementsNS; }
public String attributeNS(Namespace namespace, String name) { String attribute = attribute(composeMapKey(namespace.getNamespaceUri(), name)); if (attribute == null && namespace.hasAlternativeUri()) { attribute = attribute(composeMapKey(namespace.getAlternativeUri(), name)); } return attribute; }
public String attributeNS(Namespace namespace, String name, String defaultValue) { String attribute = attribute(composeMapKey(namespace.getNamespaceUri(), name)); if (attribute == null && namespace.hasAlternativeUri()) { attribute = attribute(composeMapKey(namespace.getAlternativeUri(), name)); } if (attribute == null) { return defaultValue; } return attribute; }