|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.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.
Inner Class Summary | |
static class |
SchemaGrammar.BuiltinSchemaGrammar
|
Field Summary | |
static XSSimpleType |
fAnySimpleType
|
static XSComplexTypeDecl |
fAnyType
|
static SchemaGrammar.BuiltinSchemaGrammar |
SG_SchemaNS
|
static SchemaGrammar.BuiltinSchemaGrammar |
SG_XSI
|
Constructor Summary | |
SchemaGrammar(java.lang.String targetNamespace,
XSDDescription grammarDesc)
Default constructor. |
Method Summary | |
void |
addComplexTypeDecl(XSComplexTypeDecl decl,
weblogic.apache.xerces.impl.xs.util.SimpleLocator locator)
add one complex type decl: for later constraint checking |
void |
addDocument(java.lang.Object document,
java.lang.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(XSTypeDecl decl)
register one global type |
void |
addIDConstraintDecl(XSElementDecl elmDecl,
weblogic.apache.xerces.impl.xs.identity.IdentityConstraint decl)
register one identity constraint |
void |
addRedefinedGroupDecl(XSGroupDecl derived,
XSGroupDecl base,
weblogic.apache.xerces.impl.xs.util.SimpleLocator locator)
add a group redefined by restriction: for later constraint checking |
weblogic.apache.xerces.impl.xs.psvi.XSAttributeDeclaration |
getAttributeDecl(java.lang.String name)
Convenience method. |
weblogic.apache.xerces.impl.xs.psvi.XSAttributeGroupDefinition |
getAttributeGroup(java.lang.String name)
Convenience method. |
weblogic.apache.xerces.impl.xs.psvi.XSNamedMap |
getComponents(short objectType)
Returns a list of top-level components, i.e. |
weblogic.apache.xerces.impl.xs.psvi.StringList |
getDocumentLocations()
[document location] |
weblogic.apache.xerces.impl.xs.psvi.ObjectList |
getDocuments()
[document] |
weblogic.apache.xerces.impl.xs.psvi.XSElementDeclaration |
getElementDecl(java.lang.String name)
Convenience method. |
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 |
XSNotationDecl |
getGlobalNotationDecl(java.lang.String declName)
get one global notation |
XSTypeDecl |
getGlobalTypeDecl(java.lang.String declName)
get one global type |
XMLGrammarDescription |
getGrammarDescription()
|
weblogic.apache.xerces.impl.xs.identity.IdentityConstraint |
getIDConstraintDecl(java.lang.String declName)
get one identity constraint |
java.util.Vector |
getImportedGrammars()
|
weblogic.apache.xerces.impl.xs.psvi.XSModelGroupDefinition |
getModelGroupDefinition(java.lang.String name)
Convenience method. |
weblogic.apache.xerces.impl.xs.psvi.XSNotationDeclaration |
getNotationDecl(java.lang.String name)
Convenience method. |
java.lang.String |
getSchemaNamespace()
[schema namespace] |
java.lang.String |
getTargetNamespace()
Returns this grammar's target namespace. |
weblogic.apache.xerces.impl.xs.psvi.XSTypeDefinition |
getTypeDefinition(java.lang.String name)
Convenience method. |
boolean |
isNamespaceAware()
|
void |
setImportedGrammars(java.util.Vector importedGrammars)
|
weblogic.apache.xerces.impl.xs.psvi.XSModel |
toXSModel()
Return an XSModel that represents components in this schema
grammar. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final XSComplexTypeDecl fAnyType
public static final SchemaGrammar.BuiltinSchemaGrammar SG_SchemaNS
public static final XSSimpleType fAnySimpleType
public static final SchemaGrammar.BuiltinSchemaGrammar SG_XSI
Constructor Detail |
public SchemaGrammar(java.lang.String targetNamespace, XSDDescription grammarDesc)
targetNamespace
- grammarDesc
- the XMLGrammarDescription corresponding to this objec
at the least a systemId should always be known.Method Detail |
public XMLGrammarDescription getGrammarDescription()
public boolean isNamespaceAware()
public void setImportedGrammars(java.util.Vector importedGrammars)
public java.util.Vector getImportedGrammars()
public final java.lang.String getTargetNamespace()
public void addGlobalAttributeDecl(XSAttributeDecl decl)
public void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl)
public void addGlobalElementDecl(XSElementDecl decl)
public void addGlobalGroupDecl(XSGroupDecl decl)
public void addGlobalNotationDecl(XSNotationDecl decl)
public void addGlobalTypeDecl(XSTypeDecl decl)
public final void addIDConstraintDecl(XSElementDecl elmDecl, weblogic.apache.xerces.impl.xs.identity.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 getGlobalNotationDecl(java.lang.String declName)
public final XSTypeDecl getGlobalTypeDecl(java.lang.String declName)
public final weblogic.apache.xerces.impl.xs.identity.IdentityConstraint getIDConstraintDecl(java.lang.String declName)
public void addComplexTypeDecl(XSComplexTypeDecl decl, weblogic.apache.xerces.impl.xs.util.SimpleLocator locator)
public void addRedefinedGroupDecl(XSGroupDecl derived, XSGroupDecl base, weblogic.apache.xerces.impl.xs.util.SimpleLocator locator)
public void addDocument(java.lang.Object document, java.lang.String location)
public java.lang.String getSchemaNamespace()
public weblogic.apache.xerces.impl.xs.psvi.XSNamedMap getComponents(short objectType)
Note that XSTypeDefinition#SIMPLE_TYPE
and
XSTypeDefinition#COMPLEX_TYPE
can also be used as the
objectType
to retrieve only complex types or simple types,
instead of all types.
objectType
- The type of the declaration, i.e.
ELEMENT_DECLARATION, ATTRIBUTE_DECLARATION, etc.objectType
or null
.public weblogic.apache.xerces.impl.xs.psvi.XSTypeDefinition getTypeDefinition(java.lang.String name)
name
- The name of the definition.XSTypeDefinition
or null if such definition
does not exist.public weblogic.apache.xerces.impl.xs.psvi.XSAttributeDeclaration getAttributeDecl(java.lang.String name)
name
- The name of the declaration.public weblogic.apache.xerces.impl.xs.psvi.XSElementDeclaration getElementDecl(java.lang.String name)
name
- The name of the declaration.public weblogic.apache.xerces.impl.xs.psvi.XSAttributeGroupDefinition getAttributeGroup(java.lang.String name)
name
- The name of the definition.public weblogic.apache.xerces.impl.xs.psvi.XSModelGroupDefinition getModelGroupDefinition(java.lang.String name)
name
- The name of the definition.public weblogic.apache.xerces.impl.xs.psvi.XSNotationDeclaration getNotationDecl(java.lang.String name)
name
- The name of the declaration.public weblogic.apache.xerces.impl.xs.psvi.ObjectList getDocuments()
public weblogic.apache.xerces.impl.xs.psvi.StringList getDocumentLocations()
public weblogic.apache.xerces.impl.xs.psvi.XSModel toXSModel()
XSModel
that represents components in this schema
grammar.
XSModel
representing this schema grammar
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |