| Modifier and Type | Method and Description |
|---|---|
| public <T> T | |
| public XSAnnotation | |
| public XSAnnotation | Returns: null ifcreateIfNotExist==false and annotation didn't exist.
Otherwise non-null.true to create a new createIfNotExist)XSAnnotation if it doesn't exist already.
false to make this method behavel like getAnnotation().Works like |
| public String | getForeignAttribute(String nsUri, String localName)
Gets the foreign attribute of the given name, or null if not found. |
| public List | Returns: can be an empty list but never be null.Gets the foreign attributes on this schema component. |
| public Locator | getLocator()
Gets the locator that indicates the source location where this component is created from, or null if no information is available. |
| public XSSchema | |
| public XSSchemaSet | |
| public SchemaDocument | Returns: null for components that are built-in to XML Schema, such as anyType, or "empty"XSContentType. This method also
returns null for XSSchema.
For all other user-defined
components this method returns non-null, even if they are local.Gets the |
| public Collection | Returns: Can be empty but never null.Schema component designator. See scd, NamespaceContext SCD for more details.The namespace context in which SCD is evaluated. Cannot be null. nsContext)Evaluates a schema component designator against this schema component and returns the resulting schema components. |
| public XSComponent | Returns: null if the SCD didn't match anything. If the SCD matched more than one node, the first one will be returned.Schema component designator. See scd, NamespaceContext SCD for more details.The namespace context in which SCD is evaluated. Cannot be null. nsContext)Evaluates a schema component designator against this schema component and returns the first resulting schema component. |
| public void |
| apply | back to summary |
|---|---|
| public <T> T apply(XSFunction<T> function) Accepts a functor. | |
| getAnnotation | back to summary |
|---|---|
| public XSAnnotation getAnnotation() Gets the annotation associated to this component, if any. | |
| getAnnotation | back to summary |
|---|---|
| public XSAnnotation getAnnotation(boolean createIfNotExist) Works like
| |
| getForeignAttribute | back to summary |
|---|---|
| public String getForeignAttribute(String nsUri, String localName) Gets the foreign attribute of the given name, or null if not found. If multiple occurrences of the same attribute is found, this method returns the first one.
| |
| getForeignAttributes | back to summary |
|---|---|
| public List 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
| |
| getLocator | back to summary |
|---|---|
| public Locator getLocator() Gets the locator that indicates the source location where this component is created from, or null if no information is available. | |
| getOwnerSchema | back to summary |
|---|---|
| public XSSchema getOwnerSchema() Gets a reference to the
In case of | |
| getRoot | back to summary |
|---|---|
| public XSSchemaSet getRoot() Gets the root schema set that includes this component.
In case of | |
| getSourceDocument | back to summary |
|---|---|
| public SchemaDocument getSourceDocument() Gets the
| |
| select | back to summary |
|---|---|
| public Collection Evaluates a schema component designator against this schema component and returns the resulting schema components.
| |
| selectSingle | back to summary |
|---|---|
| public XSComponent selectSingle(String scd, NamespaceContext nsContext) Evaluates a schema component designator against this schema component and returns the first resulting schema component.
| |
| visit | back to summary |
|---|---|
| public void visit(XSVisitor visitor) Accepts a visitor. | |