|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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 String |
genQNameAttributeString(javax.xml.namespace.QName qname,
String prefix)
Generate an XML prefixed attribute value with a corresponding xmlns declaration for the prefix. |
static String |
getAttribute(Node node,
String attr)
Given a node, return the value of the given attribute. |
static Vector |
getAttributesWithLocalName(Node node,
String localName)
Given a node, return the attributes that have the specified local name. |
static 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 HashSet |
getNestedTypes(TypeEntry type,
SymbolTable symbolTable,
boolean derivedFlag)
This method returns a set of all the nested types. |
static javax.xml.namespace.QName |
getNillableQName(javax.xml.namespace.QName qName)
getNillableQName returns the QName to use if the nillable=true attribute is used. |
static javax.xml.namespace.QName |
getNodeNameQName(Node node)
XML nodes may have a name attribute. |
static javax.xml.namespace.QName |
getNodeQName(Node node)
An xml element may have a name. |
static javax.xml.namespace.QName |
getQNameFromPrefixedName(Node node,
String prefixedName)
Convert a prefixed name into a qname |
static String |
getScopedAttribute(Node node,
String attr)
Given a node, return the value of the given attribute. |
static javax.xml.namespace.QName |
getTypeQName(Node node,
javax.xml.rpc.holders.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 - use of an anonymous type (i.e. |
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 javax.xml.namespace.QName getNillableQName(javax.xml.namespace.QName qName)
qName
- QNamepublic static String getScopedAttribute(Node node, String attr)
public static String getAttribute(Node node, String attr)
public static Vector getAttributesWithLocalName(Node node, String localName)
public static javax.xml.namespace.QName getNodeQName(Node node)
public static javax.xml.namespace.QName getNodeNameQName(Node node)
public static javax.xml.namespace.QName getTypeQName(Node node, javax.xml.rpc.holders.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 QName
public static javax.xml.namespace.QName getQNameFromPrefixedName(Node node, String prefixedName)
public static HashSet getDerivedTypes(TypeEntry type, SymbolTable symbolTable)
public static 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 String genQNameAttributeString(javax.xml.namespace.QName qname, String prefix)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |