|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.impl.xs.SchemaGrammar
This class is to hold all schema component declaration that are declared within one namespace. The Grammar class this class extends contains what little commonality there is between XML Schema and DTD grammars. It's useful to distinguish grammar objects from other kinds of object when they exist in pools or caches.
Field Summary | |
static XSSimpleType |
fAnySimpleType
|
static org.apache.xerces.impl.xs.SchemaGrammar.XSAnyTypeDecl |
fAnyType
|
static SchemaGrammar |
SG_SchemaNS
|
Fields inherited from interface org.apache.xerces.xni.grammars.Grammar |
XML_DTD, XML_SCHEMA |
Constructor Summary | |
protected |
SchemaGrammar(SymbolTable symbolTable)
Special constructor to create the grammar for the schema namespace |
|
SchemaGrammar(SymbolTable symbolTable,
java.lang.String targetNamespace)
Default constructor. |
Method Summary | |
void |
addComplexTypeDecl(XSComplexTypeDecl decl,
SimpleLocator locator)
add one complex type decl: for later constraint checking |
void |
addGlobalAttributeDecl(XSAttributeDecl decl)
register one global attribute |
void |
addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl)
register one global attribute group |
void |
addGlobalElementDecl(XSElementDecl decl)
register one global element |
void |
addGlobalGroupDecl(XSGroupDecl decl)
register one global group |
void |
addGlobalNotationDecl(XSNotationDecl decl)
register one global notation |
void |
addGlobalTypeDecl(XSTypeDecl decl)
register one global type |
void |
addIDConstraintDecl(XSElementDecl elmDecl,
IdentityConstraint decl)
register one identity constraint |
void |
addRedefinedGroupDecl(XSGroupDecl derived,
XSGroupDecl base,
SimpleLocator locator)
add a group redefined by restriction: for later constraint checking |
XSAttributeDecl |
getGlobalAttributeDecl(java.lang.String declName)
get one global attribute |
XSAttributeGroupDecl |
getGlobalAttributeGroupDecl(java.lang.String declName)
get one global attribute group |
XSElementDecl |
getGlobalElementDecl(java.lang.String declName)
get one global element |
XSGroupDecl |
getGlobalGroupDecl(java.lang.String declName)
get one global group |
XSTypeDecl |
getGlobalTypeDecl(java.lang.String declName)
get one global type |
java.lang.String |
getGrammarType()
|
IdentityConstraint |
getIDConstraintDecl(java.lang.String declName)
get one identity constraint |
XSNotationDecl |
getNotationDecl(java.lang.String declName)
get one global notation |
java.lang.String |
getTargetNamespace()
Returns this grammar's target namespace. |
boolean |
isNamespaceAware()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.apache.xerces.impl.xs.SchemaGrammar.XSAnyTypeDecl fAnyType
public static final SchemaGrammar SG_SchemaNS
public static final XSSimpleType fAnySimpleType
Constructor Detail |
public SchemaGrammar(SymbolTable symbolTable, java.lang.String targetNamespace)
symbolTable
- targetNamespace
- protected SchemaGrammar(SymbolTable symbolTable)
symbolTable
- fullSet
- Method Detail |
public java.lang.String getGrammarType()
getGrammarType
in interface org.apache.xerces.xni.grammars.Grammar
public boolean isNamespaceAware()
public final java.lang.String getTargetNamespace()
public final void addGlobalAttributeDecl(XSAttributeDecl decl)
public final void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl)
public final void addGlobalElementDecl(XSElementDecl decl)
public final void addGlobalGroupDecl(XSGroupDecl decl)
public final void addGlobalNotationDecl(XSNotationDecl decl)
public final void addGlobalTypeDecl(XSTypeDecl decl)
public final void addIDConstraintDecl(XSElementDecl elmDecl, IdentityConstraint decl)
public final XSAttributeDecl getGlobalAttributeDecl(java.lang.String declName)
public final XSAttributeGroupDecl getGlobalAttributeGroupDecl(java.lang.String declName)
public final XSElementDecl getGlobalElementDecl(java.lang.String declName)
public final XSGroupDecl getGlobalGroupDecl(java.lang.String declName)
public final XSNotationDecl getNotationDecl(java.lang.String declName)
public final XSTypeDecl getGlobalTypeDecl(java.lang.String declName)
public final IdentityConstraint getIDConstraintDecl(java.lang.String declName)
public final void addComplexTypeDecl(XSComplexTypeDecl decl, SimpleLocator locator)
public final void addRedefinedGroupDecl(XSGroupDecl derived, XSGroupDecl base, SimpleLocator locator)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |