public class SCDResolver extends Object
| Constructor and Description |
|---|
SCDResolver(XSModel xsModel)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
XSObjectList |
resolve(String relativeSCD)
Resolves a relative SCD against the schema description schema component (i.e.
|
XSObjectList |
resolve(String scp,
NamespaceContext nsContext)
Resolves an SCP against the schema description schema component (i.e.
|
XSObjectList |
resolve(String incompleteSCP,
NamespaceContext nsContext,
XSObject currentComponent)
Resolves an incomplete SCP against a given schema component
|
XSObjectList |
resolve(String incompleteSCD,
XSObject currentComponent)
Resolves an incomplete SCD against a given schema component
|
String |
toString() |
public SCDResolver(XSModel xsModel)
xsModel - the schema description schema componentpublic XSObjectList resolve(String relativeSCD) throws SCDException
relativeSCD - the input relative SCD string in the form of,[5] RelativeSchemaComponentDesignator ::= XmlnsPointerPart* XscdPointerPartxmlns(p=http://www.example.com/schema/po)xscd(/type::p:SKU/facet::pattern)XSObjectListSCDExceptionpublic XSObjectList resolve(String scp, NamespaceContext nsContext) throws SCDException
scp - the input SCP to designate the components./type::p:SKU/facet::patternnsContext - namespace context details for the component names used in the SCP stringXSObjectListSCDExceptionpublic XSObjectList resolve(String incompleteSCP, NamespaceContext nsContext, 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:sectionnsContext - namespace context details for the component names used in the
incomplete SCP stringcurrentComponent - the initial source componentXSObjectList.SCDExceptionpublic XSObjectList resolve(String incompleteSCD, XSObject currentComponent) throws SCDException
incompleteSCD - the incomplete SCD string. which is in the form of [5] RelativeSchemaComponentDesignator ::= XmlnsPointerPart* XscdPointerPartXscdPointerPart 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.SCDExceptionCopyright © 2013. All rights reserved.