org.apache.xerces.validators.schema
Class SchemaGrammar

java.lang.Object
  |
  +--org.apache.xerces.validators.common.Grammar
        |
        +--org.apache.xerces.validators.schema.SchemaGrammar

public class SchemaGrammar
extends Grammar


Fields inherited from class org.apache.xerces.validators.common.Grammar
TOP_LEVEL_SCOPE
 
Constructor Summary
SchemaGrammar()
           
 
Method Summary
protected  void addAttDef(int templateElementIndex, QName attQName, int attType, int enumeration, int attDefaultType, java.lang.String attDefaultValue, DatatypeValidator dv, boolean isList)
           
protected  int addContentSpecNode(int contentSpecType, int value, int otherValue, boolean mustBeUnique)
           
protected  int addElementDecl(QName eltQName, int enclosingScope, int scopeDefined, int contentSpecType, int contentSpecIndex, int attrListHead, DatatypeValidator dv)
           
protected  int convertContentSpecTree(int contentSpecIndex)
           
protected  int createAttributeDecl()
           
protected  int createContentSpec()
           
protected  int createElementDecl()
           
protected  int expandContentModel(int index, int minOccurs, int maxOccurs)
           
 int findAttributeDecl(int attListHead, QName attribute)
           
 int getAttributeDeclIndex(int elementIndex, QName attribute)
           
 java.util.Hashtable getAttributeDeclRegistry()
           
 boolean getCheckUniqueParticleAttribution()
           
 java.util.Hashtable getComplexTypeRegistry()
           
protected  int getContentSpecMaxOccurs(int contentSpecIndex)
           
protected  int getContentSpecMinOccurs(int contentSpecIndex)
           
 int getContentSpecOrgUri(int contentSpecIndex)
           
 DatatypeValidatorFactoryImpl getDatatypeRegistry()
           
 boolean getDeferContentSpecExpansion()
           
 TraverseSchema.ComplexTypeInfo getElementComplexTypeInfo(int elementDeclIndex)
           
 XMLContentModel getElementContentModel(int elementDeclIndex, SubstitutionGroupComparator comparator)
           
 int getElementDeclBlockSet(int elementDeclIndex)
           
 int getElementDeclFinalSet(int elementDeclIndex)
           
 int getElementDeclMiscFlags(int elementDeclIndex)
           
 java.lang.String getElementDeclSubstitutionGroupElementFullName(int elementDeclIndex)
           
 int getElementDefaultTYpe(int elementDeclIndex)
           
 java.lang.String getElementDefaultValue(int elementDeclIndex)
           
 int getElementDefinedScope(int elementDeclIndex)
           
 java.lang.String getElementFromAnotherSchemaURI(int elementDeclIndex)
           
 NamespacesScope getNamespacesScope()
           
 java.lang.String getTargetNamespaceURI()
           
protected  void setAttributeDecl(int elementDeclIndex, int attributeDeclIndex, XMLAttributeDecl attributeDecl)
           
protected  void setAttributeDeclRegistry(java.util.Hashtable attrReg)
           
 void setCheckUniqueParticleAttribution()
           
protected  void setComplexTypeRegistry(java.util.Hashtable cTypeReg)
           
protected  void setContentSpec(int contentSpecIndex, XMLContentSpec contentSpec)
           
protected  void setContentSpecMaxOccurs(int contentSpecIndex, int maxOccurs)
           
protected  void setContentSpecMinOccurs(int contentSpecIndex, int minOccurs)
           
 void setContentSpecOrgUri(int contentSpecIndex, int orgUri)
           
protected  void setDatatypeRegistry(DatatypeValidatorFactoryImpl dTypeReg)
           
 void setDeferContentSpecExpansion()
           
protected  void setElementComplexTypeInfo(int elementDeclIndex, TraverseSchema.ComplexTypeInfo typeInfo)
           
protected  void setElementDecl(int elementDeclIndex, XMLElementDecl elementDecl)
           
protected  void setElementDeclBlockSet(int elementDeclIndex, int blockSet)
           
protected  void setElementDeclFinalSet(int elementDeclIndex, int finalSet)
           
protected  void setElementDeclMiscFlags(int elementDeclIndex, int miscFlags)
           
protected  void setElementDeclSubstitutionGroupElementFullName(int elementDeclIndex, java.lang.String substitutionGroupFullName)
           
protected  void setElementDefault(int elementDeclIndex, java.lang.String defaultValue)
           
protected  void setElementDefinedScope(int elementDeclIndex, int scopeDefined)
           
protected  void setElementFromAnotherSchemaURI(int elementDeclIndex, java.lang.String anotherSchemaURI)
           
protected  void setNamespacesScope(NamespacesScope nsScope)
           
protected  void setTargetNamespaceURI(java.lang.String targetNSUri)
           
 
Methods inherited from class org.apache.xerces.validators.common.Grammar
clearElementContentModel, existElementContentModel, getAttributeDecl, getContentSpec, getElementDecl, getElementDeclIndex, getElementDeclIndex, getElementDeclIndex, getFirstAttributeDeclIndex, getGrammarDocument, getNextAttributeDeclIndex, isDTD, printAttributes, printElements, putElementNameMapping, setFirstAttributeDeclIndex, setGrammarDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaGrammar

public SchemaGrammar()
Method Detail

getNamespacesScope

public NamespacesScope getNamespacesScope()

getDeferContentSpecExpansion

public boolean getDeferContentSpecExpansion()

getCheckUniqueParticleAttribution

public boolean getCheckUniqueParticleAttribution()

getTargetNamespaceURI

public java.lang.String getTargetNamespaceURI()

getAttributeDeclRegistry

public java.util.Hashtable getAttributeDeclRegistry()

getComplexTypeRegistry

public java.util.Hashtable getComplexTypeRegistry()

getDatatypeRegistry

public DatatypeValidatorFactoryImpl getDatatypeRegistry()

getElementDefinedScope

public int getElementDefinedScope(int elementDeclIndex)

getElementDefaultTYpe

public int getElementDefaultTYpe(int elementDeclIndex)

getElementDeclBlockSet

public int getElementDeclBlockSet(int elementDeclIndex)

getElementDeclFinalSet

public int getElementDeclFinalSet(int elementDeclIndex)

getElementDeclMiscFlags

public int getElementDeclMiscFlags(int elementDeclIndex)

getElementFromAnotherSchemaURI

public java.lang.String getElementFromAnotherSchemaURI(int elementDeclIndex)

getElementDefaultValue

public java.lang.String getElementDefaultValue(int elementDeclIndex)

getElementDeclSubstitutionGroupElementFullName

public java.lang.String getElementDeclSubstitutionGroupElementFullName(int elementDeclIndex)

getElementComplexTypeInfo

public TraverseSchema.ComplexTypeInfo getElementComplexTypeInfo(int elementDeclIndex)

convertContentSpecTree

protected int convertContentSpecTree(int contentSpecIndex)
Overrides:
convertContentSpecTree in class Grammar

getElementContentModel

public XMLContentModel getElementContentModel(int elementDeclIndex,
                                              SubstitutionGroupComparator comparator)
                                       throws CMException
Overrides:
getElementContentModel in class Grammar

setContentSpecOrgUri

public void setContentSpecOrgUri(int contentSpecIndex,
                                 int orgUri)

getContentSpecOrgUri

public int getContentSpecOrgUri(int contentSpecIndex)

setDeferContentSpecExpansion

public void setDeferContentSpecExpansion()

setCheckUniqueParticleAttribution

public void setCheckUniqueParticleAttribution()

setAttributeDeclRegistry

protected void setAttributeDeclRegistry(java.util.Hashtable attrReg)

setComplexTypeRegistry

protected void setComplexTypeRegistry(java.util.Hashtable cTypeReg)

setDatatypeRegistry

protected void setDatatypeRegistry(DatatypeValidatorFactoryImpl dTypeReg)

setNamespacesScope

protected void setNamespacesScope(NamespacesScope nsScope)

setTargetNamespaceURI

protected void setTargetNamespaceURI(java.lang.String targetNSUri)

createElementDecl

protected int createElementDecl()
Overrides:
createElementDecl in class Grammar

setElementDecl

protected void setElementDecl(int elementDeclIndex,
                              XMLElementDecl elementDecl)
Overrides:
setElementDecl in class Grammar

createContentSpec

protected int createContentSpec()
Overrides:
createContentSpec in class Grammar

setContentSpec

protected void setContentSpec(int contentSpecIndex,
                              XMLContentSpec contentSpec)
Overrides:
setContentSpec in class Grammar

createAttributeDecl

protected int createAttributeDecl()
Overrides:
createAttributeDecl in class Grammar

setAttributeDecl

protected void setAttributeDecl(int elementDeclIndex,
                                int attributeDeclIndex,
                                XMLAttributeDecl attributeDecl)
Overrides:
setAttributeDecl in class Grammar

setElementDefinedScope

protected void setElementDefinedScope(int elementDeclIndex,
                                      int scopeDefined)

setElementFromAnotherSchemaURI

protected void setElementFromAnotherSchemaURI(int elementDeclIndex,
                                              java.lang.String anotherSchemaURI)

setElementComplexTypeInfo

protected void setElementComplexTypeInfo(int elementDeclIndex,
                                         TraverseSchema.ComplexTypeInfo typeInfo)

setElementDefault

protected void setElementDefault(int elementDeclIndex,
                                 java.lang.String defaultValue)

setElementDeclBlockSet

protected void setElementDeclBlockSet(int elementDeclIndex,
                                      int blockSet)

setElementDeclFinalSet

protected void setElementDeclFinalSet(int elementDeclIndex,
                                      int finalSet)

setElementDeclMiscFlags

protected void setElementDeclMiscFlags(int elementDeclIndex,
                                       int miscFlags)

setElementDeclSubstitutionGroupElementFullName

protected void setElementDeclSubstitutionGroupElementFullName(int elementDeclIndex,
                                                              java.lang.String substitutionGroupFullName)

setContentSpecMinOccurs

protected void setContentSpecMinOccurs(int contentSpecIndex,
                                       int minOccurs)

getContentSpecMinOccurs

protected int getContentSpecMinOccurs(int contentSpecIndex)

getContentSpecMaxOccurs

protected int getContentSpecMaxOccurs(int contentSpecIndex)

setContentSpecMaxOccurs

protected void setContentSpecMaxOccurs(int contentSpecIndex,
                                       int maxOccurs)

addElementDecl

protected int addElementDecl(QName eltQName,
                             int enclosingScope,
                             int scopeDefined,
                             int contentSpecType,
                             int contentSpecIndex,
                             int attrListHead,
                             DatatypeValidator dv)
Returns:
elementDecl Index,

addAttDef

protected void addAttDef(int templateElementIndex,
                         QName attQName,
                         int attType,
                         int enumeration,
                         int attDefaultType,
                         java.lang.String attDefaultValue,
                         DatatypeValidator dv,
                         boolean isList)
Returns:
the new attribute List Head

getAttributeDeclIndex

public int getAttributeDeclIndex(int elementIndex,
                                 QName attribute)

findAttributeDecl

public int findAttributeDecl(int attListHead,
                             QName attribute)

addContentSpecNode

protected int addContentSpecNode(int contentSpecType,
                                 int value,
                                 int otherValue,
                                 boolean mustBeUnique)
Returns:
the new contentSpec Index

expandContentModel

protected int expandContentModel(int index,
                                 int minOccurs,
                                 int maxOccurs)


Copyright © 1999-2001 Apache XML Project. All Rights Reserved.