org.cyberneko.dtd
Class DTDConfiguration

java.lang.Object
  extended byorg.apache.xerces.util.ParserConfigurationSettings
      extended byorg.cyberneko.dtd.DTDConfiguration
All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLComponentManager, org.apache.xerces.xni.XMLDTDContentModelHandler, org.apache.xerces.xni.XMLDTDHandler, org.apache.xerces.xni.parser.XMLParserConfiguration

public class DTDConfiguration
extends org.apache.xerces.util.ParserConfigurationSettings
implements org.apache.xerces.xni.parser.XMLParserConfiguration, org.apache.xerces.xni.XMLDTDHandler, org.apache.xerces.xni.XMLDTDContentModelHandler

An XNI-based parser configuration that can be used to parse DTD documents to generate an XML representation of the DTD. This configuration can be used directly in order to parse DTD documents or can be used in conjunction with any XNI based tools, such as the Xerces2 implementation.

For complete usage information, refer to the documentation.

Version:
$Id: DTDConfiguration.java,v 1.9 2004/06/30 19:00:28 andyc Exp $
Author:
Andy Clark

Field Summary
static org.apache.xerces.xni.QName A_ANAME
           
static org.apache.xerces.xni.QName A_ATYPE
           
static org.apache.xerces.xni.QName A_DATA
           
static org.apache.xerces.xni.QName A_DEFAULT
           
static org.apache.xerces.xni.QName A_ENAME
           
static org.apache.xerces.xni.QName A_ENCODING
           
static org.apache.xerces.xni.QName A_FIXED
           
static org.apache.xerces.xni.QName A_MODEL
           
static org.apache.xerces.xni.QName A_NAME
           
static org.apache.xerces.xni.QName A_NOTATION
           
static org.apache.xerces.xni.QName A_PUBID
           
static org.apache.xerces.xni.QName A_REQUIRED
           
static org.apache.xerces.xni.QName A_SYSID
           
static org.apache.xerces.xni.QName A_TARGET
           
static org.apache.xerces.xni.QName A_TYPE
           
static org.apache.xerces.xni.QName A_VALUE
           
static org.apache.xerces.xni.QName A_VERSION
           
static org.apache.xerces.xni.QName E_ANY
           
static org.apache.xerces.xni.QName E_ATTLIST
           
static org.apache.xerces.xni.QName E_ATTRIBUTE_DECL
           
static org.apache.xerces.xni.QName E_COMMENT
           
static org.apache.xerces.xni.QName E_CONDITIONAL
           
static org.apache.xerces.xni.QName E_CONTENT_MODEL
           
static org.apache.xerces.xni.QName E_DTD
           
static org.apache.xerces.xni.QName E_ELEMENT
           
static org.apache.xerces.xni.QName E_ELEMENT_DECL
           
static org.apache.xerces.xni.QName E_EMPTY
           
static org.apache.xerces.xni.QName E_ENUMERATION
           
static org.apache.xerces.xni.QName E_EXTERNAL_ENTITY_DECL
           
static org.apache.xerces.xni.QName E_EXTERNAL_SUBSET
           
static org.apache.xerces.xni.QName E_GROUP
           
static org.apache.xerces.xni.QName E_IGNORED_CHARACTERS
           
static org.apache.xerces.xni.QName E_INTERNAL_ENTITY_DECL
           
static org.apache.xerces.xni.QName E_NOTATION_DECL
           
static org.apache.xerces.xni.QName E_OCCURRENCE
           
static org.apache.xerces.xni.QName E_PARAMETER_ENTITY
           
static org.apache.xerces.xni.QName E_PCDATA
           
static org.apache.xerces.xni.QName E_PROCESSING_INSTRUCTION
           
static org.apache.xerces.xni.QName E_SEPARATOR
           
static org.apache.xerces.xni.QName E_TEXT_DECL
           
static org.apache.xerces.xni.QName E_UNPARSED_ENTITY_DECL
           
