|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xerces.impl.XMLScanner | +--weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl | +--weblogic.apache.xerces.impl.XMLDocumentScannerImpl
This class is responsible for scanning XML document structure and content. The scanner acts as the source for the document information which is communicated to the document handler.
This component requires the following features and properties from the component manager that uses it:
Inner Class Summary | |
protected class |
XMLDocumentScannerImpl.ContentDispatcher
Dispatcher to handle content scanning. |
protected class |
XMLDocumentScannerImpl.DTDDispatcher
Dispatcher to handle the internal and external DTD subsets. |
protected class |
XMLDocumentScannerImpl.PrologDispatcher
Dispatcher to handle prolog scanning. |
protected class |
XMLDocumentScannerImpl.TrailingMiscDispatcher
Dispatcher to handle trailing miscellaneous section scanning. |
protected class |
XMLDocumentScannerImpl.XMLDeclDispatcher
Dispatcher to handle XMLDecl scanning. |
Inner classes inherited from class weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl |
XMLDocumentFragmentScannerImpl.Dispatcher,
XMLDocumentFragmentScannerImpl.ElementStack,
XMLDocumentFragmentScannerImpl.FragmentContentDispatcher |
Field Summary | |
protected static java.lang.String |
DTD_SCANNER
Property identifier: DTD scanner. |
protected java.lang.String |
fDoctypeName
Doctype name. |
protected java.lang.String |
fDoctypePublicId
Doctype declaration public identifier. |
protected java.lang.String |
fDoctypeSystemId
Doctype declaration system identifier. |
protected XMLDocumentFragmentScannerImpl.Dispatcher |
fDTDDispatcher
DTD dispatcher. |
protected XMLDTDScanner |
fDTDScanner
DTD scanner. |
protected boolean |
fLoadExternalDTD
Load external DTD. |
protected XMLDocumentFragmentScannerImpl.Dispatcher |
fPrologDispatcher
Prolog dispatcher. |
protected boolean |
fScanningDTD
Scanning DTD. |
protected boolean |
fSeenDoctypeDecl
Seen doctype declaration. |
protected XMLDocumentFragmentScannerImpl.Dispatcher |
fTrailingMiscDispatcher
Trailing miscellaneous section dispatcher. |
protected ValidationManager |
fValidationManager
Validation manager . |
protected XMLDocumentFragmentScannerImpl.Dispatcher |
fXMLDeclDispatcher
XML declaration dispatcher. |
protected static java.lang.String |
LOAD_EXTERNAL_DTD
Feature identifier: load external DTD. |
protected static int |
SCANNER_STATE_DTD_EXTERNAL
Scanner state: open DTD external subset. |
protected static int |
SCANNER_STATE_DTD_EXTERNAL_DECLS
Scanner state: DTD external declarations. |
protected static int |
SCANNER_STATE_DTD_INTERNAL_DECLS
Scanner state: DTD internal declarations. |
protected static int |
SCANNER_STATE_PROLOG
Scanner state: prolog. |
protected static int |
SCANNER_STATE_TRAILING_MISC
Scanner state: trailing misc. |
protected static int |
SCANNER_STATE_XML_DECL
Scanner state: XML declaration. |
protected static java.lang.String |
VALIDATION_MANAGER
|
Fields inherited from class weblogic.apache.xerces.impl.XMLScanner |
DEBUG_ATTR_NORMALIZATION,
ENTITY_MANAGER,
ERROR_REPORTER,
fAmpSymbol,
fAposSymbol,
fCharRefLiteral,
fEncodingSymbol,
fEntityDepth,
fEntityManager,
fEntityScanner,
fErrorReporter,
fGtSymbol,
fLtSymbol,
fNotifyCharRefs,
fQuotSymbol,
fReportEntity,
fResourceIdentifier,
fScanningAttribute,
fStandaloneSymbol,
fSymbolTable,
fValidation,
fVersionSymbol,
NOTIFY_CHAR_REFS,
SYMBOL_TABLE,
VALIDATION |
Constructor Summary | |
XMLDocumentScannerImpl()
Default constructor. |
Method Summary | |
protected XMLDocumentFragmentScannerImpl.Dispatcher |
createContentDispatcher()
Creates a content dispatcher. |
void |
endEntity(java.lang.String name)
This method notifies the end of an entity. |
java.lang.String[] |
getRecognizedFeatures()
Returns a list of feature identifiers that are recognized by this component. |
java.lang.String[] |
getRecognizedProperties()
Returns a list of property identifiers that are recognized by this component. |
protected java.lang.String |
getScannerStateName(int state)
Returns the scanner state name. |
void |
reset(XMLComponentManager componentManager)
Resets the component. |
protected boolean |
scanDoctypeDecl()
Scans a doctype declaration. |
void |
setFeature(java.lang.String featureId,
boolean state)
Sets the state of a feature. |
void |
setInputSource(XMLInputSource inputSource)
Sets the input source. |
void |
setProperty(java.lang.String propertyId,
java.lang.Object value)
Sets the value of a property. |
void |
startEntity(java.lang.String name,
XMLResourceIdentifier identifier,
java.lang.String encoding)
This method notifies of the start of an entity. |
Methods inherited from class weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl |
getDispatcherName,
getDocumentHandler,
handleEndElement,
scanAttribute,
scanCDATASection,
scanCharReference,
scanComment,
scanContent,
scanDocument,
scanEndElement,
scanEntityReference,
scanPIData,
scanStartElement,
scanXMLDeclOrTextDecl,
setDispatcher,
setDocumentHandler,
setScannerState |
Methods inherited from class weblogic.apache.xerces.impl.XMLScanner |
getFeature,
normalizeWhitespace,
reportFatalError,
reset,
scanAttributeValue,
scanCharReferenceValue,
scanComment,
scanExternalID,
scanPI,
scanPseudoAttribute,
scanPubidLiteral,
scanSurrogates,
scanXMLDeclOrTextDecl |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static final int SCANNER_STATE_XML_DECL
protected static final int SCANNER_STATE_PROLOG
protected static final int SCANNER_STATE_TRAILING_MISC
protected static final int SCANNER_STATE_DTD_INTERNAL_DECLS
protected static final int SCANNER_STATE_DTD_EXTERNAL
protected static final int SCANNER_STATE_DTD_EXTERNAL_DECLS
protected static final java.lang.String LOAD_EXTERNAL_DTD
protected static final java.lang.String DTD_SCANNER
protected static final java.lang.String VALIDATION_MANAGER
protected XMLDTDScanner fDTDScanner
protected ValidationManager fValidationManager
protected boolean fScanningDTD
protected java.lang.String fDoctypeName
protected java.lang.String fDoctypePublicId
protected java.lang.String fDoctypeSystemId
protected boolean fLoadExternalDTD
protected boolean fSeenDoctypeDecl
protected XMLDocumentFragmentScannerImpl.Dispatcher fXMLDeclDispatcher
protected XMLDocumentFragmentScannerImpl.Dispatcher fPrologDispatcher
protected XMLDocumentFragmentScannerImpl.Dispatcher fDTDDispatcher
protected XMLDocumentFragmentScannerImpl.Dispatcher fTrailingMiscDispatcher
Constructor Detail |
public XMLDocumentScannerImpl()
Method Detail |
public void setInputSource(XMLInputSource inputSource) throws java.io.IOException
inputSource
- The input source.public void reset(XMLComponentManager componentManager) throws XMLConfigurationException
componentManager
- The component manager.public java.lang.String[] getRecognizedFeatures()
public void setFeature(java.lang.String featureId, boolean state) throws XMLConfigurationException
Note: Components should silently ignore features that do not affect the operation of the component.
featureId
- The feature identifier.state
- The state of the feature.public java.lang.String[] getRecognizedProperties()
public void setProperty(java.lang.String propertyId, java.lang.Object value) throws XMLConfigurationException
Note: Components should silently ignore properties that do not affect the operation of the component.
propertyId
- The property identifier.value
- The value of the property.public void startEntity(java.lang.String name, XMLResourceIdentifier identifier, java.lang.String encoding) throws XNIException
name
- The name of the entity.identifier
- The resource identifier.encoding
- The auto-detected IANA encoding name of the entity
stream. This value will be null in those situations
where the entity encoding is not auto-detected (e.g.
internal entities or a document entity that is
parsed from a java.io.Reader).public void endEntity(java.lang.String name) throws XNIException
name
- The name of the entity.protected XMLDocumentFragmentScannerImpl.Dispatcher createContentDispatcher()
protected boolean scanDoctypeDecl() throws java.io.IOException, XNIException
protected java.lang.String getScannerStateName(int state)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |