org.apache.axis.wsdl.symbolTable
public class Utils extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
genQNameAttributeString(QName qname,
java.lang.String prefix)
Generate an XML prefixed attribute value with a corresponding xmlns
declaration for the prefix.
|
static java.lang.String |
genQNameAttributeStringWithLastLocalPart(QName qname,
java.lang.String prefix) |
static java.lang.String |
getAttribute(org.w3c.dom.Node node,
java.lang.String attr)
Given a node, return the value of the given attribute.
|
static java.util.Vector |
getAttributesWithLocalName(org.w3c.dom.Node node,
java.lang.String localName)
Given a node, return the attributes that have the specified local name.
|
static java.util.HashSet |
getDerivedTypes(TypeEntry type,
SymbolTable symbolTable)
This method returns a set of all types that are derived
from this type via an extension of a complexType
|
static java.lang.String |
getLastLocalPart(java.lang.String localPart) |
static QName[] |
getMemberTypeQNames(org.w3c.dom.Node node)
Method getMemberTypeQNames
|
protected static java.util.HashSet |
getNestedTypes(TypeEntry type,
SymbolTable symbolTable,
boolean derivedFlag)
This method returns a set of all the nested types.
|
static QName |
getNodeNameQName(org.w3c.dom.Node node)
XML nodes may have a name attribute.
|
static QName |
getNodeQName(org.w3c.dom.Node node)
An xml element may have a name.
|
static QName |
getQNameFromPrefixedName(org.w3c.dom.Node node,
java.lang.String prefixedName)
Convert a prefixed name into a qname
|
static java.lang.String |
getScopedAttribute(org.w3c.dom.Node node,
java.lang.String attr)
Given a node, return the value of the given attribute.
|
static QName |
getTypeQName(org.w3c.dom.Node node,
BooleanHolder forElement,
boolean ignoreMaxOccurs)
An XML element or attribute node has several ways of
identifying the type of the element or attribute:
- use the type attribute to reference a complexType/simpleType
- use the ref attribute to reference another element, group or attributeGroup
- use of an anonymous type (i.e.
|
public static java.lang.String getScopedAttribute(org.w3c.dom.Node node, java.lang.String attr)
node
- attr
- public static java.lang.String getAttribute(org.w3c.dom.Node node, java.lang.String attr)
node
- attr
- public static java.util.Vector getAttributesWithLocalName(org.w3c.dom.Node node, java.lang.String localName)
node
- localName
- public static QName getNodeQName(org.w3c.dom.Node node)
node
- public static QName getNodeNameQName(org.w3c.dom.Node node)
node
- public static QName getTypeQName(org.w3c.dom.Node node, BooleanHolder forElement, boolean ignoreMaxOccurs)
node
- of the referenceforElement
- output parameter is set to true if QName is for an element
(i.e. ref= or element= attribute was used).ignoreMaxOccurs
- indicates whether minOccurs/maxOccurs affects the QNamepublic static QName[] getMemberTypeQNames(org.w3c.dom.Node node)
node
- public static QName getQNameFromPrefixedName(org.w3c.dom.Node node, java.lang.String prefixedName)
node
- prefixedName
- public static java.util.HashSet getDerivedTypes(TypeEntry type, SymbolTable symbolTable)
type
- symbolTable
- protected static java.util.HashSet getNestedTypes(TypeEntry type, SymbolTable symbolTable, boolean derivedFlag)
type
- is the type entry to considersymbolTable
- is the symbolTablederivedFlag
- should be set if all dependendent derived types should also be
returned.public static java.lang.String genQNameAttributeString(QName qname, java.lang.String prefix)
qname
- prefix
- public static java.lang.String genQNameAttributeStringWithLastLocalPart(QName qname, java.lang.String prefix)
public static java.lang.String getLastLocalPart(java.lang.String localPart)
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.