protected static java.lang.String ENTITY_RESOLVER
          Entity resolver ("http://apache.org/xml/properties/internal/entity-resolver").
protected  org.apache.xerces.xni.XMLDocumentHandler fDocumentHandler
          Registered document handler.
protected  org.apache.xerces.xni.parser.XMLDTDContentModelSource fDTDContentModelSource
          DTD content model source.
protected  org.apache.xerces.xni.parser.XMLDTDSource fDTDSource
          DTD source.
protected  org.apache.xerces.impl.XMLEntityManager fEntityManager
          Entity manager.
protected  org.apache.xerces.xni.parser.XMLEntityResolver fEntityResolver
          Registered entity resolver.
protected  org.apache.xerces.xni.parser.XMLErrorHandler fErrorHandler
          Registered error handler.
protected  org.apache.xerces.impl.XMLErrorReporter fErrorReporter
          Error reporter.
protected  org.apache.xerces.impl.XMLDTDScannerImpl fScanner
          DTD scanner.
protected  org.apache.xerces.util.SymbolTable fSymbolTable
          Symbol table.
protected static java.lang.String LOCALE
          Locale property identifier ("http://apache.org/xml/properties/locale").
static java.lang.String T_BOOLEAN
           
static java.lang.String T_CONDITIONAL
           
protected static boolean XERCES_2_0_0
          Parser version is Xerces 2.0.0.
protected static boolean XERCES_2_0_1
          Parser version is Xerces 2.0.1.
protected static boolean XML4J_4_0_x
          Parser version is XML4J 4.0.x.
 
Fields inherited from class org.apache.xerces.util.ParserConfigurationSettings
fFeatures, fParentSettings, fProperties, fRecognizedFeatures, fRecognizedProperties, PARSER_SETTINGS
 
Fields inherited from interface org.apache.xerces.xni.XMLDTDHandler
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE
 
Fields inherited from interface org.apache.xerces.xni.XMLDTDContentModelHandler
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE
 
Constructor Summary
DTDConfiguration()
          Default constructor.
 
Method Summary
 void any(org.apache.xerces.xni.Augmentations augs)
          Any content model.
 void attributeDecl(java.lang.String ename, java.lang.String aname, java.lang.String atype, java.lang.String[] enum, java.lang.String dtype, org.apache.xerces.xni.XMLString dvalue, org.apache.xerces.xni.XMLString nondvalue, org.apache.xerces.xni.Augmentations augs)
          Attribute declaration.
 void comment(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs)
          Comment.
 void element(java.lang.String name, org.apache.xerces.xni.Augmentations augs)
          Element reference in mixed or children content model.
 void elementDecl(java.lang.String ename, java.lang.String model, org.apache.xerces.xni.Augmentations augs)
          Element declaration.
 void empty(org.apache.xerces.xni.Augmentations augs)
          Empty content model.
 void endAttlist(org.apache.xerces.xni.Augmentations augs)
          End attribute list.
 void endConditional(org.apache.xerces.xni.Augmentations augs)
          End conditional section.
 void endContentModel(org.apache.xerces.xni.Augmentations augs)
          End content model.
 void endDTD(org.apache.xerces.xni.Augmentations augs)
          End DTD.
 void endExternalSubset(org.apache.xerces.xni.Augmentations augs)
          End external subset.
 void endGroup(org.apache.xerces.xni.Augmentations augs)
          End mixed or children content model group.
 void endParameterEntity(java.lang.String name, org.apache.xerces.xni.Augmentations augs)
          End parameter entity.
 void externalEntityDecl(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier id, org.apache.xerces.xni.Augmentations augs)
          External entity declaration.
 org.apache.xerces.xni.XMLDocumentHandler getDocumentHandler()
          Returns the document handler.
 org.apache.xerces.xni.XMLDTDContentModelHandler getDTDContentModelHandler()
          Returns the DTD content model handler.
 org.apache.xerces.xni.parser.XMLDTDContentModelSource getDTDContentModelSource()
          Returns the DTD content model source.
 org.apache.xerces.xni.XMLDTDHandler getDTDHandler()
          Returns the DTD handler.
 org.apache.xerces.xni.parser.XMLDTDSource getDTDSource()
          Returns the DTD source.
 org.apache.xerces.xni.parser.XMLEntityResolver getEntityResolver()
          Returns the entity resolver.
 org.apache.xerces.xni.parser.XMLErrorHandler getErrorHandler()
          Returns the error handler.
 java.util.Locale getLocale()
          Returns the locale.
 void ignoredCharacters(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs)
          Ignored characters.
 void internalEntityDecl(java.lang.String name, org.apache.xerces.xni.XMLString value, org.apache.xerces.xni.XMLString nonvalue, org.apache.xerces.xni.Augmentations augs)
          Internal entity declaration.
 void notationDecl(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier id, org.apache.xerces.xni.Augmentations augs)
          Notation declaration.
 void occurrence(short type, org.apache.xerces.xni.Augmentations augs)
          Occurrence count in mixed or children content model.
 void parse(org.apache.xerces.xni.parser.XMLInputSource source)
          Parses the DTD file specified by the given input source.
 void pcdata(org.apache.xerces.xni.Augmentations augs)
          Parsed character data for mixed content model.
 void processingInstruction(java.lang.String target, org.apache.xerces.xni.XMLString data, org.apache.xerces.xni.Augmentations augs)
          Processing instruction.
 void separator(short type, org.apache.xerces.xni.Augmentations augs)
          Separator in mixed or children content model.
 void setDocumentHandler(org.apache.xerces.xni.XMLDocumentHandler handler)
          Sets the document handler.
 void setDTDContentModelHandler(org.apache.xerces.xni.XMLDTDContentModelHandler handler)
          Sets the DTD content model handler.
 void setDTDContentModelSource(org.apache.xerces.xni.parser.XMLDTDContentModelSource source)
          Sets the DTD content model source.
 void setDTDHandler(org.apache.xerces.xni.XMLDTDHandler handler)
          Sets the DTD handler.
 void setDTDSource(org.apache.xerces.xni.parser.XMLDTDSource source)
          Sets the DTD source.
 void setEntityResolver(org.apache.xerces.xni.parser.XMLEntityResolver resolver)
          Sets the entity resolver.
 void setErrorHandler(org.apache.xerces.xni.parser.XMLErrorHandler handler)
          Sets the error handler.
 void setLocale(java.util.Locale locale)
          Sets the locale.
 void startAttlist(java.lang.String ename, org.apache.xerces.xni.Augmentations augs)
          Start attribute list.
 void startConditional(short type, org.apache.xerces.xni.Augmentations augs)
          Start conditional section.
 void startContentModel(java.lang.String ename, org.apache.xerces.xni.Augmentations augs)
          Start content model.
 void startDTD(org.apache.xerces.xni.XMLLocator locator, org.apache.xerces.xni.Augmentations augs)
          Start DTD.
 void startExternalSubset(org.apache.xerces.xni.Augmentations augs)
          Start external subset.
 void startExternalSubset(org.apache.xerces.xni.XMLResourceIdentifier id, org.apache.xerces.xni.Augmentations augs)
          Start external subset.
 void startGroup(org.apache.xerces.xni.Augmentations augs)
          Start mixed or children content model group.
 void startParameterEntity(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier id, java.lang.String encoding, org.apache.xerces.xni.Augmentations augs)
          Start parameter entity.
 void textDecl(java.lang.String version, java.lang.String encoding, org.apache.xerces.xni.Augmentations augs)
          Text declaration.
 void unparsedEntityDecl(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier id, java.lang.String notation, org.apache.xerces.xni.Augmentations augs)
          Unparsed entity declaration.
 
Methods inherited from class org.apache.xerces.util.ParserConfigurationSettings
addRecognizedFeatures, addRecognizedProperties, checkFeature, checkProperty, getFeature, getProperty, setFeature, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.xerces.xni.parser.XMLParserConfiguration
addRecognizedFeatures, addRecognizedProperties, getFeature, getProperty, setFeature, setProperty
 

Field Detail

ENTITY_RESOLVER

protected static final java.lang.String ENTITY_RESOLVER
Entity resolver ("http://apache.org/xml/properties/internal/entity-resolver").

See Also:
Constant Field Values

LOCALE

protected static final java.lang.String LOCALE
Locale property identifier ("http://apache.org/xml/properties/locale").

See Also:
Constant Field Values

E_DTD

public static final org.apache.xerces.xni.QName E_DTD

E_EXTERNAL_SUBSET

public static final org.apache.xerces.xni.QName E_EXTERNAL_SUBSET

E_PARAMETER_ENTITY

public static final org.apache.xerces.xni.QName E_PARAMETER_ENTITY

E_TEXT_DECL

public static final org.apache.xerces.xni.QName E_TEXT_DECL

E_ELEMENT_DECL

public static final org.apache.xerces.xni.QName E_ELEMENT_DECL

E_ATTLIST

public static final org.apache.xerces.xni.QName E_ATTLIST

E_ATTRIBUTE_DECL

public static final org.apache.xerces.xni.QName E_ATTRIBUTE_DECL

E_ENUMERATION

public static final org.apache.xerces.xni.QName E_ENUMERATION

E_INTERNAL_ENTITY_DECL

public static final org.apache.xerces.xni.QName E_INTERNAL_ENTITY_DECL

E_EXTERNAL_ENTITY_DECL

public static final org.apache.xerces.xni.QName E_EXTERNAL_ENTITY_DECL

E_UNPARSED_ENTITY_DECL

public static final org.apache.xerces.xni.QName E_UNPARSED_ENTITY_DECL

E_NOTATION_DECL

public static final org.apache.xerces.xni.QName E_NOTATION_DECL

E_CONDITIONAL

public static final org.apache.xerces.xni.QName E_CONDITIONAL

E_CONTENT_MODEL

public static final org.apache.xerces.xni.QName E_CONTENT_MODEL

E_ANY

public static final org.apache.xerces.xni.QName E_ANY

E_EMPTY

public static final org.apache.xerces.xni.QName E_EMPTY

E_GROUP

public static final org.apache.xerces.xni.QName E_GROUP

E_PCDATA

public static final org.apache.xerces.xni.QName E_PCDATA

E_ELEMENT

public static final org.apache.xerces.xni.QName E_ELEMENT

E_SEPARATOR

public static final org.apache.xerces.xni.QName E_SEPARATOR

E_OCCURRENCE

public static final org.apache.xerces.xni.QName E_OCCURRENCE

E_COMMENT

public static final org.apache.xerces.xni.QName E_COMMENT

E_PROCESSING_INSTRUCTION

public static final org.apache.xerces.xni.QName E_PROCESSING_INSTRUCTION

E_IGNORED_CHARACTERS

public static final org.apache.xerces.xni.QName E_IGNORED_CHARACTERS

A_SYSID

public static final org.apache.xerces.xni.QName A_SYSID

A_VERSION

public static final org.apache.xerces.xni.QName A_VERSION

A_ENCODING

public static final org.apache.xerces.xni.QName A_ENCODING

A_ENAME

public static final org.apache.xerces.xni.QName A_ENAME

A_MODEL

public static final org.apache.xerces.xni.QName A_MODEL

A_ANAME

public static final org.apache.xerces.xni.QName A_ANAME

A_ATYPE

public static final org.apache.xerces.xni.QName A_ATYPE

A_VALUE

public static final org.apache.xerces.xni.QName A_VALUE

A_REQUIRED

public static final org.apache.xerces.xni.QName A_REQUIRED

A_FIXED

public static final org.apache.xerces.xni.QName A_FIXED

A_DEFAULT

public static final org.apache.xerces.xni.QName A_DEFAULT

A_NAME

public static final org.apache.xerces.xni.QName A_NAME

A_PUBID

public static final org.apache.xerces.xni.QName A_PUBID

A_NOTATION

public static final org.apache.xerces.xni.QName A_NOTATION

A_TYPE

public static final org.apache.xerces.xni.QName A_TYPE

A_DATA

public static final org.apache.xerces.xni.QName A_DATA

A_TARGET

public static final org.apache.xerces.xni.QName A_TARGET

T_BOOLEAN

public static final java.lang.String T_BOOLEAN
See Also:
Constant Field Values

T_CONDITIONAL

public static final java.lang.String T_CONDITIONAL
See Also:
Constant Field Values

XERCES_2_0_0

protected static boolean XERCES_2_0_0
Parser version is Xerces 2.0.0.


XERCES_2_0_1

protected static boolean XERCES_2_0_1
Parser version is Xerces 2.0.1.


XML4J_4_0_x

protected static boolean XML4J_4_0_x
Parser version is XML4J 4.0.x.


fDocumentHandler

protected org.apache.xerces.xni.XMLDocumentHandler fDocumentHandler
Registered document handler.


fErrorHandler

protected org.apache.xerces.xni.parser.XMLErrorHandler fErrorHandler
Registered error handler.


fEntityResolver

protected org.apache.xerces.xni.parser.XMLEntityResolver fEntityResolver
Registered entity resolver.


fDTDSource

protected org.apache.xerces.xni.parser.XMLDTDSource fDTDSource
DTD source.


fDTDContentModelSource

protected org.apache.xerces.xni.parser.XMLDTDContentModelSource fDTDContentModelSource
DTD content model source.


fSymbolTable

protected org.apache.xerces.util.SymbolTable fSymbolTable
Symbol table.


fScanner

protected org.apache.xerces.impl.XMLDTDScannerImpl fScanner
DTD scanner.


fEntityManager

protected org.apache.xerces.impl.XMLEntityManager fEntityManager
Entity manager.


fErrorReporter

protected org.apache.xerces.impl.XMLErrorReporter fErrorReporter
Error reporter.

Constructor Detail

DTDConfiguration

public DTDConfiguration()
Default constructor.

Method Detail

setErrorHandler

public void setErrorHandler(org.apache.xerces.xni.parser.XMLErrorHandler handler)
Sets the error handler.

Specified by:
setErrorHandler in interface org.apache.xerces.xni.parser.XMLParserConfiguration

getErrorHandler

public org.apache.xerces.xni.parser.XMLErrorHandler getErrorHandler()
Returns the error handler.

Specified by:
getErrorHandler in interface org.apache.xerces.xni.parser.XMLParserConfiguration

setEntityResolver

public void setEntityResolver(org.apache.xerces.xni.parser.XMLEntityResolver resolver)
Sets the entity resolver.

Specified by:
setEntityResolver in interface org.apache.xerces.xni.parser.XMLParserConfiguration

getEntityResolver

public org.apache.xerces.xni.parser.XMLEntityResolver getEntityResolver()
Returns the entity resolver.

Specified by:
getEntityResolver in interface org.apache.xerces.xni.parser.XMLParserConfiguration

setDocumentHandler

public void setDocumentHandler(org.apache.xerces.xni.XMLDocumentHandler handler)
Sets the document handler.

Specified by:
setDocumentHandler in interface org.apache.xerces.xni.parser.XMLParserConfiguration

getDocumentHandler

public org.apache.xerces.xni.XMLDocumentHandler getDocumentHandler()
Returns the document handler.

Specified by:
getDocumentHandler in interface org.apache.xerces.xni.parser.XMLParserConfiguration

setDTDHandler

public void setDTDHandler(org.apache.xerces.xni.XMLDTDHandler handler)
Sets the DTD handler.

