|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.xmlbeans.impl.values.XmlObjectBase
org.apache.xmlbeans.impl.values.XmlUnionImpl
public class XmlUnionImpl
This class implements simple union types.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.xmlbeans.XmlAnySimpleType |
|---|
XmlAnySimpleType.Factory |
| Field Summary |
|---|
| Fields inherited from class org.apache.xmlbeans.impl.values.XmlObjectBase |
|---|
_voorVc, KIND_SETTERHELPER_ARRAYITEM, KIND_SETTERHELPER_SINGLETON, MAJOR_VERSION_NUMBER, MINOR_VERSION_NUMBER |
| Fields inherited from interface org.apache.xmlbeans.XmlAnySimpleType |
|---|
type |
| Fields inherited from interface org.apache.xmlbeans.XmlObject |
|---|
EQUAL, GREATER_THAN, LESS_THAN, NOT_EQUAL |
| Constructor Summary | |
|---|---|
XmlUnionImpl(SchemaType type,
boolean complex)
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
compute_text(NamespaceManager nsm)
This should return the canonical string value of the primitive. |
protected boolean |
equal_to(XmlObject xmlobj)
|
protected int |
get_wscanon_rule()
Returns the whitespace rule that will be applied before building a string to pass to get_text(). |
java.math.BigDecimal |
getBigDecimalValue()
Returns the value as a BigDecimal. |
java.math.BigInteger |
getBigIntegerValue()
Returns the value as a BigInteger. |
boolean |
getBooleanValue()
Returns the value as a boolean. |
byte[] |
getByteArrayValue()
Returns the value as a byte array. |
byte |
getByteValue()
Returns the value as a byte. |
java.util.Calendar |
getCalendarValue()
Returns the value as a Calendar. |
java.util.Date |
getDateValue()
Returns the value as a Date. |
double |
getDoubleValue()
Returns the value as a double. |
StringEnumAbstractBase |
getEnumValue()
Returns the value as a StringEnumAbstractBase. |
float |
getFloatValue()
Returns the value as a float. |
GDate |
getGDateValue()
Returns the value as a GDate. |
GDuration |
getGDurationValue()
Returns the value as a GDuration. |
int |
getIntValue()
Returns the value as an int. |
java.util.List |
getListValue()
Returns the value as a List of friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration). |
long |
getLongValue()
Returns the value as a long. |
javax.xml.namespace.QName |
getQNameValue()
Returns the value as a QName. |
short |
getShortValue()
Returns the value as a short. |
java.lang.String |
getStringValue()
Returns the value as a String. |
SchemaType |
instanceType()
The same as getSchemaType unless this is a union instance or nil value. |
protected boolean |
is_defaultable_ws(java.lang.String v)
Types should return false if they don't treat the given whitespace as a default value. |
SchemaType |
schemaType()
|
protected void |
set_b64(byte[] b)
|
protected void |
set_BigDecimal(java.math.BigDecimal v)
|
protected void |
set_BigInteger(java.math.BigInteger v)
|
protected void |
set_boolean(boolean v)
|
protected void |
set_byte(byte v)
|
protected void |
set_ByteArray(byte[] b)
|
protected void |
set_Calendar(java.util.Calendar c)
|
protected void |
set_Date(java.util.Date d)
|
protected void |
set_double(double v)
|
protected void |
set_enum(StringEnumAbstractBase e)
|
protected void |
set_float(float v)
|
protected void |
set_GDate(GDateSpecification d)
|
protected void |
set_GDuration(GDurationSpecification d)
|
protected void |
set_hex(byte[] b)
|
protected void |
set_int(int v)
|
protected void |
set_list(java.util.List v)
|
protected void |
set_long(long v)
|
protected void |
set_nil()
This should clear the value, and set it to whatever is supposed to be returned when the value is nilled. |
protected void |
set_QName(javax.xml.namespace.QName v)
|
protected void |
set_short(short v)
|
protected void |
set_text(java.lang.String s)
This should set the value of the type from text, or throw an XmlValueOutOfRangeException if it can't. |
protected void |
set_xmldate(XmlObject v)
|
protected void |
set_xmldatetime(XmlObject v)
|
protected void |
set_xmldecimal(XmlObject v)
|
protected void |
set_xmldouble(XmlObject v)
|
protected void |
set_xmlduration(XmlObject v)
|
protected void |
set_xmlfloat(XmlObject v)
|
protected void |
set_xmlgday(XmlObject v)
|
protected void |
set_xmlgmonth(XmlObject v)
|
protected void |
set_xmlgmonthday(XmlObject v)
|
protected void |
set_xmlgyear(XmlObject v)
|
protected void |
set_xmlgyearmonth(XmlObject v)
|
protected void |
set_xmltime(XmlObject v)
|
protected void |
validate_simpleval(java.lang.String lexical,
ValidationContext ctx)
|
protected int |
value_hash_code()
|
java.util.List |
xgetListValue()
Returns the value as a List of XmlAnySimpleType objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.xmlbeans.XmlAnySimpleType |
|---|
set, setStringValue, stringValue |
| Methods inherited from interface org.apache.xmlbeans.XmlObject |
|---|
changeType, compareTo, compareValue, copy, copy, execQuery, execQuery, isImmutable, isNil, selectAttribute, selectAttribute, selectAttributes, selectChildren, selectChildren, selectChildren, selectPath, selectPath, set, setNil, substitute, toString, validate, validate, valueEquals, valueHashCode |
| Methods inherited from interface org.apache.xmlbeans.XmlTokenSource |
|---|
documentProperties, dump, getDomNode, monitor, newCursor, newDomNode, newDomNode, newInputStream, newInputStream, newReader, newReader, newXMLInputStream, newXMLInputStream, newXMLStreamReader, newXMLStreamReader, save, save, save, save, save, save, save, save, xmlText, xmlText |
| Constructor Detail |
|---|
public XmlUnionImpl(SchemaType type,
boolean complex)
| Method Detail |
|---|
public SchemaType schemaType()
schemaType in interface XmlObjectschemaType in class XmlObjectBasepublic SchemaType instanceType()
SimpleValueFor unions, this returns the non-union consituent type of this instance. This type may change if setters are called that cause the instance to change to another constituent type of the union.
For nil values, this returns null.
instanceType in interface SimpleValueinstanceType in class XmlObjectBaseprotected java.lang.String compute_text(NamespaceManager nsm)
XmlObjectBase
compute_text in class XmlObjectBaseprotected boolean is_defaultable_ws(java.lang.String v)
XmlObjectBase
is_defaultable_ws in class XmlObjectBaseprotected void set_text(java.lang.String s)
XmlObjectBase
set_text in class XmlObjectBaseprotected void set_nil()
XmlObjectBase
set_nil in class XmlObjectBaseprotected int get_wscanon_rule()
XmlObjectBase
get_wscanon_rule in class XmlObjectBasepublic float getFloatValue()
SimpleValue
getFloatValue in interface SimpleValuegetFloatValue in class XmlObjectBasepublic double getDoubleValue()
SimpleValue
getDoubleValue in interface SimpleValuegetDoubleValue in class XmlObjectBasepublic java.math.BigDecimal getBigDecimalValue()
SimpleValueBigDecimal.
getBigDecimalValue in interface SimpleValuegetBigDecimalValue in class XmlObjectBasepublic java.math.BigInteger getBigIntegerValue()
SimpleValueBigInteger.
getBigIntegerValue in interface SimpleValuegetBigIntegerValue in class XmlObjectBasepublic byte getByteValue()
SimpleValue
getByteValue in interface SimpleValuegetByteValue in class XmlObjectBasepublic short getShortValue()
SimpleValue
getShortValue in interface SimpleValuegetShortValue in class XmlObjectBasepublic int getIntValue()
SimpleValue
getIntValue in interface SimpleValuegetIntValue in class XmlObjectBasepublic long getLongValue()
SimpleValue
getLongValue in interface SimpleValuegetLongValue in class XmlObjectBasepublic byte[] getByteArrayValue()
SimpleValue
getByteArrayValue in interface SimpleValuegetByteArrayValue in class XmlObjectBasepublic boolean getBooleanValue()
SimpleValue
getBooleanValue in interface SimpleValuegetBooleanValue in class XmlObjectBasepublic java.util.Calendar getCalendarValue()
SimpleValueCalendar.
getCalendarValue in interface SimpleValuegetCalendarValue in class XmlObjectBasepublic java.util.Date getDateValue()
SimpleValueDate.
getDateValue in interface SimpleValuegetDateValue in class XmlObjectBasepublic GDate getGDateValue()
SimpleValueGDate.
getGDateValue in interface SimpleValuegetGDateValue in class XmlObjectBasepublic GDuration getGDurationValue()
SimpleValueGDuration.
getGDurationValue in interface SimpleValuegetGDurationValue in class XmlObjectBasepublic javax.xml.namespace.QName getQNameValue()
SimpleValueQName.
getQNameValue in interface SimpleValuegetQNameValue in class XmlObjectBasepublic java.util.List getListValue()
SimpleValueList of friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration).
getListValue in interface SimpleValuegetListValue in class XmlObjectBasepublic java.util.List xgetListValue()
SimpleValueList of XmlAnySimpleType objects.
xgetListValue in interface SimpleValuexgetListValue in class XmlObjectBasepublic StringEnumAbstractBase getEnumValue()
SimpleValueStringEnumAbstractBase.
getEnumValue in interface SimpleValuegetEnumValue in class XmlObjectBasepublic java.lang.String getStringValue()
SimpleValueString.
getStringValue in interface SimpleValuegetStringValue in interface XmlAnySimpleTypegetStringValue in class XmlObjectBaseprotected void set_boolean(boolean v)
set_boolean in class XmlObjectBaseprotected void set_byte(byte v)
set_byte in class XmlObjectBaseprotected void set_short(short v)
set_short in class XmlObjectBaseprotected void set_int(int v)
set_int in class XmlObjectBaseprotected void set_long(long v)
set_long in class XmlObjectBaseprotected void set_float(float v)
set_float in class XmlObjectBaseprotected void set_double(double v)
set_double in class XmlObjectBaseprotected void set_ByteArray(byte[] b)
set_ByteArray in class XmlObjectBaseprotected void set_hex(byte[] b)
set_hex in class XmlObjectBaseprotected void set_b64(byte[] b)
set_b64 in class XmlObjectBaseprotected void set_BigInteger(java.math.BigInteger v)
set_BigInteger in class XmlObjectBaseprotected void set_BigDecimal(java.math.BigDecimal v)
set_BigDecimal in class XmlObjectBaseprotected void set_QName(javax.xml.namespace.QName v)
set_QName in class XmlObjectBaseprotected void set_Calendar(java.util.Calendar c)
set_Calendar in class XmlObjectBaseprotected void set_Date(java.util.Date d)
set_Date in class XmlObjectBaseprotected void set_GDate(GDateSpecification d)
set_GDate in class XmlObjectBaseprotected void set_GDuration(GDurationSpecification d)
set_GDuration in class XmlObjectBaseprotected void set_enum(StringEnumAbstractBase e)
set_enum in class XmlObjectBaseprotected void set_list(java.util.List v)
set_list in class XmlObjectBaseprotected void set_xmlfloat(XmlObject v)
protected void set_xmldouble(XmlObject v)
protected void set_xmldecimal(XmlObject v)
protected void set_xmlduration(XmlObject v)
protected void set_xmldatetime(XmlObject v)
protected void set_xmltime(XmlObject v)
protected void set_xmldate(XmlObject v)
protected void set_xmlgyearmonth(XmlObject v)
protected void set_xmlgyear(XmlObject v)
protected void set_xmlgmonthday(XmlObject v)
protected void set_xmlgday(XmlObject v)
protected void set_xmlgmonth(XmlObject v)
protected boolean equal_to(XmlObject xmlobj)
equal_to in class XmlObjectBaseprotected int value_hash_code()
value_hash_code in class XmlObjectBase
protected void validate_simpleval(java.lang.String lexical,
ValidationContext ctx)
validate_simpleval in class XmlObjectBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||