|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xerces.impl.xs.alternative.XSTypeAlternativeImpl
XML schema type alternative component.
Field Summary | |
protected org.apache.xerces.xs.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 org.apache.xerces.xs.XSTypeDefinition |
fTypeDefinition
The type definition associated with the type alternative component |
protected java.lang.String |
fXPathDefaultNamespace
Default XPath namespace |
Constructor Summary | |
XSTypeAlternativeImpl(java.lang.String elementName,
org.apache.xerces.xs.XSTypeDefinition type,
org.apache.xerces.xs.XSObjectList annotations)
Constructor |
Method Summary | |
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 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()
|
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 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 |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
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
Constructor Detail |
public XSTypeAlternativeImpl(java.lang.String elementName, org.apache.xerces.xs.XSTypeDefinition type, org.apache.xerces.xs.XSObjectList annotations)
Method Detail |
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()
public boolean equals(XSTypeAlternativeImpl typeAlternative)
public org.apache.xerces.xs.XSObjectList getAnnotations()
getAnnotations
in interface org.apache.xerces.xs.XSTypeAlternative
public java.lang.String getTestStr()
org.apache.xerces.xs.XSTypeAlternative
getTestStr
in interface org.apache.xerces.xs.XSTypeAlternative
public Test getTest()
public org.apache.xerces.xs.XSTypeDefinition getTypeDefinition()
org.apache.xerces.xs.XSTypeAlternative
getTypeDefinition
in interface org.apache.xerces.xs.XSTypeAlternative
public java.lang.String getName()
org.apache.xerces.xs.XSObject
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. 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.XSObject
XSObject.getName()
public java.lang.String getNamespace()
org.apache.xerces.xs.XSObject
null
if it is
unspecified.
getNamespace
in interface org.apache.xerces.xs.XSObject
XSObject.getNamespace()
public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
org.apache.xerces.xs.XSObject
null
otherwise.
getNamespaceItem
in interface org.apache.xerces.xs.XSObject
XSObject.getNamespaceItem()
public short getType()
getType
in interface org.apache.xerces.xs.XSObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |