|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xerces.impl.scd.SCDResolver
Implements XML Schema: Component Designators (SCD)
Currently, this implementation has following limitations
1. the Schema Step is not supported
2. the axis types; Extension axis, Assertions axis, Alternative axis, Context axis
are not supported
3. Extension accessors are not supported
4. the top level Identity Constraint Definitions components are not supported.
5. all the other Schema 1.1 constructs that are not listed here, are not supported.
6. the schemaAttribute axis does not work as it is expected in the specification.
7. in some situations, the SCPs that have been reduced by the elided-componet axis do not
produce expected results
8. the fundamental facets are not supported (but the constraining facets are supported).
Constructor Summary | |
SCDResolver(org.apache.xerces.xs.XSModel xsModel)
Constructor |
Method Summary | |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SCDResolver(org.apache.xerces.xs.XSModel xsModel)
xsModel
- the schema description schema componentMethod Detail |
public 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 string
XSObjectList
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 component
XSObjectList
.
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 component
XSObjectList
.
SCDException
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |