public static Node getListNode(Node node) { // Expecting a schema simpleType if (isXSDNode(node, "simpleType")) { // Under the simpleType there could be list NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "list")) { return kid; } } } return null; }
public static Node getListNode(Node node) { // Expecting a schema simpleType if (isXSDNode(node, "simpleType")) { // Under the simpleType there could be list NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "list")) { return kid; } } } return null; }
public static Node getUnionNode(Node node) { // Expecting a schema complexType if (isXSDNode(node, "simpleType")) { // Under the simpleType there could be union NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "union")) { return kid; } } } return null; }
public static Node getListNode(Node node) { // Expecting a schema simpleType if (isXSDNode(node, "simpleType")) { // Under the simpleType there could be list NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "list")) { return kid; } } } return null; }
public static Node getUnionNode(Node node) { // Expecting a schema complexType if (isXSDNode(node, "simpleType")) { // Under the simpleType there could be union NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "union")) { return kid; } } } return null; }
public static Node getUnionNode(Node node) { // Expecting a schema complexType if (isXSDNode(node, "simpleType")) { // Under the simpleType there could be union NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "union")) { return kid; } } } return null; }
/** * Returns the WSDL2Java QName for the anonymous type of the element * or null. * * @param node * @return */ public static QName getElementAnonQName(Node node) { if (isXSDNode(node, "element")) { NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "complexType") || isXSDNode(kid, "simpleType")) { return Utils.getNodeNameQName(kid); } } } return null; }
/** * Returns the WSDL2Java QName for the anonymous type of the attribute * or null. * * @param node * @return */ public static QName getAttributeAnonQName(Node node) { if (isXSDNode(node, "attribute")) { NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "complexType") || isXSDNode(kid, "simpleType")) { return Utils.getNodeNameQName(kid); } } } return null; }
/** * Returns the WSDL2Java QName for the anonymous type of the attribute * or null. * * @param node * @return */ public static QName getAttributeAnonQName(Node node) { if (isXSDNode(node, "attribute")) { NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "complexType") || isXSDNode(kid, "simpleType")) { return Utils.getNodeNameQName(kid); } } } return null; }
/** * Returns the WSDL2Java QName for the anonymous type of the element * or null. * * @param node * @return */ public static QName getElementAnonQName(Node node) { if (isXSDNode(node, "element")) { NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "complexType") || isXSDNode(kid, "simpleType")) { return Utils.getNodeNameQName(kid); } } } return null; }
/** * Returns the WSDL2Java QName for the anonymous type of the element * or null. * * @param node * @return */ public static QName getElementAnonQName(Node node) { if (isXSDNode(node, "element")) { NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "complexType") || isXSDNode(kid, "simpleType")) { return Utils.getNodeNameQName(kid); } } } return null; }
/** * Returns the WSDL2Java QName for the anonymous type of the attribute * or null. * * @param node * @return */ public static QName getAttributeAnonQName(Node node) { if (isXSDNode(node, "attribute")) { NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "complexType") || isXSDNode(kid, "simpleType")) { return Utils.getNodeNameQName(kid); } } } return null; }
/** * This method checks mixed=true attribute is set either on * complexType or complexContent element. */ public static boolean isMixed(Node node) { // Expecting a schema complexType if (isXSDNode(node, "complexType")) { String mixed = ((Element)node).getAttribute("mixed"); if (mixed != null && mixed.length() > 0) { return ("true".equalsIgnoreCase(mixed) || "1".equals(mixed)); } // Under the complexType there could be complexContent with // mixed="true" NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "complexContent")) { mixed = ((Element)kid).getAttribute("mixed"); return ("true".equalsIgnoreCase(mixed) || "1".equals(mixed)); } } } return false; }
/** * This method checks mixed=true attribute is set either on * complexType or complexContent element. */ public static boolean isMixed(Node node) { // Expecting a schema complexType if (isXSDNode(node, "complexType")) { String mixed = ((Element)node).getAttribute("mixed"); if (mixed != null && mixed.length() > 0) { return ("true".equalsIgnoreCase(mixed) || "1".equals(mixed)); } // Under the complexType there could be complexContent with // mixed="true" NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "complexContent")) { mixed = ((Element)kid).getAttribute("mixed"); return ("true".equalsIgnoreCase(mixed) || "1".equals(mixed)); } } } return false; }
/** * This method checks mixed=true attribute is set either on * complexType or complexContent element. */ public static boolean isMixed(Node node) { // Expecting a schema complexType if (isXSDNode(node, "complexType")) { String mixed = ((Element)node).getAttribute("mixed"); if (mixed != null && mixed.length() > 0) { return ("true".equalsIgnoreCase(mixed) || "1".equals(mixed)); } // Under the complexType there could be complexContent with // mixed="true" NodeList children = node.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "complexContent")) { mixed = ((Element)kid).getAttribute("mixed"); return ("true".equalsIgnoreCase(mixed) || "1".equals(mixed)); } } } return false; }
/** * Invoked by getContainedElementDeclarations to get the child element types * and child element names underneath an all node. * * @param allNode * @param symbolTable * @return */ private static Vector processAllNode(Node allNode, SymbolTable symbolTable) { Vector v = new Vector(); NodeList children = allNode.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "element")) { ElementDecl elem = processChildElementNode(kid, symbolTable); if (elem != null) { v.add(elem); } } } return v; }
/** * Invoked by getContainedElementDeclarations to get the child element types * and child element names underneath an all node. * * @param allNode * @param symbolTable * @return */ private static Vector processAllNode(Node allNode, SymbolTable symbolTable) { Vector v = new Vector(); NodeList children = allNode.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "element")) { ElementDecl elem = processChildElementNode(kid, symbolTable); if (elem != null) { v.add(elem); } } } return v; }
/** * Invoked by getContainedElementDeclarations to get the child element types * and child element names underneath an all node. * * @param allNode * @param symbolTable * @return */ private static Vector processAllNode(Node allNode, SymbolTable symbolTable) { Vector v = new Vector(); NodeList children = allNode.getChildNodes(); for (int j = 0; j < children.getLength(); j++) { Node kid = children.item(j); if (isXSDNode(kid, "element")) { ElementDecl elem = processChildElementNode(kid, symbolTable); if (elem != null) { v.add(elem); } } } return v; }