| org.netbeans.modules.xml.xpath.ext.XPathSchemaContext
All known Subclasses: org.netbeans.modules.xml.xpath.ext.impl.WildcardSchemaContext, org.netbeans.modules.xml.xpath.ext.spi.VariableSchemaContext, org.netbeans.modules.xml.xpath.ext.spi.SimpleSchemaContext, org.netbeans.modules.xml.xpath.ext.impl.MultiCompSchemaContext,
XPathSchemaContext | public interface XPathSchemaContext (Code) | | It is intended to:
-- resolve schema types of steps in a location path.
-- specify a context for relative locatoin paths;
-- specify a context for the root step of the absolute locatoin paths;
-- specify a context for XSL templates or for-each constructs.
Contexts can be organized in chains. This chains can contain repeated
parts in case of recursive XML schemas.
Context can reference multiple Schema components. It is necessary to support
XPath wildcards "*" or double slash "//". In such case a location step can
have a set of possible schema types.
The context isn't intended to specify a global schema element (type) from
which an absolute location path should be started.
It is also isn't intended to specify a schema type, which should be produced
as a result of an XPath expression usage.
The main use-case is the following:
-- The new context is constructed or taken from outside and it is specified
for a new XPath model.
-- The Model is parsed and resolved. The internal model schema resolver
assigns context for all components of the XPath model, for which
it can be specified.
author: nk160297 |
Inner Class :final public class SchemaCompPair | |
Inner Class :final public class Utilities | |
getSchemaCompPairs | Set<SchemaCompPair> getSchemaCompPairs()(Code) | | Returns objects which hold the references to context schema components.
|
getUsedSchemaCompPairs | Set<SchemaCompPair> getUsedSchemaCompPairs()(Code) | | This method returns only those schema component pairs which
are used by next element of the context chain.
|
setUsedSchemaComp | void setUsedSchemaComp(Set<SchemaComponent> compSet)(Code) | | The context can contain multiple variants of Schema component.
But if it isn't the last in the chain then there are next chain item
which can specify which schema components are used.
|
|
|