Implementation of Schema for W3C XML Schemas which contains no schema components.
Modifier and Type | Field and Description |
---|---|
private static final Grammar[] | ZERO_LENGTH_GRAMMAR_ARRAY
Zero length grammar array. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | cacheGrammars(String
the type of the grammars being returned; grammarType, Grammar[] an array containing the set of grammars being
returned; order is not significant. grammars)Implements com. return the final set of grammars that the validator ended up with. |
public void | clear()
Implements com. Removes all grammars from the pool. |
public XMLGrammarPool | getGrammarPool()
Implements com. Returns the grammar pool contained inside the container. |
public boolean | isFullyComposed()
Implements com. Returns whether the schema components contained in this object can be considered to be a fully composed schema and should be used to the exclusion of other schema components which may be present elsewhere. |
public void | lockPool()
Implements com. Causes the XMLGrammarPool not to store any grammars when the cacheGrammars(String, Grammar[[]) method is called. |
public Grammar | retrieveGrammar(XMLGrammarDescription
The description of the Grammar being requested. desc)Implements com. This method requests that the application retrieve a grammar corresponding to the given GrammarIdentifier from its cache. |
public Grammar[] | retrieveInitialGrammarSet(String
the type of the grammar, from the
grammarType)com.sun.org.apache.xerces.internal.xni.grammars.Grammar interface.Implements com. retrieve the initial known set of grammars. |
public void | unlockPool()
Implements com. Allows the XMLGrammarPool to store grammars when its cacheGrammars(String, Grammar[]) method is called. |
ZERO_LENGTH_GRAMMAR_ARRAY | back to summary |
---|---|
private static final Grammar[] ZERO_LENGTH_GRAMMAR_ARRAY Zero length grammar array. |
EmptyXMLSchema | back to summary |
---|---|
public EmptyXMLSchema() |
cacheGrammars | back to summary |
---|---|
public void cacheGrammars(String grammarType, Grammar[] grammars) Implements com. Doc from com. return the final set of grammars that the validator ended up with. This method is called after the validation finishes. The application may then choose to cache some of the returned grammars. |
clear | back to summary |
---|---|
public void clear() Implements com. Doc from com. Removes all grammars from the pool. |
getGrammarPool | back to summary |
---|---|
public XMLGrammarPool getGrammarPool() Implements com. Doc from com. Returns the grammar pool contained inside the container.
|
isFullyComposed | back to summary |
---|---|
public boolean isFullyComposed() Implements com. Doc from com. Returns whether the schema components contained in this object can be considered to be a fully composed schema and should be used to the exclusion of other schema components which may be present elsewhere.
|
lockPool | back to summary |
---|---|
public void lockPool() Implements com. Doc from com. Causes the XMLGrammarPool not to store any grammars when the cacheGrammars(String, Grammar[[]) method is called. |
retrieveGrammar | back to summary |
---|---|
public Grammar retrieveGrammar(XMLGrammarDescription desc) Implements com. Doc from com. This method requests that the application retrieve a grammar corresponding to the given GrammarIdentifier from its cache. If it cannot do so it must return null; the parser will then call the EntityResolver. An application must not call its EntityResolver itself from this method; this may result in infinite recursions.
|
retrieveInitialGrammarSet | back to summary |
---|---|
public Grammar[] retrieveInitialGrammarSet(String grammarType) Implements com. Doc from com. retrieve the initial known set of grammars. this method is called by a validator before the validation starts. the application can provide an initial set of grammars available to the current validation attempt. |
unlockPool | back to summary |
---|---|
public void unlockPool() Implements com. Doc from com. Allows the XMLGrammarPool to store grammars when its cacheGrammars(String, Grammar[]) method is called. This is the default state of the object. |