| com.sun.xml.xsom.XSComponent
All known Subclasses: com.sun.xml.xsom.impl.ComponentImpl,
XSComponent | public interface XSComponent (Code) | | Base interface for all the schema components.
author: Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) |
getAnnotation | XSAnnotation getAnnotation()(Code) | | Gets the annotation associated to this component, if any.
|
getForeignAttributes | List<? extends ForeignAttributes> getForeignAttributes()(Code) | | Gets the foreign attributes on this schema component.
In general, a schema component may match multiple elements
in a schema document, and those elements can individually
carry foreign attributes.
This method returns a list of
ForeignAttributes , where
each
ForeignAttributes object represent foreign attributes
on one element.
can be an empty list but never be null. |
getLocator | Locator getLocator()(Code) | | Gets the locator that indicates the source location where
this component is created from, or null if no information is
available.
|
getOwnerSchema | XSSchema getOwnerSchema()(Code) | | Gets a reference to the
XSSchema object to which this component
belongs.
In case of XSEmpty component, this method
returns null since there is no owner component.
|
getRoot | XSSchemaSet getRoot()(Code) | | Gets the root schema set that includes this component.
In case of XSEmpty component, this method
returns null since there is no owner component.
|
getSourceDocument | SchemaDocument getSourceDocument()(Code) | | Gets the
SchemaDocument that indicates which document this component
was defined in.
null for components that are built-in to XML Schema, suchas anyType, or "empty" XSContentType. This method alsoreturns null for XSSchema.For all other user-definedcomponents this method returns non-null, even if they are local. |
select | Collection<XSComponent> select(String scd, NamespaceContext nsContext)(Code) | | Evaluates a schema component designator against this schema component
and returns the resulting schema components.
throws: IllegalArgumentException - if SCD is syntactically incorrect. Parameters: scd - Schema component designator. See SCD for more details. Parameters: nsContext - The namespace context in which SCD is evaluated. Cannot be null.Can be empty but never null. |
selectSingle | XSComponent selectSingle(String scd, NamespaceContext nsContext)(Code) | | Evaluates a schema component designator against this schema component
and returns the first resulting schema component.
throws: IllegalArgumentException - if SCD is syntactically incorrect. Parameters: scd - Schema component designator. See SCD for more details. Parameters: nsContext - The namespace context in which SCD is evaluated. Cannot be null.null if the SCD didn't match anything. If the SCD matched more than one node,the first one will be returned. |
|
|