A validator helper for StAXSources.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | StAXValidatorHelper.EventHelper
Helper for |
| pack-priv class | StAXValidatorHelper.StreamHelper
Helper for |
| pack-priv static class | StAXValidatorHelper.XMLStreamReaderLocation
On demand reader of the Location from an XMLStreamReader. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | ERROR_REPORTER
Property identifier: error reporter. |
| pack-priv final QName | |
| pack-priv final XMLAttributesImpl | |
| private final XMLSchemaValidatorComponentManager | fComponentManager
Component manager. |
| private XMLEvent | fCurrentEvent
Current event. |
| pack-priv final ArrayList | |
| private int | fDepth
Document depth. |
| pack-priv final QName | fElementQName
Fields for start element, end element and characters. |
| private HashMap | fEntities
Map for tracking entity declarations. |
| private final XMLErrorReporter | fErrorReporter
Error reporter. |
| private StAXValidatorHelper. | fEventHelper
Validator helper for XMLEventReaders. |
| private final JAXPNamespaceContextWrapper | fNamespaceContext
The namespace context of this document: stores namespaces in scope. |
| private final XMLSchemaValidator | fSchemaValidator
Schema validator. |
| private StAXEventResultBuilder | fStAXEventResultBuilder
StAX event result builder. |
| private final StAXLocationWrapper | fStAXLocationWrapper
XML Locator wrapper for StAX. |
| private StAXStreamResultBuilder | fStAXStreamResultBuilder
StAX stream result builder. |
| private StAXDocumentHandler | fStAXValidatorHandler
StAX document handler. |
| private StAXValidatorHelper. | fStreamHelper
Validator helper for XMLStreamReaders. |
| pack-priv final XMLStringBuffer | |
| private boolean | fStringsInternalized
Flag used to track whether XML names and Namespace URIs have been internalized. |
| private final SymbolTable | fSymbolTable
Symbol table |
| pack-priv final XMLString | |
| private final ValidationManager | fValidationManager
Validation manager. |
| private final StAXValidatorHelper. | fXMLStreamReaderLocation
On demand reader of the Location from an XMLStreamReader. |
| private static final String | SCHEMA_VALIDATOR
Property identifier: XML Schema validator. |
| private static final String | STRING_INTERNING
Property identifier: string interning. |
| private static final String | SYMBOL_TABLE
Property identifier: symbol table. |
| private static final String | VALIDATION_MANAGER
Property identifier: validation manager. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final void | |
| pack-priv final XMLEvent | |
| pack-priv final EntityDeclaration | |
| public boolean | isEntityDeclared(String name)
Implements org. |
| public boolean | isEntityUnparsed(String name)
Implements org. |
| pack-priv final void | |
| pack-priv final void | |
| private void | |
| public void | validate(Source source, Result result)
Implements org. |
| ERROR_REPORTER | back to summary |
|---|---|
| private static final String ERROR_REPORTER Property identifier: error reporter. | |
| fAttributeQName | back to summary |
|---|---|
| pack-priv final QName fAttributeQName | |
| fAttributes | back to summary |
|---|---|
| pack-priv final XMLAttributesImpl fAttributes | |
| fComponentManager | back to summary |
|---|---|
| private final XMLSchemaValidatorComponentManager fComponentManager Component manager. | |
| fCurrentEvent | back to summary |
|---|---|
| private XMLEvent fCurrentEvent Current event. | |
| fDeclaredPrefixes | back to summary |
|---|---|
| pack-priv final ArrayList<E> fDeclaredPrefixes | |
| fDepth | back to summary |
|---|---|
| private int fDepth Document depth. | |
| fElementQName | back to summary |
|---|---|
| pack-priv final QName fElementQName Fields for start element, end element and characters. | |
| fEntities | back to summary |
|---|---|
| private HashMap<K, V> fEntities Map for tracking entity declarations. | |
| fErrorReporter | back to summary |
|---|---|
| private final XMLErrorReporter fErrorReporter Error reporter. | |
| fEventHelper | back to summary |
|---|---|
| private StAXValidatorHelper. Validator helper for XMLEventReaders. | |
| fNamespaceContext | back to summary |
|---|---|
| private final JAXPNamespaceContextWrapper fNamespaceContext The namespace context of this document: stores namespaces in scope. | |
| fSchemaValidator | back to summary |
|---|---|
| private final XMLSchemaValidator fSchemaValidator Schema validator. | |
| fStAXEventResultBuilder | back to summary |
|---|---|
| private StAXEventResultBuilder fStAXEventResultBuilder StAX event result builder. | |
| fStAXLocationWrapper | back to summary |
|---|---|
| private final StAXLocationWrapper fStAXLocationWrapper XML Locator wrapper for StAX. | |
| fStAXStreamResultBuilder | back to summary |
|---|---|
| private StAXStreamResultBuilder fStAXStreamResultBuilder StAX stream result builder. | |
| fStAXValidatorHandler | back to summary |
|---|---|
| private StAXDocumentHandler fStAXValidatorHandler StAX document handler. | |
| fStreamHelper | back to summary |
|---|---|
| private StAXValidatorHelper. Validator helper for XMLStreamReaders. | |
| fStringBuffer | back to summary |
|---|---|
| pack-priv final XMLStringBuffer fStringBuffer | |
| fStringsInternalized | back to summary |
|---|---|
| private boolean fStringsInternalized Flag used to track whether XML names and Namespace URIs have been internalized. | |
| fSymbolTable | back to summary |
|---|---|
| private final SymbolTable fSymbolTable Symbol table | |
| fTempString | back to summary |
|---|---|
| pack-priv final XMLString fTempString | |
| fValidationManager | back to summary |
|---|---|
| private final ValidationManager fValidationManager Validation manager. | |
| fXMLStreamReaderLocation | back to summary |
|---|---|
| private final StAXValidatorHelper. On demand reader of the Location from an XMLStreamReader. | |
| SCHEMA_VALIDATOR | back to summary |
|---|---|
| private static final String SCHEMA_VALIDATOR Property identifier: XML Schema validator. | |
| STRING_INTERNING | back to summary |
|---|---|
| private static final String STRING_INTERNING Property identifier: string interning. | |
| SYMBOL_TABLE | back to summary |
|---|---|
| private static final String SYMBOL_TABLE Property identifier: symbol table. | |
| VALIDATION_MANAGER | back to summary |
|---|---|
| private static final String VALIDATION_MANAGER Property identifier: validation manager. | |
| StAXValidatorHelper | back to summary |
|---|---|
| public StAXValidatorHelper(XMLSchemaValidatorComponentManager componentManager) | |
| fillQName | back to summary |
|---|---|
| pack-priv final void fillQName(QName toFill, String uri, String localpart, String prefix) Fills in a QName object. | |
| getCurrentEvent | back to summary |
|---|---|
| pack-priv final XMLEvent getCurrentEvent() | |
| getEntityDeclaration | back to summary |
|---|---|
| pack-priv final EntityDeclaration getEntityDeclaration(String name) | |
| isEntityDeclared | back to summary |
|---|---|
| public boolean isEntityDeclared(String name) Implements org. Doc from org. Query method to check if entity with this name was declared.
| |
| isEntityUnparsed | back to summary |
|---|---|
| public boolean isEntityUnparsed(String name) Implements org. Doc from org. Query method to check if entity is unparsed.
| |
| processEntityDeclarations | back to summary |
|---|---|
| pack-priv final void processEntityDeclarations(List<E> entityDecls) Copies entity declarations into a hash map. | |
| setup | back to summary |
|---|---|
| pack-priv final void setup(Location location, StAXResult result, boolean stringsInternalized) Setup for validation. | |
| setupStAXResultHandler | back to summary |
|---|---|
| private void setupStAXResultHandler(StAXResult result) Sets up handler for | |
| validate | back to summary |
|---|---|
| public void validate(Source source, Result result) throws SAXException, IOException Implements org. | |
XMLEventReaders.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | CHUNK_MASK
Chunk mask (CHUNK_SIZE - 1). |
| private static final int | CHUNK_SIZE
Chunk size (1024). |
| private final char[] | fCharBuffer
Array for holding character data. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | sendCharactersToValidator(String str)
Send characters to the validator in CHUNK_SIZE character chunks. |
| pack-priv final void |
| CHUNK_MASK | back to summary |
|---|---|
| private static final int CHUNK_MASK Chunk mask (CHUNK_SIZE - 1). | |
| CHUNK_SIZE | back to summary |
|---|---|
| private static final int CHUNK_SIZE Chunk size (1024). | |
| fCharBuffer | back to summary |
|---|---|
| private final char[] fCharBuffer Array for holding character data. | |
| EventHelper | back to summary |
|---|---|
| pack-priv EventHelper() | |
| fillDeclaredPrefixes | back to summary |
|---|---|
| private void fillDeclaredPrefixes(StartElement event) Fills in the list of declared prefixes. | |
| fillDeclaredPrefixes | back to summary |
|---|---|
| private void fillDeclaredPrefixes(EndElement event) Fills in the list of declared prefixes. | |
| fillDeclaredPrefixes | back to summary |
|---|---|
| private void fillDeclaredPrefixes(Iterator<E> namespaces) Fills in the list of declared prefixes. | |
| fillQName | back to summary |
|---|---|
| private void fillQName(QName toFill, QName toCopy) Fills in a QName object. | |
| fillXMLAttributes | back to summary |
|---|---|
| private void fillXMLAttributes(StartElement event) Fills in the XMLAttributes object. | |
| sendCharactersToValidator | back to summary |
|---|---|
| private void sendCharactersToValidator(String str) Send characters to the validator in CHUNK_SIZE character chunks. | |
| validate | back to summary |
|---|---|
| pack-priv final void validate(XMLEventReader reader, StAXResult result) throws SAXException, XMLStreamException | |
XMLStreamReaders.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| pack-priv final void |
| StreamHelper | back to summary |
|---|---|
| pack-priv StreamHelper() | |
| fillDeclaredPrefixes | back to summary |
|---|---|
| private void fillDeclaredPrefixes(XMLStreamReader reader) Fills in the list of declared prefixes. | |
| fillXMLAttributes | back to summary |
|---|---|
| private void fillXMLAttributes(XMLStreamReader reader) Fills in the XMLAttributes object. | |
| validate | back to summary |
|---|---|
| pack-priv final void validate(XMLStreamReader reader, StAXResult result) throws SAXException, XMLStreamException | |
| Modifier and Type | Field and Description |
|---|---|
| private XMLStreamReader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | getCharacterOffset()
Implements javax. |
| public int | getColumnNumber()
Implements javax. |
| public int | getLineNumber()
Implements javax. |
| private Location | |
| public String | |
| public String | |
| public void |
| reader | back to summary |
|---|---|
| private XMLStreamReader reader | |
| XMLStreamReaderLocation | back to summary |
|---|---|
| public XMLStreamReaderLocation() | |
| getCharacterOffset | back to summary |
|---|---|
| public int getCharacterOffset() Implements javax. Doc from javax. Return the byte or character offset into the input source this location is pointing to. If the input source is a file or a byte stream then this is the byte offset into that stream, but if the input source is a character media then the offset is the character offset. Returns -1 if there is no offset available.
| |
| getColumnNumber | back to summary |
|---|---|
| public int getColumnNumber() Implements javax. Doc from javax. Return the column number where the current event ends, returns -1 if none is available.
| |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() Implements javax. Doc from javax. Return the line number where the current event ends, returns -1 if none is available.
| |
| getLocation | back to summary |
|---|---|
| private Location getLocation() | |
| getPublicId | back to summary |
|---|---|
| public String getPublicId() Implements javax. Doc from javax. Returns the public ID of the XML
| |
| getSystemId | back to summary |
|---|---|
| public String getSystemId() Implements javax. Doc from javax. Returns the system ID of the XML
| |
| setXMLStreamReader | back to summary |
|---|---|
| public void setXMLStreamReader(XMLStreamReader reader) | |