public class XSTypeAlternativeImpl extends Object implements XSTypeAlternative
| Modifier and Type | Field and Description |
|---|---|
protected XSObjectList |
fAnnotations
Optional annotations
|
protected String |
fBaseURI |
protected 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 String |
fXPathDefaultNamespace
Default XPath namespace
|
| Constructor and Description |
|---|
XSTypeAlternativeImpl(String elementName,
XSTypeDefinition type,
XSObjectList annotations)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(XSTypeAlternativeImpl typeAlternative) |
XSObjectList |
getAnnotations()
Get the optional annotations
|
String |
getBaseURI() |
String |
getElementName() |
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. |
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() |
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
|
String |
getXPathDefaultNamespace() |
void |
setAnnotations(XSObjectList annotations) |
void |
setBaseURI(String baseUri) |
void |
setNamespaceContext(NamespaceSupport namespaceContext) |
void |
setTest(Test expr)
Sets the test attribute value
|
void |
setXPathDefauleNamespace(String namespace) |
String |
toString()
Returns a String representation of this object
|
protected final String fElementName
protected Test fTestExpr
protected XSTypeDefinition fTypeDefinition
protected XSObjectList fAnnotations
protected String fXPathDefaultNamespace
protected NamespaceSupport fNamespaceContext
protected String fBaseURI
public XSTypeAlternativeImpl(String elementName, XSTypeDefinition type, XSObjectList annotations)
public void setTest(Test expr)
public void setAnnotations(XSObjectList annotations)
public void setXPathDefauleNamespace(String namespace)
public void setNamespaceContext(NamespaceSupport namespaceContext)
public void setBaseURI(String baseUri)
public NamespaceSupport getNamespaceContext()
public String getBaseURI()
public String getElementName()
public String getXPathDefaultNamespace()
public String toString()
public boolean equals(XSTypeAlternativeImpl typeAlternative)
public XSObjectList getAnnotations()
getAnnotations in interface XSTypeAlternativepublic String getTestStr()
XSTypeAlternativegetTestStr in interface XSTypeAlternativepublic Test getTest()
public XSTypeDefinition getTypeDefinition()
XSTypeAlternativegetTypeDefinition in interface XSTypeAlternativepublic 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 String getNamespace()
XSObjectnull if it is
unspecified.getNamespace in interface XSObjectXSObject.getNamespace()public XSNamespaceItem getNamespaceItem()
XSObjectnull otherwise.getNamespaceItem in interface XSObjectXSObject.getNamespaceItem()Copyright © 2013. All rights reserved.