Class SchemaProcessor
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 classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate QNameprivate Map<String, Set<XSDataType>> private QNameprivate Map<String, Set<XSDataType>> private Set<XSDataType> private boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate static SAXParserFactoryReturns properly configured (e.g.Map<String, Set<XSDataType>> Map<String, Set<XSDataType>> static voidprivate voidprint()voidprocess()Process the schema.voidprocess(Set<XSDataType> filter) Process the schema.private QNameqname(com.sun.xml.xsom.XSDeclaration d) private voidreset()
-
Field Details
-
_schema
-
_filter
-
_elementMap
-
_attributeMap
-
_element
-
_attribute
-
_isListSimpleType
private boolean _isListSimpleType
-
-
Constructor Details
-
SchemaProcessor
-
SchemaProcessor
-
-
Method Details
-
getElementToXSDataTypeMap
-
getAttributeToXSDataTypeMap
-
process
-
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
-
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
-