public class SCDResolver
extends java.lang.Object
Constructor and Description |
---|
SCDResolver(org.apache.xerces.xs.XSModel xsModel)
Constructor
|
Modifier and Type | Method and Description |
---|---|
org.apache.xerces.xs.XSObjectList |
resolve(java.lang.String relativeSCD)
Resolves a relative SCD against the schema description schema component (i.e.
|
org.apache.xerces.xs.XSObjectList |
resolve(java.lang.String scp,
org.apache.xerces.xni.NamespaceContext nsContext)
Resolves an SCP against the schema description schema component (i.e.
|
org.apache.xerces.xs.XSObjectList |
resolve(java.lang.String incompleteSCP,
org.apache.xerces.xni.NamespaceContext nsContext,
org.apache.xerces.xs.XSObject currentComponent)
Resolves an incomplete SCP against a given schema component
|
org.apache.xerces.xs.XSObjectList |
resolve(java.lang.String incompleteSCD,
org.apache.xerces.xs.XSObject currentComponent)
Resolves an incomplete SCD against a given schema component
|
java.lang.String |
toString() |
public SCDResolver(org.apache.xerces.xs.XSModel xsModel)
xsModel
- the schema description schema componentpublic org.apache.xerces.xs.XSObjectList resolve(java.lang.String relativeSCD) throws SCDException
relativeSCD
- the input relative SCD string in the form of,[5] RelativeSchemaComponentDesignator ::= XmlnsPointerPart* XscdPointerPart
xmlns(p=http://www.example.com/schema/po)xscd(/type::p:SKU/facet::pattern)
XSObjectList
SCDException
public org.apache.xerces.xs.XSObjectList resolve(java.lang.String scp, org.apache.xerces.xni.NamespaceContext nsContext) throws SCDException
scp
- the input SCP to designate the components./type::p:SKU/facet::pattern
nsContext
- namespace context details for the component names used in the SCP stringXSObjectList
SCDException
public org.apache.xerces.xs.XSObjectList resolve(java.lang.String incompleteSCP, org.apache.xerces.xni.NamespaceContext nsContext, org.apache.xerces.xs.XSObject currentComponent) throws SCDException
incompleteSCP
- the incomplete SCP.
To emphasize the incompleteness of such paths, the current component step syntax may be used
(.) for the head step. For example, if the initial source component is a complex type,
the following paths are equivalent and designate the element declaration with the QName
my:section within the sequence model group of that type:model::sequence/schemaElement::my:section
./model::sequence/schemaElement::my:section
nsContext
- namespace context details for the component names used in the
incomplete SCP stringcurrentComponent
- the initial source componentXSObjectList
.SCDException
public org.apache.xerces.xs.XSObjectList resolve(java.lang.String incompleteSCD, org.apache.xerces.xs.XSObject currentComponent) throws SCDException
incompleteSCD
- the incomplete SCD string. which is in the form of [5] RelativeSchemaComponentDesignator ::= XmlnsPointerPart* XscdPointerPart
XscdPointerPart
contains an incomplete SCP instead of a complete SCP. xmlns(p=http://www.example.com/schema/po)xscd(./type::p:SKU/facet::pattern)
or xmlns(p=http://www.example.com/schema/po)xscd(type::p:SKU/facet::pattern)
currentComponent
- the initial source componentXSObjectList
.SCDException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.