public class XMLNSDocumentScannerImpl extends XMLDocumentScannerImpl
| Modifier and Type | Class and Description |
|---|---|
protected class |
XMLNSDocumentScannerImpl.NSContentDriver
Driver to handle content scanning.
|
XMLDocumentScannerImpl.ContentDriver, XMLDocumentScannerImpl.DTDDriver, XMLDocumentScannerImpl.PrologDriver, XMLDocumentScannerImpl.TrailingMiscDriver, XMLDocumentScannerImpl.XMLDeclDriverXMLDocumentFragmentScannerImpl.Driver, XMLDocumentFragmentScannerImpl.Element, XMLDocumentFragmentScannerImpl.ElementStack, XMLDocumentFragmentScannerImpl.ElementStack2, XMLDocumentFragmentScannerImpl.FragmentContentDriver| 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 |
fNotAddNSDeclAsAttribute
Default value of this feature is false, when in Stax mode this should be true
|
protected boolean |
fPerformValidation
If validating parser, make sure we report an error in the
scanner if DTD grammar is missing.
|
DISALLOW_DOCTYPE_DECL_FEATURE, DOCUMENT_SCANNER, DTD_SCANNER, fAddedListener, fDoctypeName, fDoctypePublicId, fDoctypeSystemId, fDTDDecl, fDTDDriver, fDTDScanner, fEndPos, fLoadExternalDTD, fNamespaceContext, fPrologDriver, fReadingDTD, fScanEndElement, fSeenDoctypeDecl, fSeenInternalSubset, fStartPos, fTrailingMiscDriver, fValidationManager, fXMLDeclDriver, LOAD_EXTERNAL_DTD, NAMESPACE_CONTEXT, SCANNER_STATE_DTD_EXTERNAL, SCANNER_STATE_DTD_EXTERNAL_DECLS, SCANNER_STATE_DTD_INTERNAL_DECLS, SCANNER_STATE_NO_SUCH_ELEMENT_EXCEPTION, SCANNER_STATE_PROLOG, SCANNER_STATE_TRAILING_MISC, SCANNER_STATE_XML_DECL, VALIDATION_MANAGERDEBUG, DEBUG_COALESCE, DEBUG_NEXT, DEBUG_START_END_ELEMENT, dtdGrammarUtil, ENTITY_RESOLVER, fAccessExternalDTD, fAdd, fAddDefaultAttr, fAttributeQName, fAttributes, fContentBuffer, fContentDriver, fCurrentElement, fDeclaredEncoding, fDisallowDoctype, fDocumentHandler, fDriver, fElementAttributeLimit, fElementQName, fElementRawname, fElementStack, fElementStack2, fEmptyElement, fEntityStack, fEntityStore, fExternalSubsetResolver, fHasExternalDTD, fInScanContent, fIsCoalesce, fLastSectionWasCData, fLastSectionWasCharacterData, fLastSectionWasEntityReference, fMarkupDepth, fNotifyBuiltInRefs, foundBuiltInRefs, fPIData, fPITarget, fReadingAttributes, fReplaceEntityReferences, fReportCdataEvent, fScannerLastState, fScannerState, fScanToEnd, fShouldSkip, fSkip, fStandalone, fStandaloneSet, fStrictURI, fStringBuffer, fStringBuffer2, fSupportDTD, fSupportExternalEntities, fTempString, fTempString2, fUsebuffer, fVersion, NOTIFY_BUILTIN_REFS, SCANNER_STATE_ATTRIBUTE, SCANNER_STATE_ATTRIBUTE_VALUE, SCANNER_STATE_BUILT_IN_REFS, SCANNER_STATE_CDATA, SCANNER_STATE_CHAR_REFERENCE, SCANNER_STATE_CHARACTER_DATA, SCANNER_STATE_COMMENT, SCANNER_STATE_CONTENT, SCANNER_STATE_DOCTYPE, SCANNER_STATE_END_ELEMENT_TAG, SCANNER_STATE_END_OF_INPUT, SCANNER_STATE_PI, SCANNER_STATE_REFERENCE, SCANNER_STATE_ROOT_ELEMENT, SCANNER_STATE_START_ELEMENT_TAG, SCANNER_STATE_START_OF_MARKUP, SCANNER_STATE_TERMINATED, SCANNER_STATE_TEXT_DECL, STANDARD_URI_CONFORMANTattributeValueCache, DEBUG_ATTR_NORMALIZATION, ENTITY_MANAGER, ERROR_REPORTER, fAmpSymbol, fAposSymbol, fAttributeCacheInitDone, fAttributeCacheUsedCount, fCharRefLiteral, fEncodingSymbol, fEntityDepth, fEntityManager, fEntityScanner, fErrorReporter, fEvent, fGtSymbol, fLimitAnalyzer, fLtSymbol, fNamespaces, fNotifyCharRefs, fParserSettings, fPropertyManager, fQuotSymbol, fReportEntity, fResourceIdentifier, fScanningAttribute, fSecurityManager, fStandaloneSymbol, fStringBufferIndex, fSymbolTable, fValidation, fVersionSymbol, NAMESPACES, NOTIFY_CHAR_REFS, PARSER_SETTINGS, stringBufferCache, SYMBOL_TABLE, VALIDATION| Constructor and Description |
|---|
XMLNSDocumentScannerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected XMLDocumentFragmentScannerImpl.Driver |
createContentDriver()
Creates a content driver.
|
int |
next()
return the next state on the input
|
void |
reset(PropertyManager propertyManager)
Resets the fields of this scanner.
|
void |
reset(XMLComponentManager componentManager)
Resets the component.
|
protected void |
scanAttribute(XMLAttributesImpl attributes)
Scans an attribute.
|
protected boolean |
scanStartElement()
Scans a start element.
|
void |
setDTDValidator(XMLDTDValidatorFilter dtd)
The scanner is responsible for removing DTD validator
from the pipeline if it is not needed.
|
endEntity, getCharacterEncodingScheme, getDTDDecl, getFeatureDefault, getNamespaceContext, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, getScannerStateName, getScannetState, refresh, scanDoctypeDecl, setEndDTDScanState, setFeature, setInputSource, setProperty, startEntitygetAttributeIterator, getCharacterData, getComment, getDocumentHandler, getDriverName, getElementQName, getEntityName, getPIData, getPITarget, getString, hasAttributes, isStandAlone, refresh, scanAttribute, scanCDATASection, scanCharReference, scanComment, scanContent, scanDocument, scanEndElement, scanEntityReference, scanPIData, scanXMLDeclOrTextDecl, seekCloseOfStartTag, setDocumentHandler, setDriver, setScannerState, skipElement, standaloneSetgetFeature, isInvalid, isInvalidLiteral, isValidNameChar, isValidNameStartChar, isValidNCName, normalizeWhitespace, reportFatalError, reset, scanAttributeValue, scanCharReferenceValue, scanComment, scanExternalID, scanPI, scanPseudoAttribute, scanPubidLiteral, scanSurrogates, scanXMLDeclOrTextDecl, setPropertyManager, versionSupportedprotected boolean fBindNamespaces
protected boolean fPerformValidation
protected boolean fNotAddNSDeclAsAttribute
public void reset(PropertyManager propertyManager)
reset in class XMLDocumentScannerImplpublic void reset(XMLComponentManager componentManager) throws XMLConfigurationException
XMLDocumentScannerImplreset in interface XMLComponentreset in class XMLDocumentScannerImplcomponentManager - The component manager.XMLConfigurationExceptionpublic int next()
throws IOException,
XNIException
next in interface XMLDocumentScannernext in class XMLDocumentScannerImplIOExceptionXNIExceptionpublic void setDTDValidator(XMLDTDValidatorFilter dtd)
previous - The filter component before DTDValidatordtdValidator - The DTDValidatornext - The documentHandler after 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 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 XMLDocumentFragmentScannerImpl.Driver createContentDriver()
createContentDriver in class XMLDocumentScannerImplCopyright © 2018–2021 mhoffrogge. All rights reserved.