public class XML11DocumentScannerImpl extends XMLDocumentScannerImpl
This component requires the following features and properties from the component manager that uses it:
XMLDocumentScannerImpl.ContentDispatcher, XMLDocumentScannerImpl.DTDDispatcher, XMLDocumentScannerImpl.PrologDispatcher, XMLDocumentScannerImpl.TrailingMiscDispatcher, XMLDocumentScannerImpl.XMLDeclDispatcher
XMLDocumentFragmentScannerImpl.Dispatcher, XMLDocumentFragmentScannerImpl.ElementStack, XMLDocumentFragmentScannerImpl.FragmentContentDispatcher
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_MANAGER
DEBUG_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_DECL
DEBUG_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 |
---|
XML11DocumentScannerImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getVersionNotSupportedKey() |
protected boolean |
isInvalid(int value) |
protected boolean |
isInvalidLiteral(int value) |
protected int |
isUnchangedByNormalization(XMLString value)
Checks whether this string would be unchanged by normalization.
|
protected boolean |
isValidNameChar(int value) |
protected boolean |
isValidNameStartChar(int value) |
protected boolean |
isValidNameStartHighSurrogate(int value) |
protected boolean |
isValidNCName(int value) |
protected void |
normalizeWhitespace(XMLString value)
Normalize whitespace in an XMLString converting all whitespace
characters to space characters.
|
protected void |
normalizeWhitespace(XMLString value,
int fromIndex)
Normalize whitespace in an XMLString converting all whitespace
characters to space characters.
|
protected boolean |
scanAttributeValue(XMLString value,
XMLString nonNormalizedValue,
String atName,
boolean checkEntities,
String eleName)
Scans an attribute value and normalizes whitespace converting all
whitespace characters to space characters.
|
protected int |
scanContent()
Scans element content.
|
protected boolean |
scanPubidLiteral(XMLString literal)
Scans public ID literal.
|
protected boolean |
versionSupported(String version) |
createContentDispatcher, endEntity, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, getScannerStateName, reset, scanDoctypeDecl, setFeature, setInputSource, setProperty, startEntity
getDispatcherName, getDocumentHandler, handleEndElement, scanAttribute, scanCDATASection, scanCharReference, scanComment, scanDocument, scanEndElement, scanEntityReference, scanPIData, scanStartElement, scanStartElementAfterName, scanStartElementName, scanXMLDeclOrTextDecl, setDispatcher, setDocumentHandler, setScannerState
getFeature, reportFatalError, reset, scanCharReferenceValue, scanComment, scanExternalID, scanPI, scanPseudoAttribute, scanSurrogates, scanXMLDeclOrTextDecl
protected int scanContent() throws IOException, XNIException
scanContent
in class XMLDocumentFragmentScannerImpl
IOException
XNIException
protected boolean scanAttributeValue(XMLString value, XMLString nonNormalizedValue, String atName, boolean checkEntities, String eleName) throws IOException, XNIException
scanAttributeValue
in class XMLScanner
value
- The XMLString to fill in with the value.nonNormalizedValue
- The XMLString to fill in with the
non-normalized value.atName
- The name of the attribute being parsed (for error msgs).checkEntities
- true if undeclared entities should be reported as VC violation,
false if undeclared entities should be reported as WFC violation.eleName
- The name of element to which this attribute belongs.IOException
XNIException
protected boolean scanPubidLiteral(XMLString literal) throws IOException, XNIException
scanPubidLiteral
in class XMLScanner
literal
- The string to fill in with the public ID literal.IOException
XNIException
protected void normalizeWhitespace(XMLString value)
normalizeWhitespace
in class XMLScanner
protected void normalizeWhitespace(XMLString value, int fromIndex)
normalizeWhitespace
in class XMLScanner
protected int isUnchangedByNormalization(XMLString value)
isUnchangedByNormalization
in class XMLScanner
protected boolean isInvalid(int value)
isInvalid
in class XMLScanner
protected boolean isInvalidLiteral(int value)
isInvalidLiteral
in class XMLScanner
protected boolean isValidNameChar(int value)
isValidNameChar
in class XMLScanner
protected boolean isValidNameStartChar(int value)
isValidNameStartChar
in class XMLScanner
protected boolean isValidNCName(int value)
isValidNCName
in class XMLScanner
protected boolean isValidNameStartHighSurrogate(int value)
isValidNameStartHighSurrogate
in class XMLScanner
protected boolean versionSupported(String version)
versionSupported
in class XMLScanner
protected String getVersionNotSupportedKey()
getVersionNotSupportedKey
in class XMLScanner
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.