public class XSTypeAlternativeImpl extends java.lang.Object implements XSTypeAlternative
| Modifier and Type | Field and Description |
|---|---|
protected XSObjectList |
fAnnotations
Optional annotations
|
protected java.lang.String |
fBaseURI |
protected java.lang.String |
fElementName
Name of the owning element
|
protected NamespaceSupport |
fNamespaceContext |
protected Test |
fTestExpr
The restricted XPath 2.0 expression that represents the test attribute
|
protected XSTypeDefinition |
fTypeDefinition
The type definition associated with the type alternative component
|
protected java.lang.String |
fXPathDefaultNamespace
Default XPath namespace
|
| Constructor and Description |
|---|
XSTypeAlternativeImpl(java.lang.String elementName,
XSTypeDefinition type,
XSObjectList annotations)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(XSTypeAlternativeImpl typeAlternative) |
XSObjectList |
getAnnotations()
Get the optional annotations
|
java.lang.String |
getBaseURI() |
java.lang.String |
getElementName() |
java.lang.String |
getName()
The name of type
NCName, as defined in XML Namespaces, of
this declaration specified in the {name} property of the
component or null if the definition of this component
does not have a {name} property. |
java.lang.String |
getNamespace()
The [target namespace] of this object, or
null if it is
unspecified. |
NamespaceSupport |
getNamespaceContext() |
XSNamespaceItem |
getNamespaceItem()
A namespace schema information item corresponding to the target
namespace of the component, if it is globally declared; or
null otherwise. |
Test |
getTest() |
java.lang.String |
getTestStr()
[test]: a restricted XPath 2.0 expression or null.
|
short |
getType()
Get the type of the object
|
XSTypeDefinition |
getTypeDefinition()
[type definition]: a valid type definition component
|
java.lang.String |
getXPathDefaultNamespace() |
void |
setAnnotations(XSObjectList annotations) |
void |
setBaseURI(java.lang.String baseUri) |
void |
setNamespaceContext(NamespaceSupport namespaceContext) |
void |
setTest(Test expr)
Sets the test attribute value
|
void |
setXPathDefauleNamespace(java.lang.String namespace) |
java.lang.String |
toString()
Returns a String representation of this object
|
protected final java.lang.String fElementName
protected Test fTestExpr
protected XSTypeDefinition fTypeDefinition
protected XSObjectList fAnnotations
protected java.lang.String fXPathDefaultNamespace
protected NamespaceSupport fNamespaceContext
protected java.lang.String fBaseURI
public XSTypeAlternativeImpl(java.lang.String elementName,
XSTypeDefinition type,
XSObjectList annotations)
public void setTest(Test expr)
public void setAnnotations(XSObjectList annotations)
public void setXPathDefauleNamespace(java.lang.String namespace)
public void setNamespaceContext(NamespaceSupport namespaceContext)
public void setBaseURI(java.lang.String baseUri)
public NamespaceSupport getNamespaceContext()
public java.lang.String getBaseURI()
public java.lang.String getElementName()
public java.lang.String getXPathDefaultNamespace()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(XSTypeAlternativeImpl typeAlternative)
public XSObjectList getAnnotations()
getAnnotations in interface XSTypeAlternativepublic java.lang.String getTestStr()
XSTypeAlternativegetTestStr in interface XSTypeAlternativepublic Test getTest()
public XSTypeDefinition getTypeDefinition()
XSTypeAlternativegetTypeDefinition in interface XSTypeAlternativepublic java.lang.String getName()
XSObjectNCName, as defined in XML Namespaces, of
this declaration specified in the {name} property of the
component or null if the definition of this component
does not have a {name} property. For anonymous types,
the processor must construct and expose an anonymous type name that
is distinct from the name of every named type and the name of every
other anonymous type.getName in interface XSObjectXSObject.getName()public java.lang.String getNamespace()
XSObjectnull if it is
unspecified.getNamespace in interface XSObjectXSObject.getNamespace()public XSNamespaceItem getNamespaceItem()
XSObjectnull otherwise.getNamespaceItem in interface XSObjectXSObject.getNamespaceItem()