Package org.apache.xerces.impl.xs
Class SchemaGrammar.BuiltinSchemaGrammar
java.lang.Object
org.apache.xerces.impl.xs.SchemaGrammar
org.apache.xerces.impl.xs.SchemaGrammar.BuiltinSchemaGrammar
- All Implemented Interfaces:
org.apache.xerces.xni.grammars.Grammar
,org.apache.xerces.xni.grammars.XSGrammar
,org.apache.xerces.xs.XSNamespaceItem
- Enclosing class:
SchemaGrammar
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.xerces.impl.xs.SchemaGrammar
SchemaGrammar.BuiltinSchemaGrammar, SchemaGrammar.Schema4Annotations
-
Field Summary
Fields inherited from class org.apache.xerces.impl.xs.SchemaGrammar
fAnySimpleType, fAnyType, SG_SchemaNS, SG_XSI
-
Constructor Summary
ConstructorsConstructorDescriptionBuiltinSchemaGrammar
(int grammar, short schemaVersion) Special constructor to create the grammars for the schema namespaces -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComplexTypeDecl
(XSComplexTypeDecl decl, SimpleLocator locator) add one complex type decl: for later constraint checkingvoid
addDocument
(Object document, String location) void
register one global attributevoid
addGlobalAttributeDecl
(XSAttributeDecl decl, String location) void
register one global attribute groupvoid
addGlobalAttributeGroupDecl
(XSAttributeGroupDecl decl, String location) void
register one global complex typevoid
addGlobalComplexTypeDecl
(XSComplexTypeDecl decl, String location) void
void
addGlobalElementDecl
(XSElementDecl decl, String location) void
register one global elementvoid
register one global groupvoid
addGlobalGroupDecl
(XSGroupDecl decl, String location) void
register one global notationvoid
addGlobalNotationDecl
(XSNotationDecl decl, String location) void
register one global simple typevoid
addGlobalSimpleTypeDecl
(XSSimpleType decl, String location) void
addGlobalTypeDecl
(org.apache.xerces.xs.XSTypeDefinition decl) register one global typevoid
addGlobalTypeDecl
(org.apache.xerces.xs.XSTypeDefinition decl, String location) void
addRedefinedGroupDecl
(XSGroupDecl derived, XSGroupDecl base, SimpleLocator locator) add a group redefined by restriction: for later constraint checkingorg.apache.xerces.xni.grammars.XMLGrammarDescription
get theXMLGrammarDescription
associated with this objectvoid
setImportedGrammars
(Vector importedGrammars) Methods inherited from class org.apache.xerces.impl.xs.SchemaGrammar
addAnnotation, addIDConstraintDecl, addIDConstraintDecl, getAnnotations, getAttributeDeclaration, getAttributeGroup, getComponents, getComponentsExt, getDocumentLocations, getElementDeclaration, getGlobalAttributeDecl, getGlobalAttributeDecl, getGlobalAttributeGroupDecl, getGlobalAttributeGroupDecl, getGlobalElementDecl, getGlobalElementDecl, getGlobalGroupDecl, getGlobalGroupDecl, getGlobalNotationDecl, getGlobalNotationDecl, getGlobalTypeDecl, getGlobalTypeDecl, getIDCDefinition, getIDConstraintDecl, getIDConstraintDecl, getImportedGrammars, getModelGroupDefinition, getNotationDeclaration, getS4SGrammar, getSchemaNamespace, getTargetNamespace, getTypeDefinition, hasIDConstraints, isImmutable, isNamespaceAware, removeDocument, resetComponents, setImmutable, toXSModel, toXSModel
-
Constructor Details
-
BuiltinSchemaGrammar
public BuiltinSchemaGrammar(int grammar, short schemaVersion) Special constructor to create the grammars for the schema namespaces- Parameters:
grammar
-
-
-
Method Details
-
getGrammarDescription
public org.apache.xerces.xni.grammars.XMLGrammarDescription getGrammarDescription()Description copied from interface:org.apache.xerces.xni.grammars.Grammar
get theXMLGrammarDescription
associated with this object- Specified by:
getGrammarDescription
in interfaceorg.apache.xerces.xni.grammars.Grammar
- Overrides:
getGrammarDescription
in classSchemaGrammar
-
setImportedGrammars
- Overrides:
setImportedGrammars
in classSchemaGrammar
-
addGlobalAttributeDecl
Description copied from class:SchemaGrammar
register one global attribute- Overrides:
addGlobalAttributeDecl
in classSchemaGrammar
-
addGlobalAttributeDecl
- Overrides:
addGlobalAttributeDecl
in classSchemaGrammar
-
addGlobalAttributeGroupDecl
Description copied from class:SchemaGrammar
register one global attribute group- Overrides:
addGlobalAttributeGroupDecl
in classSchemaGrammar
-
addGlobalAttributeGroupDecl
- Overrides:
addGlobalAttributeGroupDecl
in classSchemaGrammar
-
addGlobalElementDecl
- Overrides:
addGlobalElementDecl
in classSchemaGrammar
-
addGlobalElementDecl
- Overrides:
addGlobalElementDecl
in classSchemaGrammar
-
addGlobalElementDeclAll
Description copied from class:SchemaGrammar
register one global element- Overrides:
addGlobalElementDeclAll
in classSchemaGrammar
-
addGlobalGroupDecl
Description copied from class:SchemaGrammar
register one global group- Overrides:
addGlobalGroupDecl
in classSchemaGrammar
-
addGlobalGroupDecl
- Overrides:
addGlobalGroupDecl
in classSchemaGrammar
-
addGlobalNotationDecl
Description copied from class:SchemaGrammar
register one global notation- Overrides:
addGlobalNotationDecl
in classSchemaGrammar
-
addGlobalNotationDecl
- Overrides:
addGlobalNotationDecl
in classSchemaGrammar
-
addGlobalTypeDecl
public void addGlobalTypeDecl(org.apache.xerces.xs.XSTypeDefinition decl) Description copied from class:SchemaGrammar
register one global type- Overrides:
addGlobalTypeDecl
in classSchemaGrammar
-
addGlobalTypeDecl
- Overrides:
addGlobalTypeDecl
in classSchemaGrammar
-
addGlobalComplexTypeDecl
Description copied from class:SchemaGrammar
register one global complex type- Overrides:
addGlobalComplexTypeDecl
in classSchemaGrammar
-
addGlobalComplexTypeDecl
- Overrides:
addGlobalComplexTypeDecl
in classSchemaGrammar
-
addGlobalSimpleTypeDecl
Description copied from class:SchemaGrammar
register one global simple type- Overrides:
addGlobalSimpleTypeDecl
in classSchemaGrammar
-
addGlobalSimpleTypeDecl
- Overrides:
addGlobalSimpleTypeDecl
in classSchemaGrammar
-
addComplexTypeDecl
Description copied from class:SchemaGrammar
add one complex type decl: for later constraint checking- Overrides:
addComplexTypeDecl
in classSchemaGrammar
-
addRedefinedGroupDecl
Description copied from class:SchemaGrammar
add a group redefined by restriction: for later constraint checking- Overrides:
addRedefinedGroupDecl
in classSchemaGrammar
-
addDocument
- Overrides:
addDocument
in classSchemaGrammar
-