org.apache.xerces.impl.xs

Class SchemaGrammar.Schema4Annotations

Enclosing Class:
SchemaGrammar
Implemented Interfaces:
org.apache.xerces.xni.grammars.XSGrammar, org.apache.xerces.xs.XSNamespaceItem

public static final class SchemaGrammar.Schema4Annotations
extends SchemaGrammar

A partial schema for schemas for validating annotations.
Author:
Michael Glavassevich, IBM

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

SG_Schema4Annotations, SG_SchemaNS, SG_XSI, fAnySimpleType, fAnyType

Constructor Summary

Schema4Annotations()
Special constructor to create a schema capable of validating annotations.

Method Summary

void
addComplexTypeDecl(XSComplexTypeDecl decl, SimpleLocator locator)
add one complex type decl: for later constraint checking
void
addDocument(Object document, String location)
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(org.apache.xerces.xs.XSTypeDefinition decl)
register one global type
void
addRedefinedGroupDecl(XSGroupDecl derived, XSGroupDecl base, SimpleLocator locator)
add a group redefined by restriction: for later constraint checking
org.apache.xerces.xni.grammars.XMLGrammarDescription
getGrammarDescription()
void
setImportedGrammars(Vector importedGrammars)

Methods inherited from class org.apache.xerces.impl.xs.SchemaGrammar

addAnnotation, addComplexTypeDecl, addDocument, addGlobalAttributeDecl, addGlobalAttributeGroupDecl, addGlobalElementDecl, addGlobalGroupDecl, addGlobalNotationDecl, addGlobalTypeDecl, addIDConstraintDecl, addRedefinedGroupDecl, getAnnotations, getAttributeDeclaration, getAttributeGroup, getComponents, getDocumentLocations, getElementDeclaration, getGlobalAttributeDecl, getGlobalAttributeGroupDecl, getGlobalElementDecl, getGlobalGroupDecl, getGlobalNotationDecl, getGlobalTypeDecl, getGrammarDescription, getIDConstraintDecl, getImportedGrammars, getModelGroupDefinition, getNotationDeclaration, getSchemaNamespace, getTargetNamespace, getTypeDefinition, hasIDConstraints, isNamespaceAware, setImportedGrammars, toXSModel, toXSModel

Constructor Details

Schema4Annotations

public Schema4Annotations()
Special constructor to create a schema capable of validating annotations.

Method Details

addComplexTypeDecl

public void addComplexTypeDecl(XSComplexTypeDecl decl,
                               SimpleLocator locator)
add one complex type decl: for later constraint checking
Overrides:
addComplexTypeDecl in interface SchemaGrammar

addDocument

public void addDocument(Object document,
                        String location)
Overrides:
addDocument in interface SchemaGrammar

addGlobalAttributeDecl

public void addGlobalAttributeDecl(XSAttributeDecl decl)
register one global attribute
Overrides:
addGlobalAttributeDecl in interface SchemaGrammar

addGlobalAttributeGroupDecl

public void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl)
register one global attribute group
Overrides:
addGlobalAttributeGroupDecl in interface SchemaGrammar

addGlobalElementDecl

public void addGlobalElementDecl(XSElementDecl decl)
register one global element
Overrides:
addGlobalElementDecl in interface SchemaGrammar

addGlobalGroupDecl

public void addGlobalGroupDecl(XSGroupDecl decl)
register one global group
Overrides:
addGlobalGroupDecl in interface SchemaGrammar

addGlobalNotationDecl

public void addGlobalNotationDecl(XSNotationDecl decl)
register one global notation
Overrides:
addGlobalNotationDecl in interface SchemaGrammar

addGlobalTypeDecl

public void addGlobalTypeDecl(org.apache.xerces.xs.XSTypeDefinition decl)
register one global type
Overrides:
addGlobalTypeDecl in interface SchemaGrammar

addRedefinedGroupDecl

public void addRedefinedGroupDecl(XSGroupDecl derived,
                                  XSGroupDecl base,
                                  SimpleLocator locator)
add a group redefined by restriction: for later constraint checking
Overrides:
addRedefinedGroupDecl in interface SchemaGrammar

getGrammarDescription

public org.apache.xerces.xni.grammars.XMLGrammarDescription getGrammarDescription()
Specified by:
getGrammarDescription in interface org.apache.xerces.xni.grammars.Grammar
Overrides:
getGrammarDescription in interface SchemaGrammar

setImportedGrammars

public void setImportedGrammars(Vector importedGrammars)
Overrides:
setImportedGrammars in interface SchemaGrammar

Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.