|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 XmlObject
schemaType
in class XmlObjectBase
public SchemaType instanceType()
SimpleValue
For 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 SimpleValue
instanceType
in class XmlObjectBase
protected java.lang.String compute_text(NamespaceManager nsm)
XmlObjectBase
compute_text
in class XmlObjectBase
protected boolean is_defaultable_ws(java.lang.String v)
XmlObjectBase
is_defaultable_ws
in class XmlObjectBase
protected void set_text(java.lang.String s)
XmlObjectBase
set_text
in class XmlObjectBase
protected void set_nil()
XmlObjectBase
set_nil
in class XmlObjectBase
protected int get_wscanon_rule()
XmlObjectBase
get_wscanon_rule
in class XmlObjectBase
public float getFloatValue()
SimpleValue
getFloatValue
in interface SimpleValue
getFloatValue
in class XmlObjectBase
public double getDoubleValue()
SimpleValue
getDoubleValue
in interface SimpleValue
getDoubleValue
in class XmlObjectBase
public java.math.BigDecimal getBigDecimalValue()
SimpleValue
BigDecimal
.
getBigDecimalValue
in interface SimpleValue
getBigDecimalValue
in class XmlObjectBase
public java.math.BigInteger getBigIntegerValue()
SimpleValue
BigInteger
.
getBigIntegerValue
in interface SimpleValue
getBigIntegerValue
in class XmlObjectBase
public byte getByteValue()
SimpleValue
getByteValue
in interface SimpleValue
getByteValue
in class XmlObjectBase
public short getShortValue()
SimpleValue
getShortValue
in interface SimpleValue
getShortValue
in class XmlObjectBase
public int getIntValue()
SimpleValue
getIntValue
in interface SimpleValue
getIntValue
in class XmlObjectBase
public long getLongValue()
SimpleValue
getLongValue
in interface SimpleValue
getLongValue
in class XmlObjectBase
public byte[] getByteArrayValue()
SimpleValue
getByteArrayValue
in interface SimpleValue
getByteArrayValue
in class XmlObjectBase
public boolean getBooleanValue()
SimpleValue
getBooleanValue
in interface SimpleValue
getBooleanValue
in class XmlObjectBase
public java.util.Calendar getCalendarValue()
SimpleValue
Calendar
.
getCalendarValue
in interface SimpleValue
getCalendarValue
in class XmlObjectBase
public java.util.Date getDateValue()
SimpleValue
Date
.
getDateValue
in interface SimpleValue
getDateValue
in class XmlObjectBase
public GDate getGDateValue()
SimpleValue
GDate
.
getGDateValue
in interface SimpleValue
getGDateValue
in class XmlObjectBase
public GDuration getGDurationValue()
SimpleValue
GDuration
.
getGDurationValue
in interface SimpleValue
getGDurationValue
in class XmlObjectBase
public javax.xml.namespace.QName getQNameValue()
SimpleValue
QName
.
getQNameValue
in interface SimpleValue
getQNameValue
in class XmlObjectBase
public java.util.List getListValue()
SimpleValue
List
of friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration).
getListValue
in interface SimpleValue
getListValue
in class XmlObjectBase
public java.util.List xgetListValue()
SimpleValue
List
of XmlAnySimpleType objects.
xgetListValue
in interface SimpleValue
xgetListValue
in class XmlObjectBase
public StringEnumAbstractBase getEnumValue()
SimpleValue
StringEnumAbstractBase
.
getEnumValue
in interface SimpleValue
getEnumValue
in class XmlObjectBase
public java.lang.String getStringValue()
SimpleValue
String
.
getStringValue
in interface SimpleValue
getStringValue
in interface XmlAnySimpleType
getStringValue
in class XmlObjectBase
protected void set_boolean(boolean v)
set_boolean
in class XmlObjectBase
protected void set_byte(byte v)
set_byte
in class XmlObjectBase
protected void set_short(short v)
set_short
in class XmlObjectBase
protected void set_int(int v)
set_int
in class XmlObjectBase
protected void set_long(long v)
set_long
in class XmlObjectBase
protected void set_float(float v)
set_float
in class XmlObjectBase
protected void set_double(double v)
set_double
in class XmlObjectBase
protected void set_ByteArray(byte[] b)
set_ByteArray
in class XmlObjectBase
protected void set_hex(byte[] b)
set_hex
in class XmlObjectBase
protected void set_b64(byte[] b)
set_b64
in class XmlObjectBase
protected void set_BigInteger(java.math.BigInteger v)
set_BigInteger
in class XmlObjectBase
protected void set_BigDecimal(java.math.BigDecimal v)
set_BigDecimal
in class XmlObjectBase
protected void set_QName(javax.xml.namespace.QName v)
set_QName
in class XmlObjectBase
protected void set_Calendar(java.util.Calendar c)
set_Calendar
in class XmlObjectBase
protected void set_Date(java.util.Date d)
set_Date
in class XmlObjectBase
protected void set_GDate(GDateSpecification d)
set_GDate
in class XmlObjectBase
protected void set_GDuration(GDurationSpecification d)
set_GDuration
in class XmlObjectBase
protected void set_enum(StringEnumAbstractBase e)
set_enum
in class XmlObjectBase
protected void set_list(java.util.List v)
set_list
in class XmlObjectBase
protected 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 XmlObjectBase
protected 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 |