org.apache.xerces.validators.dtd
Class ElementDeclPool

java.lang.Object
  |
  +--org.apache.xerces.validators.dtd.ElementDeclPool

public final class ElementDeclPool
extends java.lang.Object

Version:
 

Constructor Summary
ElementDeclPool(StringPool stringPool, XMLErrorReporter errorReporter)
           
 
Method Summary
 int addAttDef(int elementIndex, int attName, int attType, int enumeration, int attDefaultType, int attDefaultValue, boolean isExternal, boolean validationEnabled, boolean warnOnDuplicate)
           
 int addContentSpecNode(int nodeType, int nodeValue, int otherNodeValue, boolean mustBeUnique)
           
 int addDefaultAttributes(int elementIndex, XMLAttrList attrList, int attrIndex, boolean validationEnabled, boolean standalone)
           
 int addElement(int elementTypeIndex)
           
 int addElementDecl(int elementTypeIndex, int contentSpecType, int contentSpec, boolean isExternal)
           
 boolean addId(int idIndex)
           
 void addIdRef(int idIndex)
           
 void checkDeclaredElements()
          Checks that all declared elements refer to declared elements in their content models.
 void checkIdRefs()
           
 boolean copyAtts(int fromElementTypeIndex, int toElementTypeIndex)
           
 int getAttDef(int elementType, int attrNameIndex)
           
 int getAttDefaultType(int attDefIndex)
           
 boolean getAttDefIsExternal(int attDefIndex)
           
 int getAttName(int attDefIndex)
           
 int getAttType(int attDefIndex)
           
 int getAttValue(int attDefIndex)
           
 XMLContentModel getContentModel(int elementIndex)
           
 int getContentSpec(int elementIndex)
           
 java.lang.String getContentSpecAsString(int elementIndex)
           
 void getContentSpecNode(int contentSpecIndex, XMLContentSpecNode csn)
           
 java.lang.String getContentSpecNodeAsString(int contentSpecIndex)
           
 int getContentSpecType(int elementIndex)
           
 int getElement(int elementType)
           
 boolean getElementDeclIsExternal(int elementIndex)
           
 int getElementType(int elementIndex)
           
 int getEnumeration(int attDefIndex)
           
 void reset(StringPool stringPool)
           
 void setContentModel(int elementIndex, XMLContentModel cm)
           
 void setContentSpec(int elementIndex, int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementDeclPool

public ElementDeclPool(StringPool stringPool,
                       XMLErrorReporter errorReporter)
Method Detail

reset

public void reset(StringPool stringPool)

getElement

public int getElement(int elementType)

addElement

public int addElement(int elementTypeIndex)

addElementDecl

public int addElementDecl(int elementTypeIndex,
                          int contentSpecType,
                          int contentSpec,
                          boolean isExternal)

getElementType

public int getElementType(int elementIndex)

getElementDeclIsExternal

public boolean getElementDeclIsExternal(int elementIndex)

getContentSpecType

public int getContentSpecType(int elementIndex)

getContentSpec

public int getContentSpec(int elementIndex)

setContentSpec

public void setContentSpec(int elementIndex,
                           int value)

getContentSpecAsString

public java.lang.String getContentSpecAsString(int elementIndex)

getContentModel

public XMLContentModel getContentModel(int elementIndex)

setContentModel

public void setContentModel(int elementIndex,
                            XMLContentModel cm)

addContentSpecNode

public int addContentSpecNode(int nodeType,
                              int nodeValue,
                              int otherNodeValue,
                              boolean mustBeUnique)
                       throws java.lang.Exception

getContentSpecNode

public void getContentSpecNode(int contentSpecIndex,
                               XMLContentSpecNode csn)

getContentSpecNodeAsString

public java.lang.String getContentSpecNodeAsString(int contentSpecIndex)

addAttDef

public int addAttDef(int elementIndex,
                     int attName,
                     int attType,
                     int enumeration,
                     int attDefaultType,
                     int attDefaultValue,
                     boolean isExternal,
                     boolean validationEnabled,
                     boolean warnOnDuplicate)
              throws java.lang.Exception

getAttDef

public int getAttDef(int elementType,
                     int attrNameIndex)

copyAtts

public boolean copyAtts(int fromElementTypeIndex,
                        int toElementTypeIndex)

getAttDefIsExternal

public boolean getAttDefIsExternal(int attDefIndex)

getAttName

public int getAttName(int attDefIndex)

getAttValue

public int getAttValue(int attDefIndex)

getAttType

public int getAttType(int attDefIndex)

getAttDefaultType

public int getAttDefaultType(int attDefIndex)

getEnumeration

public int getEnumeration(int attDefIndex)

addDefaultAttributes

public int addDefaultAttributes(int elementIndex,
                                XMLAttrList attrList,
                                int attrIndex,
                                boolean validationEnabled,
                                boolean standalone)
                         throws java.lang.Exception

addId

public boolean addId(int idIndex)

addIdRef

public void addIdRef(int idIndex)

checkIdRefs

public void checkIdRefs()
                 throws java.lang.Exception

checkDeclaredElements

public void checkDeclaredElements()
                           throws java.lang.Exception
Checks that all declared elements refer to declared elements in their content models. This method calls out to the error handler to indicate warnings.


Copyright © 1999 Apache XML Project. All Rights Reserved.