static class WsdlConfig.WSDLSchema
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,org.w3c.dom.Element> |
allComplexTypes
A mapping of all the schema complexType nodes, by their name.
|
private java.util.Map<java.lang.String,org.w3c.dom.Element> |
allTypes
A mapping of all the schema elements defining a type, by their name.
|
private javax.xml.namespace.QName |
qname
The name of this schema.
|
private java.lang.String |
targetNamespace
The target namespace.
|
private java.util.Map<java.lang.String,WsdlConfig.ComplexSchemaType> |
types
A mapping of all loaded schema types, by their name.
|
Constructor and Description |
---|
WSDLSchema(javax.wsdl.extensions.schema.Schema schema)
Load and initialize this instance from the specified schema.
|
Modifier and Type | Method and Description |
---|---|
private WsdlConfig.BaseSchemaType |
buildBaseType(org.w3c.dom.Element el,
java.lang.String legacyAttr)
Build a base type from the specified schema element.
|
private WsdlConfig.DataSetSchemaType |
buildDataSetType(org.w3c.dom.Element el)
Build a
WsdlConfig.DataSetSchemaType from the specified schema element. |
private WsdlConfig.TableSchemaType |
buildTableType(org.w3c.dom.Element el)
Build a
WsdlConfig.TableSchemaType from the specified schema element. |
java.lang.String |
getTargetNamespace()
Get the target namespace from this schema.
|
private java.util.Map<java.lang.String,java.util.List<Index>> |
readIndexes(org.w3c.dom.Element dsType,
java.lang.String indexTag,
java.lang.String tableTag,
java.lang.String fieldTag,
java.lang.String nameAttr)
Read all indexes from this dataset schema.
|
private final java.util.Map<java.lang.String,org.w3c.dom.Element> allTypes
private final java.util.Map<java.lang.String,org.w3c.dom.Element> allComplexTypes
private final java.util.Map<java.lang.String,WsdlConfig.ComplexSchemaType> types
private final javax.xml.namespace.QName qname
private final java.lang.String targetNamespace
public WSDLSchema(javax.wsdl.extensions.schema.Schema schema)
schema
- The schema definition.public java.lang.String getTargetNamespace()
private java.util.Map<java.lang.String,java.util.List<Index>> readIndexes(org.w3c.dom.Element dsType, java.lang.String indexTag, java.lang.String tableTag, java.lang.String fieldTag, java.lang.String nameAttr)
dsType
- The dataset schema type element.indexTag
- The element tag for the indexes.tableTag
- The element tag for the index table.fieldTag
- The element tag for the index components (fields).nameAttr
- The attribute holding the name at the table and field element.private WsdlConfig.DataSetSchemaType buildDataSetType(org.w3c.dom.Element el)
WsdlConfig.DataSetSchemaType
from the specified schema element.el
- The schema element.private WsdlConfig.TableSchemaType buildTableType(org.w3c.dom.Element el)
WsdlConfig.TableSchemaType
from the specified schema element.el
- The schema element.private WsdlConfig.BaseSchemaType buildBaseType(org.w3c.dom.Element el, java.lang.String legacyAttr)
el
- The schema element.legacyAttr
- An attribute from which to resolve the legacy name.