org.merlotxml.util.xml.xerces
Class SchemaGrammarDocumentImpl

java.lang.Object
  extended byorg.merlotxml.util.xml.xerces.SchemaGrammarDocumentImpl
All Implemented Interfaces:
GrammarDocument

public class SchemaGrammarDocumentImpl
extends java.lang.Object
implements GrammarDocument

An implementation of GrammarDocument for Schemas.

Author:
Evert Hoff

Constructor Summary
SchemaGrammarDocumentImpl(org.apache.xerces.xni.grammars.Grammar[] grammars)
          Constructor for the SchemaGrammarDocumentImpl object.
 
Method Summary
protected  void addComplexType(org.apache.xerces.xs.XSElementDeclaration decl, GrammarComplexType complexType)
          Gets called from the constructors of children, so that the document knows about all of them.
protected  void addDeclaredType(org.apache.xerces.xs.XSElementDeclaration decl)
           
protected  GrammarComplexType getComplexType(org.apache.xerces.xs.XSElementDeclaration decl)
          Allow access to a complex type - this may be required when an element is used in different parts of the schema
 GrammarComplexType getGrammarComplexType(GrammarComplexType parent, java.lang.String name)
          Gets the grammarComplexType attribute of the SchemaGrammarDocumentImpl object
 SchemaIdentityConstraintValidator getSchemaIdentityConstraintValidator()
          Returns the _schemaIdentityConstraintValidator.
 GrammarComplexType getTopLevelGrammarComplexType(java.lang.String name)
          Gets the topLevelGrammarComplexType attribute of the SchemaGrammarDocumentImpl object
 GrammarComplexType[] getTopLevelGrammarComplexTypes()
          Gets the topLevelGrammarComplexTypes attribute of the SchemaGrammarDocumentImpl object
protected  boolean isDeclaredType(org.apache.xerces.xs.XSElementDeclaration decl)
           
 void setSchemaIdentityConstraintValidator(SchemaIdentityConstraintValidator schemaIdentityConstraintValidator)
          Method setSchemaIdentityConstraintValidator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaGrammarDocumentImpl

public SchemaGrammarDocumentImpl(org.apache.xerces.xni.grammars.Grammar[] grammars)
Constructor for the SchemaGrammarDocumentImpl object. Called from DOMLiaison.parseValidXMLStream()

Parameters:
grammars - Description of Parameter
Method Detail

getGrammarComplexType

public GrammarComplexType getGrammarComplexType(GrammarComplexType parent,
                                                java.lang.String name)
Gets the grammarComplexType attribute of the SchemaGrammarDocumentImpl object

Specified by:
getGrammarComplexType in interface GrammarDocument
Parameters:
parent - Description of Parameter
name - Description of Parameter
Returns:
The grammarComplexType value

getTopLevelGrammarComplexType

public GrammarComplexType getTopLevelGrammarComplexType(java.lang.String name)
Gets the topLevelGrammarComplexType attribute of the SchemaGrammarDocumentImpl object

Specified by:
getTopLevelGrammarComplexType in interface GrammarDocument
Parameters:
name - Description of Parameter
Returns:
The topLevelGrammarComplexType value

getTopLevelGrammarComplexTypes

public GrammarComplexType[] getTopLevelGrammarComplexTypes()
Gets the topLevelGrammarComplexTypes attribute of the SchemaGrammarDocumentImpl object

Specified by:
getTopLevelGrammarComplexTypes in interface GrammarDocument
Returns:
The topLevelGrammarComplexTypes value

addComplexType

protected void addComplexType(org.apache.xerces.xs.XSElementDeclaration decl,
                              GrammarComplexType complexType)
Gets called from the constructors of children, so that the document knows about all of them.

Parameters:
decl - The feature to be added to the ComplexType attribute
complexType - The feature to be added to the ComplexType attribute

getComplexType

protected GrammarComplexType getComplexType(org.apache.xerces.xs.XSElementDeclaration decl)
Allow access to a complex type - this may be required when an element is used in different parts of the schema


addDeclaredType

protected void addDeclaredType(org.apache.xerces.xs.XSElementDeclaration decl)

isDeclaredType

protected boolean isDeclaredType(org.apache.xerces.xs.XSElementDeclaration decl)

setSchemaIdentityConstraintValidator

public void setSchemaIdentityConstraintValidator(SchemaIdentityConstraintValidator schemaIdentityConstraintValidator)
Method setSchemaIdentityConstraintValidator.

Parameters:
schemaIdentityConstraintValidator -

getSchemaIdentityConstraintValidator

public SchemaIdentityConstraintValidator getSchemaIdentityConstraintValidator()
Returns the _schemaIdentityConstraintValidator.

Returns:
SchemaIdentityConstraintValidator