Specified by:
setDTDHandler in interface org.apache.xerces.xni.parser.XMLParserConfiguration

getDTDHandler

public org.apache.xerces.xni.XMLDTDHandler getDTDHandler()
Returns the DTD handler.

Specified by:
getDTDHandler in interface org.apache.xerces.xni.parser.XMLParserConfiguration

setDTDContentModelHandler

public void setDTDContentModelHandler(org.apache.xerces.xni.XMLDTDContentModelHandler handler)
Sets the DTD content model handler.

Specified by:
setDTDContentModelHandler in interface org.apache.xerces.xni.parser.XMLParserConfiguration

getDTDContentModelHandler

public org.apache.xerces.xni.XMLDTDContentModelHandler getDTDContentModelHandler()
Returns the DTD content model handler.

Specified by:
getDTDContentModelHandler in interface org.apache.xerces.xni.parser.XMLParserConfiguration

setLocale

public void setLocale(java.util.Locale locale)
Sets the locale.

Specified by:
setLocale in interface org.apache.xerces.xni.parser.XMLParserConfiguration

getLocale

public java.util.Locale getLocale()
Returns the locale.

Specified by:
getLocale in interface org.apache.xerces.xni.parser.XMLParserConfiguration

parse

public void parse(org.apache.xerces.xni.parser.XMLInputSource source)
           throws org.apache.xerces.xni.XNIException,
                  java.io.IOException
Parses the DTD file specified by the given input source.

Specified by:
parse in interface org.apache.xerces.xni.parser.XMLParserConfiguration
Throws:
org.apache.xerces.xni.XNIException
java.io.IOException

setDTDSource

public void setDTDSource(org.apache.xerces.xni.parser.XMLDTDSource source)
Sets the DTD source.

Specified by:
setDTDSource in interface org.apache.xerces.xni.XMLDTDHandler

getDTDSource

public org.apache.xerces.xni.parser.XMLDTDSource getDTDSource()
Returns the DTD source.

Specified by:
getDTDSource in interface org.apache.xerces.xni.XMLDTDHandler

startDTD

public void startDTD(org.apache.xerces.xni.XMLLocator locator,
                     org.apache.xerces.xni.Augmentations augs)
              throws org.apache.xerces.xni.XNIException
Start DTD.

Specified by:
startDTD in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

startExternalSubset

public void startExternalSubset(org.apache.xerces.xni.Augmentations augs)
                         throws org.apache.xerces.xni.XNIException
Start external subset.

Note: This method is added for API compatibility with Xerces 2.0.0 and 2.0.1.

Throws:
org.apache.xerces.xni.XNIException

startExternalSubset

public void startExternalSubset(org.apache.xerces.xni.XMLResourceIdentifier id,
                                org.apache.xerces.xni.Augmentations augs)
                         throws org.apache.xerces.xni.XNIException
Start external subset.

Note: This method is added or API compatibility with Xerces versions higher than 2.0.1

Specified by:
startExternalSubset in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

endExternalSubset

public void endExternalSubset(org.apache.xerces.xni.Augmentations augs)
                       throws org.apache.xerces.xni.XNIException
End external subset.

Specified by:
endExternalSubset in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

endDTD

public void endDTD(org.apache.xerces.xni.Augmentations augs)
            throws org.apache.xerces.xni.XNIException
End DTD.

Specified by:
endDTD in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

comment

public void comment(org.apache.xerces.xni.XMLString text,
                    org.apache.xerces.xni.Augmentations augs)
             throws org.apache.xerces.xni.XNIException
Comment.

Specified by:
comment in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

processingInstruction

public void processingInstruction(java.lang.String target,
                                  org.apache.xerces.xni.XMLString data,
                                  org.apache.xerces.xni.Augmentations augs)
                           throws org.apache.xerces.xni.XNIException
Processing instruction.

Specified by:
processingInstruction in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

startParameterEntity

public void startParameterEntity(java.lang.String name,
                                 org.apache.xerces.xni.XMLResourceIdentifier id,
                                 java.lang.String encoding,
                                 org.apache.xerces.xni.Augmentations augs)
                          throws org.apache.xerces.xni.XNIException
Start parameter entity.

Specified by:
startParameterEntity in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

textDecl

public void textDecl(java.lang.String version,
                     java.lang.String encoding,
                     org.apache.xerces.xni.Augmentations augs)
              throws org.apache.xerces.xni.XNIException
Text declaration.

Specified by:
textDecl in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

endParameterEntity

public void endParameterEntity(java.lang.String name,
                               org.apache.xerces.xni.Augmentations augs)
                        throws org.apache.xerces.xni.XNIException
End parameter entity.

Specified by:
endParameterEntity in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

elementDecl

public void elementDecl(java.lang.String ename,
                        java.lang.String model,
                        org.apache.xerces.xni.Augmentations augs)
                 throws org.apache.xerces.xni.XNIException
Element declaration.

Specified by:
elementDecl in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

startAttlist

public void startAttlist(java.lang.String ename,
                         org.apache.xerces.xni.Augmentations augs)
                  throws org.apache.xerces.xni.XNIException
Start attribute list.

Specified by:
startAttlist in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

attributeDecl

public void attributeDecl(java.lang.String ename,
                          java.lang.String aname,
                          java.lang.String atype,
                          java.lang.String[] enum,
                          java.lang.String dtype,
                          org.apache.xerces.xni.XMLString dvalue,
                          org.apache.xerces.xni.XMLString nondvalue,
                          org.apache.xerces.xni.Augmentations augs)
                   throws org.apache.xerces.xni.XNIException
Attribute declaration.

Specified by:
attributeDecl in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

endAttlist

public void endAttlist(org.apache.xerces.xni.Augmentations augs)
                throws org.apache.xerces.xni.XNIException
End attribute list.

Specified by:
endAttlist in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

internalEntityDecl

public void internalEntityDecl(java.lang.String name,
                               org.apache.xerces.xni.XMLString value,
                               org.apache.xerces.xni.XMLString nonvalue,
                               org.apache.xerces.xni.Augmentations augs)
                        throws org.apache.xerces.xni.XNIException
Internal entity declaration.

Specified by:
internalEntityDecl in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

externalEntityDecl

public void externalEntityDecl(java.lang.String name,
                               org.apache.xerces.xni.XMLResourceIdentifier id,
                               org.apache.xerces.xni.Augmentations augs)
                        throws org.apache.xerces.xni.XNIException
External entity declaration.

Specified by:
externalEntityDecl in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

unparsedEntityDecl

public void unparsedEntityDecl(java.lang.String name,
                               org.apache.xerces.xni.XMLResourceIdentifier id,
                               java.lang.String notation,
                               org.apache.xerces.xni.Augmentations augs)
                        throws org.apache.xerces.xni.XNIException
Unparsed entity declaration.

Specified by:
unparsedEntityDecl in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

notationDecl

public void notationDecl(java.lang.String name,
                         org.apache.xerces.xni.XMLResourceIdentifier id,
                         org.apache.xerces.xni.Augmentations augs)
                  throws org.apache.xerces.xni.XNIException
Notation declaration.

Specified by:
notationDecl in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

startConditional

public void startConditional(short type,
                             org.apache.xerces.xni.Augmentations augs)
                      throws org.apache.xerces.xni.XNIException
Start conditional section.

Specified by:
startConditional in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

ignoredCharacters

public void ignoredCharacters(org.apache.xerces.xni.XMLString text,
                              org.apache.xerces.xni.Augmentations augs)
                       throws org.apache.xerces.xni.XNIException
Ignored characters.

Specified by:
ignoredCharacters in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

endConditional

public void endConditional(org.apache.xerces.xni.Augmentations augs)
                    throws org.apache.xerces.xni.XNIException
End conditional section.

Specified by:
endConditional in interface org.apache.xerces.xni.XMLDTDHandler
Throws:
org.apache.xerces.xni.XNIException

setDTDContentModelSource

public void setDTDContentModelSource(org.apache.xerces.xni.parser.XMLDTDContentModelSource source)
Sets the DTD content model source.

Specified by:
setDTDContentModelSource in interface org.apache.xerces.xni.XMLDTDContentModelHandler

getDTDContentModelSource

public org.apache.xerces.xni.parser.XMLDTDContentModelSource getDTDContentModelSource()
Returns the DTD content model source.

Specified by:
getDTDContentModelSource in interface org.apache.xerces.xni.XMLDTDContentModelHandler

startContentModel

public void startContentModel(java.lang.String ename,
                              org.apache.xerces.xni.Augmentations augs)
                       throws org.apache.xerces.xni.XNIException
Start content model.

Specified by:
startContentModel in interface org.apache.xerces.xni.XMLDTDContentModelHandler
Throws:
org.apache.xerces.xni.XNIException

endContentModel

public void endContentModel(org.apache.xerces.xni.Augmentations augs)
                     throws org.apache.xerces.xni.XNIException
End content model.

Specified by:
endContentModel in interface org.apache.xerces.xni.XMLDTDContentModelHandler
Throws:
org.apache.xerces.xni.XNIException

any

public void any(org.apache.xerces.xni.Augmentations augs)
         throws org.apache.xerces.xni.XNIException
Any content model.

Specified by:
any in interface org.apache.xerces.xni.XMLDTDContentModelHandler
Throws:
org.apache.xerces.xni.XNIException

empty

public void empty(org.apache.xerces.xni.Augmentations augs)
           throws org.apache.xerces.xni.XNIException
Empty content model.

Specified by:
empty in interface org.apache.xerces.xni.XMLDTDContentModelHandler
Throws:
org.apache.xerces.xni.XNIException

startGroup

public void startGroup(org.apache.xerces.xni.Augmentations augs)
                throws org.apache.xerces.xni.XNIException
Start mixed or children content model group.

Specified by:
startGroup in interface org.apache.xerces.xni.XMLDTDContentModelHandler
Throws:
org.apache.xerces.xni.XNIException

pcdata

public void pcdata(org.apache.xerces.xni.Augmentations augs)
            throws org.apache.xerces.xni.XNIException
Parsed character data for mixed content model.

Specified by:
pcdata in interface org.apache.xerces.xni.XMLDTDContentModelHandler
Throws:
org.apache.xerces.xni.XNIException

element

public void element(java.lang.String name,
                    org.apache.xerces.xni.Augmentations augs)
             throws org.apache.xerces.xni.XNIException
Element reference in mixed or children content model.

Specified by:
element in interface org.apache.xerces.xni.XMLDTDContentModelHandler
Throws:
org.apache.xerces.xni.XNIException

separator

public void separator(short type,
                      org.apache.xerces.xni.Augmentations augs)
               throws org.apache.xerces.xni.XNIException
Separator in mixed or children content model.

Specified by:
separator in interface org.apache.xerces.xni.XMLDTDContentModelHandler
Throws:
org.apache.xerces.xni.XNIException

occurrence

public void occurrence(short type,
                       org.apache.xerces.xni.Augmentations augs)
                throws org.apache.xerces.xni.XNIException
Occurrence count in mixed or children content model.

Specified by:
occurrence in interface org.apache.xerces.xni.XMLDTDContentModelHandler
Throws:
org.apache.xerces.xni.XNIException

endGroup

public void endGroup(org.apache.xerces.xni.Augmentations augs)
              throws org.apache.xerces.xni.XNIException
End mixed or children content model group.

Specified by:
endGroup in interface org.apache.xerces.xni.XMLDTDContentModelHandler
Throws:
org.apache.xerces.xni.XNIException


(C) Copyright 2002-2004, Andy Clark. All rights reserved.