| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | SchemaNamespaceSupport.SchemaRootContext
This class keeps track of the namespace bindings declared on ancestors of the schema root. |
| Modifier and Type | Field and Description |
|---|---|
| private SchemaNamespaceSupport. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | getEffectiveLocalContext()
This method returns an array of Strings, as would be stored in a NamespaceSupport object. |
| public String | getURI(String
The prefix to look up. prefix)Overrides org. Implements org. |
| public void | |
| public void | setEffectiveContext(String[] namespaceDecls)
This method takes a set of Strings, as stored in a NamespaceSupport object, and "fools" the object into thinking that this is one unified context. |
| fSchemaRootContext | back to summary |
|---|---|
| private SchemaNamespaceSupport. | |
| SchemaNamespaceSupport | back to summary |
|---|---|
| public SchemaNamespaceSupport(Element schemaRoot, SymbolTable symbolTable) | |
| SchemaNamespaceSupport | back to summary |
|---|---|
| public SchemaNamespaceSupport(SchemaNamespaceSupport nSupport) | |
| getEffectiveLocalContext | back to summary |
|---|---|
| public String[] getEffectiveLocalContext() This method returns an array of Strings, as would be stored in a NamespaceSupport object. This array contains all declarations except those at the global level. | |
| getURI | back to summary |
|---|---|
| public String getURI(String prefix) Overrides org. Implements org. Doc from org. Look up a prefix and get the currently-mapped Namespace URI. This method looks up the prefix in the current context. If no mapping is found, this methods will continue lookup in the parent context(s). Use the empty string ("") for the default Namespace. | |
| makeGlobal | back to summary |
|---|---|
| public void makeGlobal() | |
| setEffectiveContext | back to summary |
|---|---|
| public void setEffectiveContext(String[] namespaceDecls) This method takes a set of Strings, as stored in a
NamespaceSupport object, and "fools" the object into thinking
that this is one unified context. This is meant to be used in
conjunction with things like local elements, whose declarations
may be deeply nested but which for all practical purposes may
be regarded as being one level below the global | |
| Modifier and Type | Field and Description |
|---|---|
| private final QName | fAttributeQName
Temporary storage for attribute QNames. |
| pack-priv boolean | fDOMContextBuilt
Flag indicating whether the namespace context has been from the root node's ancestors. |
| pack-priv String[] | fNamespace
Namespace binding information. |
| pack-priv int | fNamespaceSize
The size of the namespace information array. |
| private final Element | fSchemaRoot
Schema root. |
| private final SymbolTable | fSymbolTable
Symbol table. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv void | |
| private void | |
| pack-priv String |
| fAttributeQName | back to summary |
|---|---|
| private final QName fAttributeQName Temporary storage for attribute QNames. | |
| fDOMContextBuilt | back to summary |
|---|---|
| pack-priv boolean fDOMContextBuilt Flag indicating whether the namespace context has been from the root node's ancestors. | |
| fNamespace | back to summary |
|---|---|
| pack-priv String[] fNamespace Namespace binding information. This array is composed of a series of tuples containing the namespace binding information: <prefix, uri>. | |
| fNamespaceSize | back to summary |
|---|---|
| pack-priv int fNamespaceSize The size of the namespace information array. | |
| fSchemaRoot | back to summary |
|---|---|
| private final Element fSchemaRoot Schema root. | |
| fSymbolTable | back to summary |
|---|---|
| private final SymbolTable fSymbolTable Symbol table. | |
| SchemaRootContext | back to summary |
|---|---|
| pack-priv SchemaRootContext(Element schemaRoot, SymbolTable symbolTable) | |
| declarePrefix | back to summary |
|---|---|
| private void declarePrefix(String prefix, String uri) | |
| fillNamespaceContext | back to summary |
|---|---|
| pack-priv void fillNamespaceContext() | |
| fillQName | back to summary |
|---|---|
| private void fillQName(QName toFill, Node node) | |
| getURI | back to summary |
|---|---|
| pack-priv String getURI(String prefix) | |