Java Doc for SCD.java in » 6.0-JDK-Modules » jaxb-xjc » com » sun » xml » xsom » Java Source Code / Java DocumentationJava Source Code and Java Documentation
selectSingle(XSComponent contextNode) Evaluates the SCD against the given context node and
returns the matched node.
null if the SCD didn't match anything.
selectSingle(XSSchemaSet contextNode) Evaluates the SCD against the whole schema set and
returns the matched node.
null if the SCD didn't match anything.
This method involves parsing the path expression and preparing the in-memory
structure, so this is useful when you plan to use the same SCD against
different context node multiple times.
If you want to evaluate SCD just once, use
XSComponent.select methods.
Parameters: path - the string representation of SCD, such as "/foo/bar". Parameters: nsContext - Its NamespaceContext.getNamespaceURI(String) is usedto resolve prefixes in the SCD to the namespace URI.
Evaluates the SCD against the given set of context nodes and
returns the matched nodes.
Parameters: contextNodes - XSComponents that represent the context node againstwhich SCD is evaluated.could be empty but never be null.
Evaluates the SCD against the given set of context nodes and
returns the matched nodes.
Parameters: contextNodes - XSComponents that represent the context node againstwhich SCD is evaluated.could be empty but never be null.
Evaluates the SCD against the given context node and
returns the matched node.
null if the SCD didn't match anything. If the SCD matched more than one node,the first one will be returned.
Evaluates the SCD against the whole schema set and
returns the matched node.
null if the SCD didn't match anything. If the SCD matched more than one node,the first one will be returned.