BEA Systems, Inc.

BEA WebLogic Server 9.1 API Reference


weblogic.apache.xerces.impl.dtd
Class DTDGrammar

java.lang.Object
  extended byweblogic.apache.xerces.impl.dtd.DTDGrammar
All Implemented Interfaces:
EntityState, Grammar, XMLDTDContentModelHandler, XMLDTDHandler

Deprecated. please use JDK supplied XML parsers and transformers

public class DTDGrammar
extends Object
implements XMLDTDHandler, XMLDTDContentModelHandler, EntityState, Grammar

A DTD grammar. This class implements the XNI handler interfaces for DTD information so that it can build the approprate validation structures automatically from the callbacks.


Nested Class Summary
protected static class DTDGrammar.QNameHashtable
          Deprecated. A simple Hashtable implementation that takes a tuple (String, String) as the key and a int as value.
 
Field Summary
protected  XMLAttributeDecl fAttributeDecl
          Deprecated. Temporary Attribute decl.
protected  int fCurrentAttributeIndex
          Deprecated. Current attribute index.
protected  int fCurrentElementIndex
          Deprecated. Current element index.
protected  XMLDTDDescription fGrammarDescription
          Deprecated.  
protected  boolean fReadingExternalDTD
          Deprecated. fReadingExternalDTD
static int TOP_LEVEL_SCOPE
          Deprecated. Top level scope (-1).
 
Fields inherited from interface weblogic.apache.xerces.xni.XMLDTDHandler
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE
 
Fields inherited from interface weblogic.apache.xerces.xni.XMLDTDContentModelHandler
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE
 
Constructor Summary
DTDGrammar(SymbolTable symbolTable, XMLDTDDescription desc)
          Deprecated. Default constructor.
 
Method Summary
protected  int addContentSpecNode(short nodeType, int leftNodeIndex, int rightNodeIndex)
          Deprecated. Create an XMLContentSpec for a two child leaf
protected  int addContentSpecNode(short nodeType, String nodeValue)
          Deprecated. Create an XMLContentSpec for a single non-leaf
protected  int addUniqueLeafNode(String elementName)
          Deprecated. create an XMLContentSpec for a leaf
 void any(Augmentations augs)
          Deprecated. A content model of ANY.
 void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs)
          Deprecated. An attribute declaration.
 void comment(XMLString text, Augmentations augs)
          Deprecated. A comment.
protected  int createAttributeDecl()
          Deprecated.  
protected  int createContentSpec()
          Deprecated.  
protected  int createElementDecl()
          Deprecated.  
protected  int createEntityDecl()
          Deprecated.  
protected  int createNotationDecl()
          Deprecated.  
 void element(String elementName, Augmentations augs)
          Deprecated. A referenced element in a mixed or children content model.
 void elementDecl(String name, String contentModel, Augmentations augs)
          Deprecated. An element declaration.
 void empty(Augmentations augs)
          Deprecated. A content model of EMPTY.
 void endAttlist(Augmentations augs)
          Deprecated. The end of an attribute list.
 void endConditional(Augmentations augs)
          Deprecated. The end of a conditional section.
 void endContentModel(Augmentations augs)
          Deprecated. The end of a content model.
 void endDTD(Augmentations augs)
          Deprecated. The end of the DTD.
 void endExternalSubset(Augmentations augs)
          Deprecated. The end of the DTD external subset.
 void endGroup(Augmentations augs)
          Deprecated. The end of a group for mixed or children content models.
 void endParameterEntity(String name, Augmentations augs)
          Deprecated. This method notifies the end of an entity.
 void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs)
          Deprecated. An external entity declaration.
 boolean getAttributeDecl(int attributeDeclIndex, XMLAttributeDecl attributeDecl)
          Deprecated. getAttributeDecl
 int getAttributeDeclIndex(int elementDeclIndex, String attributeDeclName)
          Deprecated.  
 boolean getAttributeDeclIsExternal(int attributeDeclIndex)
          Deprecated. Returns true if the specified attribute declaration is external.
 boolean getContentSpec(int contentSpecIndex, XMLContentSpec contentSpec)
          Deprecated. getContentSpec
 String getContentSpecAsString(int elementDeclIndex)
          Deprecated. getContentSpecAsString
