Modifier and Type | Field and Description |
---|---|
protected static HashMap |
TYPES
A simple map of the primitive types and their holder objects
|
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
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 String |
getLastLocalPart(String localPart) |
static QName[] |
getMemberTypeQNames(Node node)
Method getMemberTypeQNames
|
static QName |
getMIMETypeQName(String mimeName)
Given a MIME type, return the AXIS-specific type QName.
|
protected static HashSet |
getNestedTypes(TypeEntry type,
SymbolTable symbolTable,
boolean derivedFlag)
This method returns a set of all the nested types.
|
static QName |
getNodeNameQName(Node node)
XML nodes may have a name attribute.
|
static QName |
getNodeQName(Node node)
An xml element may have a name.
|
static QName |
getOperationQName(javax.wsdl.BindingOperation bindingOper,
BindingEntry bEntry,
SymbolTable symbolTable)
Return the operation QName.
|
static 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 QName |
getTypeQName(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. a nested type underneath itself)
- a wsdl:part can use the element attribute
|
static String |
getWrapperType(String type)
Return a "wrapper" type for the given type name.
|
static QName |
getXSIType(Parameter param)
Get the QName that could be used in the xsi:type
when serializing an object for this parameter/return
|
static QName |
getXSIType(TypeEntry te)
Get the QName that could be used in the xsi:type
when serializing an object of the given type.
|
static boolean |
hasMIME(BindingEntry bEntry)
Are there any MIME parameters in the given binding?
|
static boolean |
hasMIME(BindingEntry bEntry,
javax.wsdl.BindingOperation operation)
Are there any MIME parameters in the given binding's operation?
|
static boolean |
isXsNode(Node node,
String nameName)
Determines if the DOM Node represents an xs:
|
protected static HashMap TYPES
public static String getScopedAttribute(Node node, String attr)
node
- attr
- public static String getAttribute(Node node, String attr)
node
- attr
- public static Vector getAttributesWithLocalName(Node node, String localName)
node
- localName
- public static QName getNodeQName(Node node)
node
- public static QName getNodeNameQName(Node node)
node
- public static QName getTypeQName(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(Node node)
node
- public static QName getQNameFromPrefixedName(Node node, String prefixedName)
node
- prefixedName
- public static HashSet getDerivedTypes(TypeEntry type, SymbolTable symbolTable)
type
- symbolTable
- protected 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 QName getXSIType(TypeEntry te)
te
- is the type entrypublic static QName getMIMETypeQName(String mimeName)
mimeName
- the MIME type namepublic static QName getXSIType(Parameter param)
param
- is a parameterpublic static boolean hasMIME(BindingEntry bEntry)
bEntry
- public static boolean hasMIME(BindingEntry bEntry, javax.wsdl.BindingOperation operation)
bEntry
- operation
- public static QName getOperationQName(javax.wsdl.BindingOperation bindingOper, BindingEntry bEntry, SymbolTable symbolTable)
bindingOper
- the operationbEntry
- the symbol table binding entrysymbolTable
- SymbolTablepublic static String getWrapperType(String type)
type
- Copyright © The Apache Software Foundation. All Rights Reserved.