APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl

public abstract Class XMLScanner

extends Object
implements XMLComponent
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xni.parser.XMLComponent
Known Direct Subclasses
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl, com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl
Imports
com.sun.org.apache.xerces.internal.util.Status, .SymbolTable, .XMLChar, .XMLResourceIdentifierImpl, .XMLStringBuffer, com.sun.xml.internal.stream.XMLEntityStorage, .Entity, java.io.IOException, java.util.ArrayList, javax.xml.stream.events.XMLEvent, com.sun.org.apache.xerces.internal.impl.msg.XMLMessageFormatter, com.sun.org.apache.xerces.internal.xni.Augmentations, .XMLAttributes, .XMLResourceIdentifier, .XMLString, .XNIException, com.sun.org.apache.xerces.internal.xni.parser.XMLComponent, .XMLComponentManager, .XMLConfigurationException, jdk.xml.internal.XMLLimitAnalyzer, .XMLSecurityManager

This class is responsible for holding scanning methods common to scanning the XML document structure and content as well as the DTD structure and content. Both XMLDocumentScanner and XMLDTDScanner inherit from this base class.

This component requires the following features and properties from the component manager that uses it:

Authors
Andy Clark, IBM, Arnaud Le Hors, IBM, Eric Ye, IBM, K.Venugopal SUN Microsystems, Sunitha Reddy, SUN Microsystems

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
XMLScanner.NameType

Type of names

Field Summary

Modifier and TypeField and Description
protected ArrayList<XMLString>
protected static final boolean
DEBUG_ATTR_NORMALIZATION

Debug attribute normalization.

protected static final String
ENTITY_MANAGER

Property identifier: entity manager.

protected static final String
ERROR_REPORTER

Property identifier: error reporter.

protected static final String
fAmpSymbol

Symbol: "amp".

protected static final String
fAposSymbol

Symbol: "apos".

protected boolean
protected int
protected String
fCharRefLiteral

Literal value of the last character reference scanned.

protected static final String
fEncodingSymbol

Symbol: "encoding".

protected int
fEntityDepth

Entity depth.

protected XMLEntityManager
fEntityManager

Entity manager.

protected XMLEntityScanner
fEntityScanner

Entity scanner, this always works on last entity that was opened.

protected XMLEntityStorage
fEntityStore

xxx this should be available from EntityManager Entity storage

protected XMLErrorReporter
fErrorReporter

Error reporter.

protected XMLEvent
fEvent

event type

protected static final String
fGtSymbol

Symbol: "gt".

protected XMLLimitAnalyzer
fLimitAnalyzer

Limit analyzer.

protected static final String
fLtSymbol

Symbol: "lt".

protected boolean
fNamespaces

Namespaces.

private boolean
protected boolean
fNotifyCharRefs

Character references notification.

protected boolean
fParserSettings

Internal parser-settings feature

protected PropertyManager
protected static final String
fQuotSymbol

Symbol: "quot".

protected boolean
fReportEntity

Report entity boundary.

protected XMLResourceIdentifierImpl
protected boolean
fScanningAttribute

Scanning attribute.

protected XMLSecurityManager
fSecurityManager

Security manager.

protected static final String
fStandaloneSymbol

Symbol: "standalone".

private XMLString
fString

String.

private XMLStringBuffer
fStringBuffer

String buffer.

private XMLStringBuffer
fStringBuffer2

String buffer.

private XMLStringBuffer
fStringBuffer3

String buffer.

protected int
protected SymbolTable
fSymbolTable

Symbol table.

protected boolean
fValidation

Validation.

protected static final String
fVersionSymbol

Symbol: "version".

pack-priv int
protected static final String
NAMESPACES

Feature identifier: namespaces.

protected static final String
NOTIFY_CHAR_REFS

Feature identifier: notify character references.

protected static final String
private static final String
SECURITY_MANAGER

Property identifier: Security manager.

protected ArrayList<XMLStringBuffer>
protected static final String
SYMBOL_TABLE

Property identifier: symbol table.

protected static final String
VALIDATION

Feature identifier: validation.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
checkEntityLimit(boolean
a flag to indicate whether the entity is parameter
isPEDecl
,
String
entity name
entityName
,
XMLString
content buffer
buffer
)

Add the count of the content buffer and check if the accumulated value exceeds the limit

pack-priv void
checkEntityLimit(boolean
a flag to indicate whether the entity is parameter
isPEDecl
,
String
entity name
entityName
,
int
length of the buffer
len
)

Add the count and check limit

public void
endEntity(String
The name of the entity.
name
,
Augmentations augs)

This method notifies the end of an entity.

public boolean
getFeature(String featureId)

pack-priv XMLStringBuffer
private void
init()

protected boolean
isInvalid(int value)

protected boolean
isInvalidLiteral(int value)

protected boolean
isValidNameChar(int value)

protected boolean
protected boolean
protected boolean
isValidNCName(int value)

protected void
normalizeWhitespace(XMLString value)

Normalize whitespace in an XMLString converting all whitespace characters to space characters.

protected void
reportFatalError(String msgId, Object[] args)

Convenience function used in all XML scanners.

public void
reset(XMLComponentManager
The component manager.
componentManager
)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLComponent.reset.

Resets the component.

protected void
public void
reset(PropertyManager propertyManager)

protected boolean

Returns:

true if resolved, false otherwise
resolveCharacter
(String
the name of the entity
entityName
,
XMLStringBuffer
the current XMLStringBuffer to append the character to.
stringBuffer
)

Resolves character entity references.

protected void
scanAttributeValue(XMLString
The XMLString to fill in with the value.
value
,
XMLString
The XMLString to fill in with the non-normalized value.
nonNormalizedValue
,
String
The name of the attribute being parsed (for error msgs).
atName
,
XMLAttributes
The attributes list for the scanned attribute.
attributes
,
int
The index of the attribute to use from the list.
attrIndex
,
boolean
true if undeclared entities should be reported as VC violation, false if undeclared entities should be reported as WFC violation.
checkEntities
,
String
The name of element to which this attribute belongs.
eleName
,
boolean
a flag indicating whether the content is a Namespace URI

Note

This method uses fStringBuffer2, anything in it at the time of calling is lost.

isNSURI
)

Scans an attribute value and normalizes whitespace converting all whitespace characters to space characters.

protected int

Returns:

the character value or (-1) on conversion failure
scanCharReferenceValue
(XMLStringBuffer
the character buffer to append chars to
buf
,
XMLStringBuffer
the character buffer to append non-normalized chars to
buf2
)

Scans a character reference and append the corresponding chars to the specified buffer.

protected void
scanComment(XMLStringBuffer
The buffer to fill in with the text.
text
)

Scans a comment.

protected void
scanExternalID(String[]
An array of size 2 to return the system id, and public id (in that order).
identifiers
,
boolean
Specifies whether the system id is optional

Note

This method uses fString and fStringBuffer, anything in them at the time of calling is lost.

optionalSystemId
)

Scans External ID and return the public and system IDs.

protected void
scanPI(XMLStringBuffer data)

Scans a processing instruction.

protected void
scanPIData(String
The PI target
target
,
XMLStringBuffer
The string to fill in with the data
data
)

Scans a processing data.

protected String

Returns:

The name of the attribute

Note

This method uses fStringBuffer2, anything in it at the time of calling is lost.

scanPseudoAttribute
(boolean
True if scanning this pseudo-attribute for a TextDecl; false if scanning XMLDecl. This flag is needed to report the correct type of error.
scanningTextDecl
,
XMLString
The string to fill in with the attribute value.
value
)

Scans a pseudo attribute.

private String

Returns:

the name of the pseudo attribute or null if a legal pseudo attribute name could not be scanned.
scanPseudoAttributeName
()

Scans the name of a pseudo attribute.

protected boolean

Returns:

True on success

Note

This method uses fStringBuffer, anything in it at the time of calling is lost.

scanPubidLiteral
(XMLString
The string to fill in with the public ID literal.
literal
)

Scans public ID literal.

protected boolean

Returns:

True if it succeeded.
scanSurrogates
(XMLStringBuffer
The StringBuffer to append the read surrogates to.
buf
)

Scans surrogates and append them to the specified buffer.

protected void
scanXMLDeclOrTextDecl(boolean
True if a text declaration is to be scanned instead of an XML declaration.
scanningTextDecl
,
String[]
An array of size 3 to return the version, encoding and standalone pseudo attribute values (in that order)

Note

This method uses fString, anything in it at the time of calling is lost.

pseudoAttributeValues
)

Scans an XML or text declaration.

public void
setFeature(String featureId, boolean value)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLComponent.setFeature.

Sets the state of a feature.

public void
setProperty(String propertyId, Object value)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLComponent.setProperty.

Sets the value of a property during parsing.

protected void
public void
startEntity(String
The name of the entity.
name
,
XMLResourceIdentifier
The resource identifier.
identifier
,
String
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).
encoding
,
Augmentations augs)

This method notifies of the start of an entity.

protected boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeValueCacheback to summary
protected ArrayList<XMLString> attributeValueCache
DEBUG_ATTR_NORMALIZATIONback to summary
protected static final boolean DEBUG_ATTR_NORMALIZATION

Debug attribute normalization.

ENTITY_MANAGERback to summary
protected static final String ENTITY_MANAGER

Property identifier: entity manager.

ERROR_REPORTERback to summary
protected static final String ERROR_REPORTER

Property identifier: error reporter.

fAmpSymbolback to summary
protected static final String fAmpSymbol

Symbol: "amp".

fAposSymbolback to summary
protected static final String fAposSymbol

Symbol: "apos".

fAttributeCacheInitDoneback to summary
protected boolean fAttributeCacheInitDone
fAttributeCacheUsedCountback to summary
protected int fAttributeCacheUsedCount
fCharRefLiteralback to summary
protected String fCharRefLiteral

Literal value of the last character reference scanned.

fEncodingSymbolback to summary
protected static final String fEncodingSymbol

Symbol: "encoding".

fEntityDepthback to summary
protected int fEntityDepth

Entity depth.

fEntityManagerback to summary
protected XMLEntityManager fEntityManager

Entity manager.

fEntityScannerback to summary
protected XMLEntityScanner fEntityScanner

Entity scanner, this always works on last entity that was opened.

fEntityStoreback to summary
protected XMLEntityStorage fEntityStore

xxx this should be available from EntityManager Entity storage

fErrorReporterback to summary
protected XMLErrorReporter fErrorReporter

Error reporter.

fEventback to summary
protected XMLEvent fEvent

event type

fGtSymbolback to summary
protected static final String fGtSymbol

Symbol: "gt".

fLimitAnalyzerback to summary
protected XMLLimitAnalyzer fLimitAnalyzer

Limit analyzer.

fLtSymbolback to summary
protected static final String fLtSymbol

Symbol: "lt".

fNamespacesback to summary
protected boolean fNamespaces

Namespaces.

fNeedNonNormalizedValueback to summary
private boolean fNeedNonNormalizedValue
fNotifyCharRefsback to summary
protected boolean fNotifyCharRefs

Character references notification.

fParserSettingsback to summary
protected boolean fParserSettings

Internal parser-settings feature

fPropertyManagerback to summary
protected PropertyManager fPropertyManager
fQuotSymbolback to summary
protected static final String fQuotSymbol

Symbol: "quot".

fReportEntityback to summary
protected boolean fReportEntity

Report entity boundary.

fResourceIdentifierback to summary
protected XMLResourceIdentifierImpl fResourceIdentifier
fScanningAttributeback to summary
protected boolean fScanningAttribute

Scanning attribute.

fSecurityManagerback to summary
protected XMLSecurityManager fSecurityManager

Security manager.

fStandaloneSymbolback to summary
protected static final String fStandaloneSymbol

Symbol: "standalone".

fStringback to summary
private XMLString fString

String.

fStringBufferback to summary
private XMLStringBuffer fStringBuffer

String buffer.

fStringBuffer2back to summary
private XMLStringBuffer fStringBuffer2

String buffer.

fStringBuffer3back to summary
private XMLStringBuffer fStringBuffer3

String buffer.

fStringBufferIndexback to summary
protected int fStringBufferIndex
fSymbolTableback to summary
protected SymbolTable fSymbolTable

Symbol table.

fValidationback to summary
protected boolean fValidation

Validation. This feature identifier is: http://xml.org/sax/features/validation

fVersionSymbolback to summary
protected static final String fVersionSymbol

Symbol: "version".

initialCacheCountback to summary
pack-priv int initialCacheCount
NAMESPACESback to summary
protected static final String NAMESPACES

Feature identifier: namespaces.

NOTIFY_CHAR_REFSback to summary
protected static final String NOTIFY_CHAR_REFS

Feature identifier: notify character references.

PARSER_SETTINGSback to summary
protected static final String PARSER_SETTINGS
SECURITY_MANAGERback to summary
private static final String SECURITY_MANAGER

Property identifier: Security manager.

stringBufferCacheback to summary
protected ArrayList<XMLStringBuffer> stringBufferCache
SYMBOL_TABLEback to summary
protected static final String SYMBOL_TABLE

Property identifier: symbol table.

VALIDATIONback to summary
protected static final String VALIDATION

Feature identifier: validation.

Constructor Detail

XMLScannerback to summary
public XMLScanner()

Method Detail

checkEntityLimitback to summary
pack-priv void checkEntityLimit(boolean isPEDecl, String entityName, XMLString buffer)

Add the count of the content buffer and check if the accumulated value exceeds the limit

Parameters
isPEDecl:boolean

a flag to indicate whether the entity is parameter

entityName:String

entity name

buffer:XMLString

content buffer

checkEntityLimitback to summary
pack-priv void checkEntityLimit(boolean isPEDecl, String entityName, int len)

Add the count and check limit

Parameters
isPEDecl:boolean

a flag to indicate whether the entity is parameter

entityName:String

entity name

len:int

length of the buffer

endEntityback to summary
public void endEntity(String name, Augmentations augs) throws IOException, XNIException

This method notifies the end of an entity. The document entity has the pseudo-name of "[xml]" the DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entities are just specified by their name.

Parameters
name:String

The name of the entity.

Exceptions
XNIException:
Thrown by handler to signal an error.
getFeatureback to summary
public boolean getFeature(String featureId) throws XMLConfigurationException
getStringBufferback to summary
pack-priv XMLStringBuffer getStringBuffer()
initback to summary
private void init()
isInvalidback to summary
protected boolean isInvalid(int value)
isInvalidLiteralback to summary
protected boolean isInvalidLiteral(int value)
isValidNameCharback to summary
protected boolean isValidNameChar(int value)
isValidNameStartCharback to summary
protected boolean isValidNameStartChar(int value)
isValidNameStartHighSurrogateback to summary
protected boolean isValidNameStartHighSurrogate(int value)
isValidNCNameback to summary
protected boolean isValidNCName(int value)
normalizeWhitespaceback to summary
protected void normalizeWhitespace(XMLString value)

Normalize whitespace in an XMLString converting all whitespace characters to space characters.

reportFatalErrorback to summary
protected void reportFatalError(String msgId, Object[] args) throws XNIException

Convenience function used in all XML scanners.

resetback to summary
public void reset(XMLComponentManager componentManager) throws XMLConfigurationException

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLComponent.reset.

Doc from com.sun.org.apache.xerces.internal.xni.parser.XMLComponent.reset.

Resets the component. The component can query the component manager about any features and properties that affect the operation of the component.

Parameters
componentManager:XMLComponentManager

The component manager.

Exceptions
SAXException:
Throws exception if required features and properties cannot be found.
resetback to summary
protected void reset()
resetback to summary
public void reset(PropertyManager propertyManager)
resolveCharacterback to summary
protected boolean resolveCharacter(String entityName, XMLStringBuffer stringBuffer)

Resolves character entity references.

Parameters
entityName:String

the name of the entity

stringBuffer:XMLStringBuffer

the current XMLStringBuffer to append the character to.

Returns:boolean

true if resolved, false otherwise

scanAttributeValueback to summary
protected void scanAttributeValue(XMLString value, XMLString nonNormalizedValue, String atName, XMLAttributes attributes, int attrIndex, boolean checkEntities, String eleName, boolean isNSURI) throws IOException, XNIException

Scans an attribute value and normalizes whitespace converting all whitespace characters to space characters. [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'"

Parameters
value:XMLString

The XMLString to fill in with the value.

nonNormalizedValue:XMLString

The XMLString to fill in with the non-normalized value.

atName:String

The name of the attribute being parsed (for error msgs).

attributes:XMLAttributes

The attributes list for the scanned attribute.

attrIndex:int

The index of the attribute to use from the list.

checkEntities:boolean

true if undeclared entities should be reported as VC violation, false if undeclared entities should be reported as WFC violation.

eleName:String

The name of element to which this attribute belongs.

isNSURI:boolean

a flag indicating whether the content is a Namespace URI

Note

This method uses fStringBuffer2, anything in it at the time of calling is lost.

scanCharReferenceValueback to summary
protected int scanCharReferenceValue(XMLStringBuffer buf, XMLStringBuffer buf2) throws IOException, XNIException

Scans a character reference and append the corresponding chars to the specified buffer.

[66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'

Note

This method uses fStringBuffer, anything in it at the time of calling is lost.

Parameters
buf:XMLStringBuffer

the character buffer to append chars to

buf2:XMLStringBuffer

the character buffer to append non-normalized chars to

Returns:int

the character value or (-1) on conversion failure

scanCommentback to summary
protected void scanComment(XMLStringBuffer text) throws IOException, XNIException

Scans a comment.

[15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'

Note

Called after scanning past '<!--'

Note

This method uses fString, anything in it at the time of calling is lost.

Parameters
text:XMLStringBuffer

The buffer to fill in with the text.

scanExternalIDback to summary
protected void scanExternalID(String[] identifiers, boolean optionalSystemId) throws IOException, XNIException

Scans External ID and return the public and system IDs.

Parameters
identifiers:String[]

An array of size 2 to return the system id, and public id (in that order).

optionalSystemId:boolean

Specifies whether the system id is optional

Note

This method uses fString and fStringBuffer, anything in them at the time of calling is lost.

scanPIback to summary
protected void scanPI(XMLStringBuffer data) throws IOException, XNIException

Scans a processing instruction.

[16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'
[17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))
scanPIDataback to summary
protected void scanPIData(String target, XMLStringBuffer data) throws IOException, XNIException

Scans a processing data. This is needed to handle the situation where a document starts with a processing instruction whose target name starts with "xml". (e.g. xmlfoo) This method would always read the whole data. We have while loop and data is buffered until delimeter is encountered.

Parameters
target:String

The PI target

data:XMLStringBuffer

The string to fill in with the data

scanPseudoAttributeback to summary
protected String scanPseudoAttribute(boolean scanningTextDecl, XMLString value) throws IOException, XNIException

Scans a pseudo attribute.

Parameters
scanningTextDecl:boolean

True if scanning this pseudo-attribute for a TextDecl; false if scanning XMLDecl. This flag is needed to report the correct type of error.

value:XMLString

The string to fill in with the attribute value.

Returns:String

The name of the attribute

Note

This method uses fStringBuffer2, anything in it at the time of calling is lost.

scanPseudoAttributeNameback to summary
private String scanPseudoAttributeName() throws IOException, XNIException

Scans the name of a pseudo attribute. The only legal names in XML 1.0/1.1 documents are 'version', 'encoding' and 'standalone'.

Returns:String

the name of the pseudo attribute or null if a legal pseudo attribute name could not be scanned.

scanPubidLiteralback to summary
protected boolean scanPubidLiteral(XMLString literal) throws IOException, XNIException

Scans public ID literal. [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'" [13] PubidChar::= #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%] The returned string is normalized according to the following rule, from http://www.w3.org/TR/REC-xml#dt-pubid: Before a match is attempted, all strings of white space in the public identifier must be normalized to single space characters (#x20), and leading and trailing white space must be removed.

Parameters
literal:XMLString

The string to fill in with the public ID literal.

Returns:boolean

True on success

Note

This method uses fStringBuffer, anything in it at the time of calling is lost.

scanSurrogatesback to summary
protected boolean scanSurrogates(XMLStringBuffer buf) throws IOException, XNIException

Scans surrogates and append them to the specified buffer.

Note

This assumes the current char has already been identified as a high surrogate.

Parameters
buf:XMLStringBuffer

The StringBuffer to append the read surrogates to.

Returns:boolean

True if it succeeded.

scanXMLDeclOrTextDeclback to summary
protected void scanXMLDeclOrTextDecl(boolean scanningTextDecl, String[] pseudoAttributeValues) throws IOException, XNIException

Scans an XML or text declaration.

[23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'
[24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ")
[80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' |  "'" EncName "'" )
[81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*
[32] SDDecl ::= S 'standalone' Eq (("'" ('yes' | 'no') "'")
                | ('"' ('yes' | 'no') '"'))

[77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>'
Parameters
scanningTextDecl:boolean

True if a text declaration is to be scanned instead of an XML declaration.

pseudoAttributeValues:String[]

An array of size 3 to return the version, encoding and standalone pseudo attribute values (in that order)

Note

This method uses fString, anything in it at the time of calling is lost.

setFeatureback to summary
public void setFeature(String featureId, boolean value) throws XMLConfigurationException

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLComponent.setFeature.

Doc from com.sun.org.apache.xerces.internal.xni.parser.XMLComponent.setFeature.

Sets the state of a feature. This method is called by the component manager any time after reset when a feature changes state.

Note

Components should silently ignore features that do not affect the operation of the component.

Exceptions
XMLConfigurationException:
Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
setPropertyback to summary
public void setProperty(String propertyId, Object value) throws XMLConfigurationException

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLComponent.setProperty.

Sets the value of a property during parsing.

Exceptions
XMLConfigurationException:

Doc from com.sun.org.apache.xerces.internal.xni.parser.XMLComponent.setProperty.

Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.

setPropertyManagerback to summary
protected void setPropertyManager(PropertyManager propertyManager)
startEntityback to summary
public void startEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException

This method notifies of the start of an entity. The document entity has the pseudo-name of "[xml]" the DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entities are just specified by their name.

Parameters
name:String

The name of the entity.

identifier:XMLResourceIdentifier

The resource identifier.

encoding:String

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).

Exceptions
XNIException:
Thrown by handler to signal an error.
versionSupportedback to summary
protected boolean versionSupported(String version)
com.sun.org.apache.xerces.internal.impl back to summary

public final Enum XMLScanner.NameType

extends Enum<XMLScanner.NameType>
Class Inheritance

Type of names

Field Summary

Modifier and TypeField and Description
public static final XMLScanner.NameType
public static final XMLScanner.NameType
public static final XMLScanner.NameType
public static final XMLScanner.NameType
public static final XMLScanner.NameType
public static final XMLScanner.NameType
public static final XMLScanner.NameType
pack-priv final String
public static final XMLScanner.NameType
public static final XMLScanner.NameType
public static final XMLScanner.NameType

Constructor Summary

AccessConstructor and Description
private
NameType(String literal)

Method Summary

Modifier and TypeMethod and Description
pack-priv String
public static XMLScanner.NameType
public static XMLScanner.NameType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ATTRIBUTEback to summary
public static final XMLScanner.NameType ATTRIBUTE
ATTRIBUTENAMEback to summary
public static final XMLScanner.NameType ATTRIBUTENAME
COMMENTback to summary
public static final XMLScanner.NameType COMMENT
DOCTYPEback to summary
public static final XMLScanner.NameType DOCTYPE
ELEMENTENDback to summary
public static final XMLScanner.NameType ELEMENTEND
ELEMENTSTARTback to summary
public static final XMLScanner.NameType ELEMENTSTART
ENTITYback to summary
public static final XMLScanner.NameType ENTITY
literalback to summary
pack-priv final String literal
NOTATIONback to summary
public static final XMLScanner.NameType NOTATION
PIback to summary
public static final XMLScanner.NameType PI
REFERENCEback to summary
public static final XMLScanner.NameType REFERENCE

Constructor Detail

NameTypeback to summary
private NameType(String literal)

Method Detail

literalback to summary
pack-priv String literal()
valueOfback to summary
public static XMLScanner.NameType valueOf(String name)
valuesback to summary
public static XMLScanner.NameType[] values()