protected  weblogic.apache.xerces.impl.dtd.models.ContentModelValidator getElementContentModelValidator(int elementDeclIndex)
          Deprecated. getElementContentModelValidator
 boolean getElementDecl(int elementDeclIndex, XMLElementDecl elementDecl)
          Deprecated. getElementDecl
 int getElementDeclIndex(QName elementDeclQName)
          Deprecated. Returns the element decl index.
 int getElementDeclIndex(String elementDeclName)
          Deprecated. getElementDeclIndex
 boolean getElementDeclIsExternal(int elementDeclIndex)
          Deprecated. Returns true if the specified element declaration is external.
 boolean getEntityDecl(int entityDeclIndex, XMLEntityDecl entityDecl)
          Deprecated. getEntityDecl
 int getEntityDeclIndex(String entityDeclName)
          Deprecated. getEntityDeclIndex
 int getFirstAttributeDeclIndex(int elementDeclIndex)
          Deprecated. getFirstAttributeDeclIndex
 int getFirstElementDeclIndex()
          Deprecated. Returns the index of the first element declaration.
 XMLGrammarDescription getGrammarDescription()
          Deprecated.  
 int getNextAttributeDeclIndex(int attributeDeclIndex)
          Deprecated. getNextAttributeDeclIndex
 int getNextElementDeclIndex(int elementDeclIndex)
          Deprecated. Returns the next index of the element declaration following the specified element declaration.
 boolean getNotationDecl(int notationDeclIndex, XMLNotationDecl notationDecl)
          Deprecated. getNotationDecl
 int getNotationDeclIndex(String notationDeclName)
          Deprecated. getNotationDeclIndex
 SymbolTable getSymbolTable()
          Deprecated. Returns the symbol table.
 void ignoredCharacters(XMLString text, Augmentations augs)
          Deprecated. Characters within an IGNORE conditional section.
protected  void initializeContentModelStack()
          Deprecated. Initialize content model stack.
 void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augs)
          Deprecated. An internal entity declaration.
 boolean isCDATAAttribute(QName elName, QName atName)
          Deprecated. Returns whether the given attribute is of type CDATA or not
 boolean isEntityDeclared(String name)
          Deprecated. Query method to check if entity with this name was declared.
 boolean isEntityUnparsed(String name)
          Deprecated. Query method to check if entity is unparsed.
 boolean isNamespaceAware()
          Deprecated. Returns true if this grammar is namespace aware.
 void notationDecl(String name, XMLResourceIdentifier identifier, Augmentations augs)
          Deprecated. A notation declaration
 void occurrence(short occurrence, Augmentations augs)
          Deprecated. The occurrence count for a child in a children content model or for the mixed content model group.
 void pcdata(Augmentations augs)
          Deprecated. The appearance of "#PCDATA" within a group signifying a mixed content model.
 void printAttributes(int elementDeclIndex)
          Deprecated.  
 void printElements()
          Deprecated.  
 void processingInstruction(String target, XMLString data, Augmentations augs)
          Deprecated. A processing instruction.
protected  void putElementNameMapping(QName name, int scope, int elementDeclIndex)
          Deprecated.  
 void separator(short separator, Augmentations augs)
          Deprecated. The separator between choices or sequences of a mixed or children content model.
protected  void setAttributeDecl(int elementDeclIndex, int attributeDeclIndex, XMLAttributeDecl attributeDecl)
          Deprecated.  
protected  void setContentSpec(int contentSpecIndex, XMLContentSpec contentSpec)
          Deprecated.  
protected  void setContentSpecIndex(int elementDeclIndex, int contentSpecIndex)
          Deprecated.  
protected  void setElementDecl(int elementDeclIndex, XMLElementDecl elementDecl)
          Deprecated.  
protected  void setEntityDecl(int entityDeclIndex, XMLEntityDecl entityDecl)
          Deprecated.  
protected  void setFirstAttributeDeclIndex(int elementDeclIndex, int newFirstAttrIndex)
          Deprecated.  
protected  void setNotationDecl(int notationDeclIndex, XMLNotationDecl notationDecl)
          Deprecated.  
 void startAttlist(String elementName, Augmentations augs)
          Deprecated. The start of an attribute list.
 void startConditional(short type, Augmentations augs)
          Deprecated. The start of a conditional section.
 void startContentModel(String elementName, Augmentations augs)
          Deprecated. The start of a content model.
 void startDTD(XMLLocator locator, Augmentations augs)
          Deprecated. The start of the DTD.
 void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augs)
          Deprecated. The start of the DTD external subset.
 void startGroup(Augmentations augs)
          Deprecated. A start of either a mixed or children content model.
 void startParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs)
          Deprecated. This method notifies of the start of an entity.
 void textDecl(String version, String encoding, Augmentations augs)
          Deprecated. Notifies of the presence of a TextDecl line in an entity.
 void unparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augs)
          Deprecated. An unparsed entity declaration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fAttributeDecl

