Modifier and Type | Field and Description |
---|---|
pack-priv Map | fGrammarRegistry
Map that maps between Namespace and a Grammar |
pack-priv SchemaGrammar |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public SchemaGrammar | Returns: SchemaGrammar associated with the namespaceGet the schema grammar for the specified namespace |
public SchemaGrammar[] | |
public void | putGrammar(SchemaGrammar
the grammar to put in the registry grammar)Put a schema grammar into the registry This method is for internal use only: it assumes that a grammar with the same target namespace is not already in the bucket. |
public boolean | Returns: whether the process succeededthe grammar to put in the registry grammar, boolean whether to add imported grammars deep)put a schema grammar and any grammars imported by it (directly or inderectly) into the registry. |
public boolean | Returns: whether the process succeededthe grammar to put in the registry grammar, boolean whether to add imported grammars deep, boolean whether to ignore grammars that already exist in the grammar
bucket or not - including 'grammar' parameter. ignoreConflict)put a schema grammar and any grammars imported by it (directly or inderectly) into the registry. |
public void |
fGrammarRegistry | back to summary |
---|---|
pack-priv Map<String, SchemaGrammar> fGrammarRegistry Map that maps between Namespace and a Grammar |
fNoNSGrammar | back to summary |
---|---|
pack-priv SchemaGrammar fNoNSGrammar |
XSGrammarBucket | back to summary |
---|---|
public XSGrammarBucket() |
getGrammar | back to summary |
---|---|
public SchemaGrammar getGrammar(String namespace) Get the schema grammar for the specified namespace
|
getGrammars | back to summary |
---|---|
public SchemaGrammar[] getGrammars() get all grammars in the registry
|
putGrammar | back to summary |
---|---|
public void putGrammar(SchemaGrammar grammar) Put a schema grammar into the registry This method is for internal use only: it assumes that a grammar with the same target namespace is not already in the bucket.
|
putGrammar | back to summary |
---|---|
public boolean putGrammar(SchemaGrammar grammar, boolean deep) put a schema grammar and any grammars imported by it (directly or inderectly) into the registry. when a grammar with the same target namespace is already in the bucket, and different from the one being added, it's an error, and no grammar will be added into the bucket.
|
putGrammar | back to summary |
---|---|
public boolean putGrammar(SchemaGrammar grammar, boolean deep, boolean ignoreConflict) put a schema grammar and any grammars imported by it (directly or inderectly) into the registry. when a grammar with the same target namespace is already in the bucket, and different from the one being added, no grammar will be added into the bucket.
|
reset | back to summary |
---|---|
public void reset() Clear the registry. Revisit update to use another XSGrammarBucket |