/** * If the specified node represents an array encoding of one of the following * forms, then return the qname repesenting the element type of the array. * * @param node is the node * @param dims is the output value that contains the number of dimensions if return is not null * @param itemQName will end up containing the "inner" QName for a * wrapped literal array * @return QName or null */ public static QName getArrayComponentQName(Node node, IntHolder dims, BooleanHolder underlTypeNillable, QNameHolder itemQName, BooleanHolder forElement, SymbolTable symbolTable) { dims.value = 1; // assume 1 dimension underlTypeNillable.value = false; // assume underlying type is not nillable QName qName = getCollectionComponentQName(node, itemQName, forElement, symbolTable); if (qName == null) { qName = getArrayComponentQName_JAXRPC(node, dims, underlTypeNillable, symbolTable); } return qName; }
/** * If the specified node represents an array encoding of one of the following * forms, then return the qname repesenting the element type of the array. * * @param node is the node * @param dims is the output value that contains the number of dimensions if return is not null * @param itemQName will end up containing the "inner" QName for a * wrapped literal array * @return QName or null */ public static QName getArrayComponentQName(Node node, IntHolder dims, BooleanHolder underlTypeNillable, QNameHolder itemQName, BooleanHolder forElement, SymbolTable symbolTable) { dims.value = 1; // assume 1 dimension underlTypeNillable.value = false; // assume underlying type is not nillable QName qName = getCollectionComponentQName(node, itemQName, forElement, symbolTable); if (qName == null) { qName = getArrayComponentQName_JAXRPC(node, dims, underlTypeNillable, symbolTable); } return qName; }
/** * If the specified node represents an array encoding of one of the following * forms, then return the qname repesenting the element type of the array. * * @param node is the node * @param dims is the output value that contains the number of dimensions if return is not null * @param itemQName will end up containing the "inner" QName for a * wrapped literal array * @return QName or null */ public static QName getArrayComponentQName(Node node, IntHolder dims, BooleanHolder underlTypeNillable, QNameHolder itemQName, BooleanHolder forElement, SymbolTable symbolTable) { dims.value = 1; // assume 1 dimension underlTypeNillable.value = false; // assume underlying type is not nillable QName qName = getCollectionComponentQName(node, itemQName, forElement, symbolTable); if (qName == null) { qName = getArrayComponentQName_JAXRPC(node, dims, underlTypeNillable, symbolTable); } return qName; }
/** * Method getInnerCollectionComponentQName * * @param node * @return */ private QName getInnerCollectionComponentQName(Node node) { if (node == null) { return null; } QName name = SchemaUtils.getCollectionComponentQName(node, new QNameHolder(), new BooleanHolder(), this); if (name != null) { return name; } // Dive into the node if necessary NodeList children = node.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { name = getInnerCollectionComponentQName(children.item(i)); if (name != null) { return name; } } return null; }
/** * Method getInnerCollectionComponentQName * * @param node * @return */ private QName getInnerCollectionComponentQName(Node node) { if (node == null) { return null; } QName name = SchemaUtils.getCollectionComponentQName(node, new QNameHolder(), new BooleanHolder(), this); if (name != null) { return name; } // Dive into the node if necessary NodeList children = node.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { name = getInnerCollectionComponentQName(children.item(i)); if (name != null) { return name; } } return null; }
/** * Method getInnerCollectionComponentQName * * @param node * @return */ private QName getInnerCollectionComponentQName(Node node) { if (node == null) { return null; } QName name = SchemaUtils.getCollectionComponentQName(node, new QNameHolder(), new BooleanHolder(), this); if (name != null) { return name; } // Dive into the node if necessary NodeList children = node.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { name = getInnerCollectionComponentQName(children.item(i)); if (name != null) { return name; } } return null; }