protected XMLAttributeDecl fAttributeDecl
Deprecated. 
Temporary Attribute decl.


fCurrentAttributeIndex

protected int fCurrentAttributeIndex
Deprecated. 
Current attribute index.


fCurrentElementIndex

protected int fCurrentElementIndex
Deprecated. 
Current element index.


fGrammarDescription

protected XMLDTDDescription fGrammarDescription
Deprecated. 

fReadingExternalDTD

protected boolean fReadingExternalDTD
Deprecated. 
fReadingExternalDTD


TOP_LEVEL_SCOPE

public static final int TOP_LEVEL_SCOPE
Deprecated. 
Top level scope (-1).

See Also:
Constant Field Values
Constructor Detail

DTDGrammar

public DTDGrammar(SymbolTable symbolTable,
                  XMLDTDDescription desc)
Deprecated. 
Default constructor.

Method Detail

addContentSpecNode

protected int addContentSpecNode(short nodeType,
                                 int leftNodeIndex,
                                 int rightNodeIndex)
Deprecated. 
Create an XMLContentSpec for a two child leaf

Parameters:
nodeType - the type of XMLContentSpec to create - from XMLContentSpec.CONTENTSPECNODE_*
leftNodeIndex - handle to an XMLContentSpec
rightNodeIndex - handle to an XMLContentSpec
Returns:
handle to the newly create XMLContentSpec

addContentSpecNode

protected int addContentSpecNode(short nodeType,
                                 String nodeValue)
Deprecated. 
Create an XMLContentSpec for a single non-leaf

Parameters:
nodeType - the type of XMLContentSpec to create - from XMLContentSpec.CONTENTSPECNODE_*
nodeValue - handle to an XMLContentSpec
Returns:
handle to the newly create XMLContentSpec

addUniqueLeafNode

protected int addUniqueLeafNode(String elementName)
Deprecated. 
create an XMLContentSpec for a leaf

Parameters:
elementName - the name (Element) for the node
Returns:
handle to the newly create XMLContentSpec

any

public void any(Augmentations augs)
         throws XNIException
Deprecated. 
A content model of ANY.

Specified by:
any in interface XMLDTDContentModelHandler
Parameters:
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.
See Also:
empty(weblogic.apache.xerces.xni.Augmentations), startGroup(weblogic.apache.xerces.xni.Augmentations)

attributeDecl

public void attributeDecl(String elementName,
                          String attributeName,
                          String type,
                          String[] enumeration,
                          String defaultType,
                          XMLString defaultValue,
                          XMLString nonNormalizedDefaultValue,
                          Augmentations augs)
                   throws XNIException
Deprecated. 
An attribute declaration.

Specified by:
attributeDecl in interface XMLDTDHandler
Parameters:
elementName - The name of the element that this attribute is associated with.
attributeName - The name of the attribute.
type - The attribute type. This value will be one of the following: "CDATA", "ENTITY", "ENTITIES", "ENUMERATION", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", or "NOTATION".
enumeration - If the type has the value "ENUMERATION", this array holds the allowed attribute values; otherwise, this array is null.
defaultType - The attribute default type. This value will be one of the following: "#FIXED", "#IMPLIED", "#REQUIRED", or null.
defaultValue - The attribute default value, or null if no default value is specified.
nonNormalizedDefaultValue - The attribute default value with no normalization performed, or null if no default value is specified.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

comment

public void comment(XMLString text,
                    Augmentations augs)
             throws XNIException
Deprecated. 
A comment.

Specified by:
comment in interface XMLDTDHandler
Parameters:
text - The text in the comment.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by application to signal an error.

createAttributeDecl

protected int createAttributeDecl()
Deprecated. 

createContentSpec

protected int createContentSpec()
Deprecated. 

createElementDecl

protected int createElementDecl()
Deprecated. 

createEntityDecl

protected int createEntityDecl()
Deprecated. 

createNotationDecl

protected int createNotationDecl()
Deprecated. 

element

public void element(String elementName,
                    Augmentations augs)
             throws XNIException
Deprecated. 
A referenced element in a mixed or children content model.

Specified by:
element in interface XMLDTDContentModelHandler
Parameters:
elementName - The name of the referenced element.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

elementDecl

public void elementDecl(String name,
                        String contentModel,
                        Augmentations augs)
                 throws XNIException
Deprecated. 
An element declaration.

Specified by:
elementDecl in interface XMLDTDHandler
Parameters:
name - The name of the element.
contentModel - The element content model.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

empty

public void empty(Augmentations augs)
           throws XNIException
Deprecated. 
A content model of EMPTY.

Specified by:
empty in interface XMLDTDContentModelHandler
Parameters:
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.
See Also:
any(weblogic.apache.xerces.xni.Augmentations), startGroup(weblogic.apache.xerces.xni.Augmentations)

endAttlist

public void endAttlist(Augmentations augs)
                throws XNIException
Deprecated. 
The end of an attribute list.

Specified by:
endAttlist in interface XMLDTDHandler
Parameters:
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

endConditional

public void endConditional(Augmentations augs)
                    throws XNIException
Deprecated. 
The end of a conditional section.

Specified by:
endConditional in interface XMLDTDHandler
Parameters:
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

endContentModel

public void endContentModel(Augmentations augs)
                     throws XNIException
Deprecated. 
The end of a content model.

Specified by:
endContentModel in interface XMLDTDContentModelHandler
Parameters:
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

endDTD

public void endDTD(Augmentations augs)
            throws XNIException
Deprecated. 
The end of the DTD.

Specified by:
endDTD in interface XMLDTDHandler
Parameters:
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

endExternalSubset

public void endExternalSubset(Augmentations augs)
                       throws XNIException
Deprecated. 
The end of the DTD external subset.

Specified by:
endExternalSubset in interface XMLDTDHandler
Parameters:
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

endGroup

public void endGroup(Augmentations augs)
              throws XNIException
Deprecated. 
The end of a group for mixed or children content models.

Specified by:
endGroup in interface XMLDTDContentModelHandler
Parameters:
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

endParameterEntity

public void endParameterEntity(String name,
                               Augmentations augs)
                        throws XNIException
Deprecated. 
This method notifies the end of an entity. The DTD has the pseudo-name of "[dtd]" and parameter entity names start with '%'.

Note: Since the DTD is an entity, the handler will be notified of the end of the DTD entity by calling the endEntity method with the entity name "[dtd]" after calling the endDTD method.

Specified by:
endParameterEntity in interface XMLDTDHandler
Parameters:
name - The name of the entity.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

externalEntityDecl

public void externalEntityDecl(String name,
                               XMLResourceIdentifier identifier,
                               Augmentations augs)
                        throws XNIException
Deprecated. 
An external entity declaration.

Specified by:
externalEntityDecl in interface XMLDTDHandler
Parameters:
name - The name of the entity. Parameter entity names start with '%', whereas the name of a general entity is just the entity name.
identifier - An object containing all location information pertinent to this external entity declaration.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

getAttributeDecl

public boolean getAttributeDecl(int attributeDeclIndex,
                                XMLAttributeDecl attributeDecl)
Deprecated. 
getAttributeDecl

Parameters:
attributeDeclIndex -
attributeDecl - The values of this structure are set by this call.
Returns:
true if getAttributeDecl was able to fill in the value of attributeDecl

getAttributeDeclIndex

public int getAttributeDeclIndex(int elementDeclIndex,
                                 String attributeDeclName)
Deprecated. 

getAttributeDeclIsExternal

public boolean getAttributeDeclIsExternal(int attributeDeclIndex)
Deprecated. 
Returns true if the specified attribute declaration is external.

Parameters:
attributeDeclIndex - Attribute declaration index.

getContentSpec

public boolean getContentSpec(int contentSpecIndex,
                              XMLContentSpec contentSpec)
Deprecated. 
getContentSpec

Parameters:
contentSpecIndex -
contentSpec -
Returns:
true if find the requested contentSpec node, false otherwise

getContentSpecAsString

public String getContentSpecAsString(int elementDeclIndex)
Deprecated. 
getContentSpecAsString

Parameters:
elementDeclIndex -

getElementContentModelValidator

protected weblogic.apache.xerces.impl.dtd.models.ContentModelValidator getElementContentModelValidator(int elementDeclIndex)
Deprecated. 
getElementContentModelValidator

Parameters:
elementDeclIndex -
Returns:
its ContentModelValidator if any.

getElementDecl

public boolean getElementDecl(int elementDeclIndex,
                              XMLElementDecl elementDecl)
Deprecated. 
getElementDecl

Parameters:
elementDeclIndex -
elementDecl - The values of this structure are set by this call.
Returns:
True if find the element, False otherwise.

getElementDeclIndex

public int getElementDeclIndex(QName elementDeclQName)
Deprecated. 
Returns the element decl index.

Parameters:
elementDeclQName - qualilfied name of the element

getElementDeclIndex

public int getElementDeclIndex(String elementDeclName)
Deprecated. 
getElementDeclIndex

Parameters:
elementDeclName -
Returns:
index of the elementDeclName in scope

getElementDeclIsExternal

public boolean getElementDeclIsExternal(int elementDeclIndex)
Deprecated. 
Returns true if the specified element declaration is external.

Parameters:
elementDeclIndex - The element declaration index.

getEntityDecl

public boolean getEntityDecl(int entityDeclIndex,
                             XMLEntityDecl entityDecl)
Deprecated. 
getEntityDecl

Parameters:
entityDeclIndex -
entityDecl -
Returns:
true if getEntityDecl was able to fill entityDecl with the contents of the entity with index entityDeclIndex

getEntityDeclIndex

public int getEntityDeclIndex(String entityDeclName)
Deprecated. 
getEntityDeclIndex

Parameters:
entityDeclName -
Returns:
the index of the EntityDecl

getFirstAttributeDeclIndex

public int getFirstAttributeDeclIndex(int elementDeclIndex)
Deprecated. 
getFirstAttributeDeclIndex

Parameters:
elementDeclIndex -
Returns:
index of the first attribute for element declaration elementDeclIndex

getFirstElementDeclIndex

public int getFirstElementDeclIndex()
Deprecated. 
Returns the index of the first element declaration. This index is then used to query more information about the element declaration.

See Also:
getNextElementDeclIndex(int), getElementDecl(int, weblogic.apache.xerces.impl.dtd.XMLElementDecl)

getGrammarDescription

public XMLGrammarDescription getGrammarDescription()
Deprecated. 
Specified by:
getGrammarDescription in interface Grammar

getNextAttributeDeclIndex

public int getNextAttributeDeclIndex(int attributeDeclIndex)
Deprecated. 
getNextAttributeDeclIndex

Parameters:
attributeDeclIndex -
Returns:
index of the next attribute of the attribute at attributeDeclIndex

getNextElementDeclIndex

public int getNextElementDeclIndex(int elementDeclIndex)
Deprecated. 
Returns the next index of the element declaration following the specified element declaration.

Parameters:
elementDeclIndex - The element declaration index.

getNotationDecl

public boolean getNotationDecl(int notationDeclIndex,
                               XMLNotationDecl notationDecl)
Deprecated. 
getNotationDecl

Parameters:
notationDeclIndex -
notationDecl -
Returns:
return true of getNotationDecl can fill notationDecl with information about the notation at notationDeclIndex.

getNotationDeclIndex

public int getNotationDeclIndex(String notationDeclName)
Deprecated. 
getNotationDeclIndex

Parameters:
notationDeclName -
Returns:
the index if found a notation with the name, otherwise -1.

getSymbolTable

public SymbolTable getSymbolTable()
Deprecated. 
Returns the symbol table.


ignoredCharacters

public void ignoredCharacters(XMLString text,
                              Augmentations augs)
                       throws XNIException
Deprecated. 
Characters within an IGNORE conditional section.

Specified by:
ignoredCharacters in interface XMLDTDHandler
Parameters:
text - The ignored text.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

initializeContentModelStack

protected void initializeContentModelStack()
Deprecated. 
Initialize content model stack.


internalEntityDecl

public void internalEntityDecl(String name,
                               XMLString text,
                               XMLString nonNormalizedText,
                               Augmentations augs)
                        throws XNIException
Deprecated. 
An internal entity declaration.

Specified by:
internalEntityDecl in interface XMLDTDHandler
Parameters:
name - The name of the entity. Parameter entity names start with '%', whereas the name of a general entity is just the entity name.
text - The value of the entity.
nonNormalizedText - The non-normalized value of the entity. This value contains the same sequence of characters that was in the internal entity declaration, without any entity references expanded.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

