public class XSTypeAlternativeImpl
extends java.lang.Object
implements org.apache.xerces.xs.XSTypeAlternative
| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.xerces.xs.XSObjectList | fAnnotationsOptional annotations | 
| protected java.lang.String | fBaseURI | 
| protected java.lang.String | fElementNameName of the owning element | 
| protected NamespaceSupport | fNamespaceContext | 
| protected Test | fTestExprThe restricted XPath 2.0 expression that represents the test attribute | 
| protected org.apache.xerces.xs.XSTypeDefinition | fTypeDefinitionThe type definition associated with the type alternative component | 
| protected java.lang.String | fXPathDefaultNamespaceDefault XPath namespace | 
| Constructor and Description | 
|---|
| XSTypeAlternativeImpl(java.lang.String elementName,
                     org.apache.xerces.xs.XSTypeDefinition type,
                     org.apache.xerces.xs.XSObjectList annotations)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(XSTypeAlternativeImpl typeAlternative) | 
| org.apache.xerces.xs.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 ornullif the definition of this component 
 does not have a{name}property. | 
| java.lang.String | getNamespace()The [target namespace] of this object, or  nullif it is 
 unspecified. | 
| NamespaceSupport | getNamespaceContext() | 
| org.apache.xerces.xs.XSNamespaceItem | getNamespaceItem()A namespace schema information item corresponding to the target 
 namespace of the component, if it is globally declared; or 
  nullotherwise. | 
| Test | getTest() | 
| java.lang.String | getTestStr()[test]: a restricted XPath 2.0 expression or null. | 
| short | getType()Get the type of the object | 
| org.apache.xerces.xs.XSTypeDefinition | getTypeDefinition()[type definition]: a valid type definition component | 
| java.lang.String | getXPathDefaultNamespace() | 
| void | setAnnotations(org.apache.xerces.xs.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 org.apache.xerces.xs.XSTypeDefinition fTypeDefinition
protected org.apache.xerces.xs.XSObjectList fAnnotations
protected java.lang.String fXPathDefaultNamespace
protected NamespaceSupport fNamespaceContext
protected java.lang.String fBaseURI
public XSTypeAlternativeImpl(java.lang.String elementName,
                     org.apache.xerces.xs.XSTypeDefinition type,
                     org.apache.xerces.xs.XSObjectList annotations)
public void setTest(Test expr)
public void setAnnotations(org.apache.xerces.xs.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 org.apache.xerces.xs.XSObjectList getAnnotations()
getAnnotations in interface org.apache.xerces.xs.XSTypeAlternativepublic java.lang.String getTestStr()
org.apache.xerces.xs.XSTypeAlternativegetTestStr in interface org.apache.xerces.xs.XSTypeAlternativepublic Test getTest()
public org.apache.xerces.xs.XSTypeDefinition getTypeDefinition()
org.apache.xerces.xs.XSTypeAlternativegetTypeDefinition in interface org.apache.xerces.xs.XSTypeAlternativepublic java.lang.String getName()
org.apache.xerces.xs.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 org.apache.xerces.xs.XSObjectXSObject.getName()public java.lang.String getNamespace()
org.apache.xerces.xs.XSObjectnull if it is 
 unspecified.getNamespace in interface org.apache.xerces.xs.XSObjectXSObject.getNamespace()public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
org.apache.xerces.xs.XSObjectnull otherwise.getNamespaceItem in interface org.apache.xerces.xs.XSObjectXSObject.getNamespaceItem()public short getType()
getType in interface org.apache.xerces.xs.XSObjectCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.