java.lang.Object
com.sun.xml.analysis.types.SchemaProcessor
A Schema processor that collects the XSD simple types of elements and
attributes declarations.
Maps of element/attribute local name to a set of XSDataType are created when a schema is processed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate QName
private Map
<String, Set<XSDataType>> private QName
private Map
<String, Set<XSDataType>> private Set
<XSDataType> private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private static SAXParserFactory
Returns properly configured (e.g.static void
private void
print()
void
process()
Process the schema.void
process
(Set<XSDataType> filter) Process the schema.private QName
qname
(com.sun.xml.xsom.XSDeclaration d) private void
reset()
-
Field Details
-
_schema
-
_filter
-
_elementMap
-
_attributeMap
-
_element
-
_attribute
-
_isListSimpleType
private boolean _isListSimpleType
-
-
Constructor Details
-
SchemaProcessor
-
SchemaProcessor
-
-
Method Details
-
getElementToXSDataTypeMap
-
getAttributeToXSDataTypeMap
-
process
Process the schema.- Throws:
Exception
-
process
Process the schema.- Parameters:
filter
- if not null only include elements/attributes with simple types if it is present in the Set of XS data type. Otherwise all elements/attributes with simple types are included.- Throws:
Exception
-
addToMap
-
reset
private void reset() -
qname
-
print
private void print() -
main
- Throws:
Exception
-
createParserFactory
Returns properly configured (e.g. security features) parser factory - namespaceAware == true - securityProcessing == is set based on security processing property, default is true- Throws:
IllegalStateException
-