isCDATAAttribute

public boolean isCDATAAttribute(QName elName,
                                QName atName)
Deprecated. 
Returns whether the given attribute is of type CDATA or not

Parameters:
elName - The element name.
atName - The attribute name.
Returns:
true if the attribute is of type CDATA

isEntityDeclared

public boolean isEntityDeclared(String name)
Deprecated. 
Description copied from interface: EntityState
Query method to check if entity with this name was declared.

Specified by:
isEntityDeclared in interface EntityState
Parameters:
name -
Returns:
true if name is a declared entity

isEntityUnparsed

public boolean isEntityUnparsed(String name)
Deprecated. 
Description copied from interface: EntityState
Query method to check if entity is unparsed.

Specified by:
isEntityUnparsed in interface EntityState
Parameters:
name -
Returns:
true if name is an unparsed entity

isNamespaceAware

public boolean isNamespaceAware()
Deprecated. 
Returns true if this grammar is namespace aware.


notationDecl

public void notationDecl(String name,
                         XMLResourceIdentifier identifier,
                         Augmentations augs)
                  throws XNIException
Deprecated. 
A notation declaration

Specified by:
notationDecl in interface XMLDTDHandler
Parameters:
name - The name of the notation.
identifier - An object containing all location information pertinent to this notation.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

occurrence

public void occurrence(short occurrence,
                       Augmentations augs)
                throws XNIException
Deprecated. 
The occurrence count for a child in a children content model or for the mixed content model group.

Specified by:
occurrence in interface XMLDTDContentModelHandler
Parameters:
occurrence - The occurrence count for the last element or group.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.
See Also:
XMLDTDContentModelHandler.OCCURS_ZERO_OR_ONE, XMLDTDContentModelHandler.OCCURS_ZERO_OR_MORE, XMLDTDContentModelHandler.OCCURS_ONE_OR_MORE

pcdata

public void pcdata(Augmentations augs)
            throws XNIException
Deprecated. 
The appearance of "#PCDATA" within a group signifying a mixed content model. This method will be the first called following the content model's startGroup().

Specified by:
pcdata in interface XMLDTDContentModelHandler
Parameters:
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.
See Also:
startGroup(weblogic.apache.xerces.xni.Augmentations)

printAttributes

public void printAttributes(int elementDeclIndex)
Deprecated. 

printElements

public void printElements()
Deprecated. 

processingInstruction

public void processingInstruction(String target,
                                  XMLString data,
                                  Augmentations augs)
                           throws XNIException
Deprecated. 
A processing instruction. Processing instructions consist of a target name and, optionally, text data. The data is only meaningful to the application.

Typically, a processing instruction's data will contain a series of pseudo-attributes. These pseudo-attributes follow the form of element attributes but are not parsed or presented to the application as anything other than text. The application is responsible for parsing the data.

Specified by:
processingInstruction in interface XMLDTDHandler
Parameters:
target - The target.
data - The data or null if none specified.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

putElementNameMapping

protected void putElementNameMapping(QName name,
                                     int scope,
                                     int elementDeclIndex)
Deprecated. 

separator

public void separator(short separator,
                      Augmentations augs)
               throws XNIException
Deprecated. 
The separator between choices or sequences of a mixed or children content model.

Specified by:
separator in interface XMLDTDContentModelHandler
Parameters:
separator - The type of children separator.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.
See Also:
XMLDTDContentModelHandler.SEPARATOR_CHOICE, XMLDTDContentModelHandler.SEPARATOR_SEQUENCE

setAttributeDecl

protected void setAttributeDecl(int elementDeclIndex,
                                int attributeDeclIndex,
                                XMLAttributeDecl attributeDecl)
Deprecated. 

setContentSpec

protected void setContentSpec(int contentSpecIndex,
                              XMLContentSpec contentSpec)
Deprecated. 

setContentSpecIndex

protected void setContentSpecIndex(int elementDeclIndex,
                                   int contentSpecIndex)
Deprecated. 

setElementDecl

protected void setElementDecl(int elementDeclIndex,
                              XMLElementDecl elementDecl)
Deprecated. 

setEntityDecl

protected void setEntityDecl(int entityDeclIndex,
                             XMLEntityDecl entityDecl)
Deprecated. 

setFirstAttributeDeclIndex

protected void setFirstAttributeDeclIndex(int elementDeclIndex,
                                          int newFirstAttrIndex)
Deprecated. 

setNotationDecl

protected void setNotationDecl(int notationDeclIndex,
                               XMLNotationDecl notationDecl)
Deprecated. 

startAttlist

public void startAttlist(String elementName,
                         Augmentations augs)
                  throws XNIException
Deprecated. 
The start of an attribute list.

Specified by:
startAttlist in interface XMLDTDHandler
Parameters:
elementName - The name of the element that this attribute list is associated with.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

startConditional

public void startConditional(short type,
                             Augmentations augs)
                      throws XNIException
Deprecated. 
The start of a conditional section.

Specified by:
startConditional in interface XMLDTDHandler
Parameters:
type - The type of the conditional section. This value will either be CONDITIONAL_INCLUDE or CONDITIONAL_IGNORE.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.
See Also:
XMLDTDHandler.CONDITIONAL_INCLUDE, XMLDTDHandler.CONDITIONAL_IGNORE

startContentModel

public void startContentModel(String elementName,
                              Augmentations augs)
                       throws XNIException
Deprecated. 
The start of a content model. Depending on the type of the content model, specific methods may be called between the call to the startContentModel method and the call to the endContentModel method.

Specified by:
startContentModel in interface XMLDTDContentModelHandler
Parameters:
elementName - The name of the element.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

startDTD

public void startDTD(XMLLocator locator,
                     Augmentations augs)
              throws XNIException
Deprecated. 
The start of the DTD.

Specified by:
startDTD in interface XMLDTDHandler
Parameters:
locator - The document locator, or null if the document location cannot be reported during the parsing of the document DTD. However, it is strongly recommended that a locator be supplied that can at least report the base system identifier of the DTD.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

startExternalSubset

public void startExternalSubset(XMLResourceIdentifier identifier,
                                Augmentations augs)
                         throws XNIException
Deprecated. 
The start of the DTD external subset.

Specified by:
startExternalSubset in interface XMLDTDHandler
Parameters:
augs - Additional information that may include infoset augmentations.
identifier - The resource identifier.
Throws:
XNIException - Thrown by handler to signal an error.

startGroup

public void startGroup(Augmentations augs)
                throws XNIException
Deprecated. 
A start of either a mixed or children content model. A mixed content model will immediately be followed by a call to the pcdata() method. A children content model will contain additional groups and/or elements.

Specified by:
startGroup in interface XMLDTDContentModelHandler
Parameters:
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.
See Also:
any(weblogic.apache.xerces.xni.Augmentations), empty(weblogic.apache.xerces.xni.Augmentations)

startParameterEntity

public void startParameterEntity(String name,
                                 XMLResourceIdentifier identifier,
                                 String encoding,
                                 Augmentations augs)
                          throws XNIException
Deprecated. 
This method notifies of the start of an entity. The DTD has the pseudo-name of "[dtd]" and parameter entity names start with '%'.

Note: Since the DTD is an entity, the handler will be notified of the start of the DTD entity by calling the startParameterEntity method with the entity name "[dtd]" before calling the startDTD method.

Specified by:
startParameterEntity in interface XMLDTDHandler
Parameters:
name - The name of the parameter 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 parameter entities).
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

textDecl

public void textDecl(String version,
                     String encoding,
                     Augmentations augs)
              throws XNIException
Deprecated. 
Notifies of the presence of a TextDecl line in an entity. If present, this method will be called immediately following the startEntity call.

Note: This method is only called for external parameter entities referenced in the DTD.

Specified by:
textDecl in interface XMLDTDHandler
Parameters:
version - The XML version, or null if not specified.
encoding - The IANA encoding name of the entity.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

unparsedEntityDecl

public void unparsedEntityDecl(String name,
                               XMLResourceIdentifier identifier,
                               String notation,
                               Augmentations augs)
                        throws XNIException
Deprecated. 
An unparsed entity declaration.

Specified by:
unparsedEntityDecl in interface XMLDTDHandler
Parameters:
name - The name of the entity.
identifier - An object containing all location information pertinent to this entity.
notation - The name of the notation.
augs - Additional information that may include infoset augmentations.
Throws:
XNIException - Thrown by handler to signal an error.

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs91
Copyright 2005 BEA Systems Inc.