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.XMLBufferListenerImpl, XMLDocumentScannerImpl.XMLDeclDriverXMLDocumentFragmentScannerImpl.Driver, XMLDocumentFragmentScannerImpl.Element, XMLDocumentFragmentScannerImpl.ElementStack, XMLDocumentFragmentScannerImpl.ElementStack2, XMLDocumentFragmentScannerImpl.FragmentContentDriver| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fPerformValidation
If validating parser, make sure we report an error in the
scanner if DTD grammar is missing.
|
COMMENTSTRING, DISALLOW_DOCTYPE_DECL_FEATURE, DOCTYPE, DTD_SCANNER, fBindNamespaces, fDoctypeName, fDoctypePublicId, fDoctypeSystemId, fDTDDecl, fDTDDriver, fDTDScanner, fEndOfDocument, fEndPos, fLoadExternalDTD, fNamespaceContext, fPrologDriver, fReadingAttributes, fReadingDTD, fScanEndElement, fScannerBufferlistener, fScannerLastState, fSeenDoctypeDecl, fSeenInternalSubset, fStartPos, fTrailingMiscDriver, fXMLDeclDriver, LOAD_EXTERNAL_DTD, 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_MANAGERcdata, DEBUG, DEBUG_COALESCE, DEBUG_CONTENT_SCANNING, DEBUG_NEXT, dtdGrammarUtil, endTag, fAdd, fAddDefaultAttr, fAttributeQName, fAttributes, fContentBuffer, fContentDriver, fCurrentElement, fDeclaredEncoding, fDisallowDoctype, fDocumentHandler, fDriver, fElementQName, fElementRawname, fElementStack, fElementStack2, fEntityStack, fEntityStore, fHasExternalDTD, fInScanContent, fIsCoalesce, fLastSectionWasCData, fLastSectionWasCharacterData, fLastSectionWasEntityReference, fMarkupDepth, fNamespaces, fNotifyBuiltInRefs, foundBuiltInRefs, fPIData, fPITarget, fReplaceEntityReferences, fReportCdataEvent, fScannerState, fScanToEnd, fShouldSkip, fSkip, fStandalone, fStandaloneSet, fStringBuffer, fStringBuffer2, fSupportExternalEntities, fTempString, fTempString2, fVersion, NAMESPACES, 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, xmlDeclattributeValueCache, DEBUG_ATTR_NORMALIZATION, ENTITY_MANAGER, ERROR_REPORTER, fAmpSymbol, fAposSymbol, fAttributeCacheInitDone, fAttributeCacheUsedCount, fCharRefLiteral, fEncodingSymbol, fEntityDepth, fEntityManager, fEntityScanner, fErrorReporter, fEvent, fGtSymbol, fLtSymbol, fNotifyCharRefs, fPropertyManager, fQuotSymbol, fReportEntity, fResourceIdentifier, fScanningAttribute, fStandaloneSymbol, fStringBufferIndex, fSymbolTable, fValidation, fVersionSymbol, NOTIFY_CHAR_REFS, stringBufferCache, SYMBOL_TABLE, VALIDATION| Constructor and Description |
|---|
XMLNSDocumentScannerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected XMLDocumentFragmentScannerImpl.Driver |
createContentDriver()
Creates a content driver.
|
java.lang.String |
getCharacterEncodingScheme() |
org.apache.xerces.util.XMLStringBuffer |
getDTDDecl() |
org.apache.xerces.xni.QName |
getElementQName()
Return the information about the element -- If it is EndELement, QName values
are computed dynamically.
|
org.apache.xerces.xni.NamespaceContext |
getNamespaceContext() |
void |
reset(PropertyManager propertyManager)
Resets the fields of this scanner.
|
void |
reset(org.apache.xerces.xni.parser.XMLComponentManager componentManager)
Resets the component.
|
protected void |
scanAttribute(org.apache.xerces.util.XMLAttributesImpl attributes)
Scans an attribute.
|
protected int |
scanEndElement()
Scans an end element.
|
protected boolean |
scanStartElement()
Scans a start element.
|
endEntity, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, getScannerStateName, getScannetState, next, scanDoctypeDecl, setEndDTDScanState, setFeature, setInputSource, setProperty, startEntitygetAttributeIterator, getCharacterData, getComment, getDocumentHandler, getDriverName, getEntityName, getPIData, getPITarget, hasAttributes, isStandAlone, scanAttribute, scanCDATASection, scanCharReference, scanComment, scanContent, scanDocument, scanEntityReference, scanPIData, scanXMLDeclOrTextDecl, setDocumentHandler, setDriver, setScannerState, skipElement, standaloneSetgetFeature, isInvalid, isInvalidLiteral, isValidNameChar, isValidNameStartChar, isValidNCName, normalizeWhitespace, reportFatalError, scanAttributeValue, scanCharReferenceValue, scanComment, scanExternalID, scanPI, scanPseudoAttribute, scanPubidLiteral, scanSurrogates, scanXMLDeclOrTextDecl, setPropertyManager, versionSupportedprotected boolean fPerformValidation
public void reset(PropertyManager propertyManager)
reset in class XMLDocumentScannerImplpublic org.apache.xerces.xni.QName getElementQName()
protected boolean scanStartElement()
throws java.io.IOException,
org.apache.xerces.xni.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 XMLDocumentFragmentScannerImpljava.io.IOExceptionorg.apache.xerces.xni.XNIExceptionprotected void scanAttribute(org.apache.xerces.util.XMLAttributesImpl attributes)
throws java.io.IOException,
org.apache.xerces.xni.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.java.io.IOExceptionorg.apache.xerces.xni.XNIExceptionprotected int scanEndElement()
throws java.io.IOException,
org.apache.xerces.xni.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 XMLDocumentFragmentScannerImpljava.io.IOExceptionorg.apache.xerces.xni.XNIExceptionpublic org.apache.xerces.xni.NamespaceContext getNamespaceContext()
public void reset(org.apache.xerces.xni.parser.XMLComponentManager componentManager)
throws org.apache.xerces.xni.parser.XMLConfigurationException
XMLDocumentScannerImplreset in interface org.apache.xerces.xni.parser.XMLComponentreset in class XMLDocumentScannerImplcomponentManager - The component manager.org.apache.xerces.xni.parser.XMLConfigurationExceptionprotected XMLDocumentFragmentScannerImpl.Driver createContentDriver()
createContentDriver in class XMLDocumentScannerImplpublic org.apache.xerces.util.XMLStringBuffer getDTDDecl()
public java.lang.String getCharacterEncodingScheme()
Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.