Class SchemaProcessor
java.lang.Object
com.sun.xml.analysis.frequency.SchemaProcessor
A Schema processor that collects the namespaces, local names, elements
and attributes declared in a set of schema.
TODO: add default values for attribute/element simple content. : enums used for attribute/element simple content
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Stringprivate booleanprivate SchemaProcessor.QNameComparatorprivate SchemaProcessor.StringComparatorThe set of attributes declared in the schemaThe set of default values and enum values for attributes declared in the schemaThe set of elements declared in the schemaThe set of local names declared in the schemaThe set of namespaces declared in the schemaThe set of generated prefixesThe set of default values and enums values for text content declared in the schema -
Constructor Summary
ConstructorsConstructorDescriptionSchemaProcessor(URL schema) SchemaProcessor(URL schema, boolean collectValues, boolean generatePrefixes) SchemaProcessor(List<URL> schema) SchemaProcessor(List<URL> schema, boolean collectValues, boolean generatePrefixes) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAttribute(com.sun.xml.xsom.XSDeclaration d) private voidprivate voidaddElement(com.sun.xml.xsom.XSDeclaration d) private voidprivate voidprivate static SAXParserFactoryReturns properly configured (e.g.private QNamegetQName(com.sun.xml.xsom.XSDeclaration d) private booleanhasProcessibleNamespaceURI(String namespaceURI) static voidprivate voidprivate voidprint()voidprocess()Process the schema to produce the set of properties of information items.
-
Field Details
-
_stringComparator
-
_qNameComparator
-
elements
-
attributes
-
localNames
-
namespaces
-
prefixes
-
attributeValues
-
textContentValues
-
_schema
-
_collectValues
private boolean _collectValues -
_generatePrefixes
private boolean _generatePrefixes -
_namespaceToPrefix
-
_generatedPrefix
-
-
Constructor Details
-
SchemaProcessor
-
SchemaProcessor
-
SchemaProcessor
-
SchemaProcessor
-
-
Method Details
-
process
-
addAttribute
private void addAttribute(com.sun.xml.xsom.XSDeclaration d) -
addElement
private void addElement(com.sun.xml.xsom.XSDeclaration d) -
addNamespaceLocalNameAndPrefix
-
addAttributeValue
-
addTextContentValue
-
getQName
-
nextGeneratedPrefix
private void nextGeneratedPrefix() -
hasProcessibleNamespaceURI
-
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
-