|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.wsdl.symbolTable.Utils
This class contains static utility methods for the emitter.
Constructor Summary | |
Utils()
|
Method Summary | |
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 |
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.util.HashSet |
getNestedTypes(TypeEntry type,
SymbolTable symbolTable,
boolean derivedFlag)
This method returns a set of all the nested types. |
static QName |
getNillableQName(QName qName)
getNillableQName returns the QName to use if the nillable=true attribute is used. |
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 |
getNodeTypeRefQName(org.w3c.dom.Node node,
BooleanHolder forElement)
XML nodes may have a type/ref attribute. |
static QName |
getNodeTypeRefQName(org.w3c.dom.Node node,
java.lang.String typeAttrName)
Obtain the QName of the type/ref using the indicated attribute 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utils()
Method Detail |
public static QName getNillableQName(QName qName)
QName
- public static java.lang.String getScopedAttribute(org.w3c.dom.Node node, java.lang.String attr)
public static java.lang.String getAttribute(org.w3c.dom.Node node, java.lang.String attr)
public static java.util.Vector getAttributesWithLocalName(org.w3c.dom.Node node, java.lang.String localName)
public static QName getNodeQName(org.w3c.dom.Node node)
public static QName getNodeNameQName(org.w3c.dom.Node node)
public static QName getNodeTypeRefQName(org.w3c.dom.Node node, BooleanHolder forElement)
node
- of the referenceforElement
- output parameter is set to true if QName is for an element
(i.e. ref= or element= attribute was used).QName
- of type or element (depending on forElement setting)public static QName getNodeTypeRefQName(org.w3c.dom.Node node, java.lang.String typeAttrName)
node
- in the domtypeAttrName
- (type, base, element, ref)public static QName getQNameFromPrefixedName(org.w3c.dom.Node node, java.lang.String prefixedName)
public static java.util.HashSet getDerivedTypes(TypeEntry type, SymbolTable symbolTable)
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |