public class

XML11DTDScannerImpl

extends XMLDTDScannerImpl
java.lang.Object
   ↳ org.apache.xerces.impl.XMLScanner
     ↳ org.apache.xerces.impl.XMLDTDScannerImpl
       ↳ org.apache.xerces.impl.XML11DTDScannerImpl

Class Overview

This class is responsible for scanning the declarations found in the internal and external subsets of a DTD in an XML document. The scanner acts as the sources for the DTD information which is communicated to the DTD handlers.

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

  • http://xml.org/sax/features/validation
  • http://apache.org/xml/features/scanner/notify-char-refs
  • http://apache.org/xml/properties/internal/symbol-table
  • http://apache.org/xml/properties/internal/error-reporter
  • http://apache.org/xml/properties/internal/entity-manager
@xerces.internal

Summary

[Expand]
Inherited Constants
From class org.apache.xerces.impl.XMLDTDScannerImpl
From class org.apache.xerces.impl.XMLScanner
[Expand]
Inherited Fields
From class org.apache.xerces.impl.XMLDTDScannerImpl
From class org.apache.xerces.impl.XMLScanner
Public Constructors
XML11DTDScannerImpl()
Default constructor.
XML11DTDScannerImpl(SymbolTable symbolTable, XMLErrorReporter errorReporter, XMLEntityManager entityManager)
Constructor for he use of non-XMLComponentManagers.
Protected Methods
String getVersionNotSupportedKey()
boolean isInvalid(int value)
boolean isInvalidLiteral(int value)
int isUnchangedByNormalization(XMLString value)
Checks whether this string would be unchanged by normalization.
boolean isValidNCName(int value)
boolean isValidNameChar(int value)
boolean isValidNameStartChar(int value)
boolean isValidNameStartHighSurrogate(int value)
void normalizeWhitespace(XMLString value, int fromIndex)
Normalize whitespace in an XMLString converting all whitespace characters to space characters.
void normalizeWhitespace(XMLString value)
Normalize whitespace in an XMLString converting all whitespace characters to space characters.
boolean scanPubidLiteral(XMLString literal)
Scans public ID literal.
boolean versionSupported(String version)
[Expand]
Inherited Methods
From class org.apache.xerces.impl.XMLDTDScannerImpl
From class org.apache.xerces.impl.XMLScanner
From class java.lang.Object
From interface org.apache.xerces.impl.XMLEntityHandler
From interface org.apache.xerces.xni.parser.XMLComponent
From interface org.apache.xerces.xni.parser.XMLDTDContentModelSource
From interface org.apache.xerces.xni.parser.XMLDTDScanner
From interface org.apache.xerces.xni.parser.XMLDTDSource

Public Constructors

public XML11DTDScannerImpl ()

Default constructor.

public XML11DTDScannerImpl (SymbolTable symbolTable, XMLErrorReporter errorReporter, XMLEntityManager entityManager)

Constructor for he use of non-XMLComponentManagers.

Protected Methods

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.

Returns
  • -1 if the value would be unchanged by normalization, otherwise the index of the first whitespace character which would be transformed.

protected boolean isValidNCName (int value)

protected boolean isValidNameChar (int value)

protected boolean isValidNameStartChar (int value)

protected boolean isValidNameStartHighSurrogate (int value)

protected void normalizeWhitespace (XMLString value, int fromIndex)

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

protected void normalizeWhitespace (XMLString value)

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

protected boolean scanPubidLiteral (XMLString literal)

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 The string to fill in with the public ID literal.
Returns
  • True on success. Note: This method uses fStringBuffer, anything in it at the time of calling is lost.

protected boolean versionSupported (String version)