public class XMLNSDocumentScannerImpl extends XMLDocumentScannerImpl
This component requires the following features and properties from the component manager that uses it:
| Modifier and Type | Class and Description |
|---|---|
protected class |
XMLNSDocumentScannerImpl.NSContentDispatcher
Dispatcher to handle content scanning.
|
XMLDocumentScannerImpl.ContentDispatcher, XMLDocumentScannerImpl.DTDDispatcher, XMLDocumentScannerImpl.PrologDispatcher, XMLDocumentScannerImpl.TrailingMiscDispatcher, XMLDocumentScannerImpl.XMLDeclDispatcherXMLDocumentFragmentScannerImpl.Dispatcher, XMLDocumentFragmentScannerImpl.ElementStack, XMLDocumentFragmentScannerImpl.FragmentContentDispatcher| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fBindNamespaces
If is true, the dtd validator is no longer in the pipeline
and the scanner should bind namespaces
|
protected boolean |
fPerformValidation
If validating parser, make sure we report an error in the
scanner if DTD grammar is missing.
|
DISALLOW_DOCTYPE_DECL_FEATURE, DTD_SCANNER, fDisallowDoctype, fDoctypeName, fDoctypePublicId, fDoctypeSystemId, fDTDDispatcher, fDTDScanner, fLoadExternalDTD, fNamespaceContext, fPrologDispatcher, fScanningDTD, fSeenDoctypeDecl, fTrailingMiscDispatcher, fValidationManager, fXMLDeclDispatcher, LOAD_EXTERNAL_DTD, NAMESPACE_CONTEXT, SCANNER_STATE_DTD_EXTERNAL, SCANNER_STATE_DTD_EXTERNAL_DECLS, SCANNER_STATE_DTD_INTERNAL_DECLS, SCANNER_STATE_PROLOG, SCANNER_STATE_TRAILING_MISC, SCANNER_STATE_XML_DECL, VALIDATION_MANAGERDEBUG_CONTENT_SCANNING, ENTITY_RESOLVER, fAttributeQName, fAttributes, fContentDispatcher, fCurrentElement, fDispatcher, fDocumentHandler, fElementQName, fElementStack, fEntityStack, fExternalSubsetResolver, fHasExternalDTD, fInScanContent, fIsEntityDeclaredVC, fMarkupDepth, fNotifyBuiltInRefs, fScannerState, fStandalone, fTempString, fTempString2, NAMESPACES, NOTIFY_BUILTIN_REFS, SCANNER_STATE_CDATA, SCANNER_STATE_COMMENT, SCANNER_STATE_CONTENT, SCANNER_STATE_DOCTYPE, SCANNER_STATE_END_OF_INPUT, SCANNER_STATE_PI, SCANNER_STATE_REFERENCE, SCANNER_STATE_ROOT_ELEMENT, SCANNER_STATE_START_OF_MARKUP, SCANNER_STATE_TERMINATED, SCANNER_STATE_TEXT_DECLDEBUG_ATTR_NORMALIZATION, ENTITY_MANAGER, ERROR_REPORTER, fAmpSymbol, fAposSymbol, fCharRefLiteral, fEncodingSymbol, fEntityDepth, fEntityManager, fEntityScanner, fErrorReporter, fGtSymbol, fLtSymbol, fNamespaces, fNotifyCharRefs, fParserSettings, fQuotSymbol, fReportEntity, fResourceIdentifier, fScanningAttribute, fStandaloneSymbol, fSymbolTable, fValidation, fVersionSymbol, NOTIFY_CHAR_REFS, PARSER_SETTINGS, SYMBOL_TABLE, VALIDATION| Constructor and Description |
|---|
XMLNSDocumentScannerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected XMLDocumentFragmentScannerImpl.Dispatcher |
createContentDispatcher()
Creates a content dispatcher.
|
void |
reset(XMLComponentManager componentManager)
Resets the component.
|
protected void |
scanAttribute(XMLAttributesImpl attributes)
Scans an attribute.
|
protected int |
scanEndElement()
Scans an end element.
|
protected boolean |
scanStartElement()
Scans a start element.
|
protected boolean |
scanStartElementAfterName()
Scans the remainder of a start or empty tag after the element name.
|
protected void |
scanStartElementName()
Scans the name of an element in a start or empty tag.
|
void |
setDTDValidator(XMLDTDValidatorFilter dtdValidator)
The scanner is responsible for removing DTD validator
from the pipeline if it is not needed.
|
endEntity, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, getScannerStateName, scanDoctypeDecl, setFeature, setInputSource, setProperty, startEntitygetDispatcherName, getDocumentHandler, handleEndElement, scanAttribute, scanCDATASection, scanCharReference, scanComment, scanContent, scanDocument, scanEntityReference, scanPIData, scanXMLDeclOrTextDecl, setDispatcher, setDocumentHandler, setScannerStategetFeature, getVersionNotSupportedKey, isInvalid, isInvalidLiteral, isUnchangedByNormalization, isValidNameChar, isValidNameStartChar, isValidNameStartHighSurrogate, isValidNCName, normalizeWhitespace, normalizeWhitespace, reportFatalError, reset, scanAttributeValue, scanCharReferenceValue, scanComment, scanExternalID, scanPI, scanPseudoAttribute, scanPubidLiteral, scanSurrogates, scanXMLDeclOrTextDecl, versionSupportedprotected boolean fBindNamespaces
protected boolean fPerformValidation
public void setDTDValidator(XMLDTDValidatorFilter dtdValidator)
dtdValidator - The DTDValidatorprotected boolean scanStartElement()
throws IOException,
XNIException
[44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>' [40] STag ::= '<' Name (S Attribute)* S? '>'
Note: This method assumes that the leading '<' character has been consumed.
Note: This method uses the fElementQName and fAttributes variables. The contents of these variables will be destroyed. The caller should copy important information out of these variables before calling this method.
scanStartElement in class XMLDocumentFragmentScannerImplIOExceptionXNIExceptionprotected void scanStartElementName()
throws IOException,
XNIException
scanStartElementName in class XMLDocumentFragmentScannerImplIOExceptionXNIExceptionscanStartElement()protected boolean scanStartElementAfterName()
throws IOException,
XNIException
scanStartElementAfterName in class XMLDocumentFragmentScannerImplIOExceptionXNIExceptionscanStartElement()protected void scanAttribute(XMLAttributesImpl attributes) throws IOException, XNIException
[41] Attribute ::= Name Eq AttValue
Note: This method assumes that the next character on the stream is the first character of the attribute name.
Note: This method uses the fAttributeQName and fQName variables. The contents of these variables will be destroyed.
attributes - The attributes list for the scanned attribute.IOExceptionXNIExceptionprotected int scanEndElement()
throws IOException,
XNIException
[42] ETag ::= '</' Name S? '>'
Note: This method uses the fElementQName variable. The contents of this variable will be destroyed. The caller should copy the needed information out of this variable before calling this method.
scanEndElement in class XMLDocumentFragmentScannerImplIOExceptionXNIExceptionpublic void reset(XMLComponentManager componentManager) throws XMLConfigurationException
XMLDocumentScannerImplreset in interface XMLComponentreset in class XMLDocumentScannerImplcomponentManager - The component manager.XMLConfigurationExceptionprotected XMLDocumentFragmentScannerImpl.Dispatcher createContentDispatcher()
createContentDispatcher in class XMLDocumentScannerImplCopyright © 2017 JBoss by Red Hat. All rights reserved.