|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
All XmlObject implementations can be coerced to SimpleValue. For any given schema type, only a subset of the conversion methods will work. Others will throw an exception.
SimpleValue is useful for declaring variables which can hold more than one similar schema type that may not happen to have a common XML base type, for example, two list types, or two unrelated integer restrictions that happen to fit into an int.
Nested Class Summary |
Nested classes inherited from class org.apache.xmlbeans.XmlObject |
XmlObject.Factory |
Field Summary |
Fields inherited from interface org.apache.xmlbeans.XmlObject |
EQUAL, GREATER_THAN, LESS_THAN, NOT_EQUAL, type |
Method Summary | |
BigDecimal |
bigDecimalValue()
Deprecated. replaced with getBigDecimalValue() |
BigInteger |
bigIntegerValue()
Deprecated. replaced with getBigIntegerValue() |
boolean |
booleanValue()
Deprecated. replaced with getBooleanValue() |
byte[] |
byteArrayValue()
Deprecated. replaced with getByteArrayValue() |
byte |
byteValue()
Deprecated. replaced with getByteValue() |
Calendar |
calendarValue()
Deprecated. replaced with getCalendarValue() |
Date |
dateValue()
Deprecated. replaced with getDateValue() |
double |
doubleValue()
Deprecated. replaced with getDoubleValue() |
StringEnumAbstractBase |
enumValue()
Deprecated. replaced with getEnumValue() |
float |
floatValue()
Deprecated. replaced with getFloatValue() |
GDate |
gDateValue()
Deprecated. replaced with getGDateValue() |
GDuration |
gDurationValue()
Deprecated. replaced with getGDurationValue() |
BigDecimal |
getBigDecimalValue()
Returns the value as a BigDecimal . |
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. |
Calendar |
getCalendarValue()
Returns the value as a Calendar . |
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. |
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. |
Object |
getObjectValue()
Returns a union value as a its natural friendly Java object (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration). |
QName |
getQNameValue()
Returns the value as a QName . |
short |
getShortValue()
Returns the value as a short. |
String |
getStringValue()
Returns the value as a String . |
SchemaType |
instanceType()
The same as getSchemaType unless this is a union instance or nil value. |
int |
intValue()
Deprecated. replaced with getIntValue() |
List |
listValue()
Deprecated. replaced with getListValue() |
long |
longValue()
Deprecated. replaced with getLongValue() |
void |
objectSet(Object obj)
Deprecated. replaced with setObjectValue(java.lang.Object) |
Object |
objectValue()
Deprecated. replaced with getObjectValue() |
QName |
qNameValue()
Deprecated. replaced with getQNameValue() |
void |
set(BigDecimal obj)
Deprecated. replaced with setBigDecimalValue(java.math.BigDecimal) |
void |
set(BigInteger obj)
Deprecated. replaced with setBigIntegerValue(java.math.BigInteger) |
void |
set(boolean v)
Deprecated. replaced with setBooleanValue(boolean) |
void |
set(byte v)
Deprecated. replaced with setByteValue(byte) |
void |
set(byte[] obj)
Deprecated. replaced with setByteArrayValue(byte[]) |
void |
set(Calendar obj)
Deprecated. replaced with setCalendarValue(java.util.Calendar) |
void |
set(Date obj)
Deprecated. replaced with setDateValue(java.util.Date) |
void |
set(double v)
Deprecated. replaced with setDoubleValue(double) |
void |
set(float v)
Deprecated. replaced with setFloatValue(float) |
void |
set(GDateSpecification obj)
Deprecated. replaced with setGDateValue(org.apache.xmlbeans.GDate) |
void |
set(GDurationSpecification obj)
Deprecated. replaced with setGDurationValue(org.apache.xmlbeans.GDuration) |
void |
set(int v)
Deprecated. replaced with setIntValue(int) |
void |
set(List obj)
Deprecated. replaced with setListValue(java.util.List) |
void |
set(long v)
Deprecated. replaced with setLongValue(long) |
void |
set(QName obj)
Deprecated. replaced with setQNameValue(javax.xml.namespace.QName) |
void |
set(short v)
Deprecated. replaced with setShortValue(short) |
void |
set(String obj)
Deprecated. replaced with setStringValue(java.lang.String) |
void |
set(StringEnumAbstractBase obj)
Deprecated. replaced with setEnumValue(org.apache.xmlbeans.StringEnumAbstractBase) |
void |
setBigDecimalValue(BigDecimal obj)
Sets the value as a BigDecimal . |
void |
setBigIntegerValue(BigInteger obj)
Sets the value as a BigInteger . |
void |
setBooleanValue(boolean v)
Sets the value as a boolean. |
void |
setByteArrayValue(byte[] obj)
Sets the value as a byte array. |
void |
setByteValue(byte v)
Sets the value as a byte. |
void |
setCalendarValue(Calendar obj)
Sets the value as a Calendar . |
void |
setDateValue(Date obj)
Sets the value as a Date . |
void |
setDoubleValue(double v)
Sets the value as a double. |
void |
setEnumValue(StringEnumAbstractBase obj)
Sets the value as a StringEnumAbstractBase . |
void |
setFloatValue(float v)
Sets the value as a float. |
void |
setGDateValue(GDate obj)
Sets the value as a GDate . |
void |
setGDurationValue(GDuration obj)
Sets the value as a GDuration . |
void |
setIntValue(int v)
Sets the value as an int. |
void |
setListValue(List obj)
Sets the value as a List . |
void |
setLongValue(long v)
Sets the value as a long. |
void |
setObjectValue(Object obj)
Sets the value as an arbitrary Object . |
void |
setQNameValue(QName obj)
Sets the value as a QName . |
void |
setShortValue(short v)
Sets the value as a short. |
void |
setStringValue(String obj)
Sets the value as a String . |
short |
shortValue()
Deprecated. replaced with getShortValue() |
String |
stringValue()
Deprecated. replaced with getStringValue() |
List |
xgetListValue()
Returns the value as a List of XmlAnySimpleType objects. |
List |
xlistValue()
Deprecated. replaced with getListValue() |
Methods inherited from interface org.apache.xmlbeans.XmlObject |
changeType, compareTo, compareValue, copy, execQuery, execQuery, isImmutable, isNil, schemaType, 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 |
Method Detail |
public SchemaType instanceType()
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.
public String getStringValue()
String
.
public boolean getBooleanValue()
public byte getByteValue()
public short getShortValue()
public int getIntValue()
public long getLongValue()
public BigInteger getBigIntegerValue()
BigInteger
.
public BigDecimal getBigDecimalValue()
BigDecimal
.
public float getFloatValue()
public double getDoubleValue()
public byte[] getByteArrayValue()
public StringEnumAbstractBase getEnumValue()
StringEnumAbstractBase
.
public Calendar getCalendarValue()
Calendar
.
public Date getDateValue()
Date
.
public GDate getGDateValue()
GDate
.
public GDuration getGDurationValue()
GDuration
.
public QName getQNameValue()
QName
.
public List getListValue()
List
of friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration).
public List xgetListValue()
List
of XmlAnySimpleType objects.
public Object getObjectValue()
public void setStringValue(String obj)
String
.
public void setBooleanValue(boolean v)
public void setByteValue(byte v)
public void setShortValue(short v)
public void setIntValue(int v)
public void setLongValue(long v)
public void setBigIntegerValue(BigInteger obj)
BigInteger
.
public void setBigDecimalValue(BigDecimal obj)
BigDecimal
.
public void setFloatValue(float v)
public void setDoubleValue(double v)
public void setByteArrayValue(byte[] obj)
public void setEnumValue(StringEnumAbstractBase obj)
StringEnumAbstractBase
.
public void setCalendarValue(Calendar obj)
Calendar
.
public void setDateValue(Date obj)
Date
.
public void setGDateValue(GDate obj)
GDate
.
public void setGDurationValue(GDuration obj)
GDuration
.
public void setQNameValue(QName obj)
QName
.
public void setListValue(List obj)
List
.
public void setObjectValue(Object obj)
Object
.
public String stringValue()
getStringValue()
String
. *
public boolean booleanValue()
getBooleanValue()
public byte byteValue()
getByteValue()
public short shortValue()
getShortValue()
public int intValue()
getIntValue()
public long longValue()
getLongValue()
public BigInteger bigIntegerValue()
getBigIntegerValue()
BigInteger
. *
public BigDecimal bigDecimalValue()
getBigDecimalValue()
BigDecimal
. *
public float floatValue()
getFloatValue()
public double doubleValue()
getDoubleValue()
public byte[] byteArrayValue()
getByteArrayValue()
public StringEnumAbstractBase enumValue()
getEnumValue()
StringEnumAbstractBase
. *
public Calendar calendarValue()
getCalendarValue()
Calendar
. *
public Date dateValue()
getDateValue()
Date
. *
public GDate gDateValue()
getGDateValue()
GDate
. *
public GDuration gDurationValue()
getGDurationValue()
GDuration
. *
public QName qNameValue()
getQNameValue()
QName
. *
public List listValue()
getListValue()
List
of friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration). *
public List xlistValue()
getListValue()
List
of XmlAnySimpleType objects. *
public Object objectValue()
getObjectValue()
public void set(String obj)
setStringValue(java.lang.String)
String
. *
public void set(boolean v)
setBooleanValue(boolean)
public void set(byte v)
setByteValue(byte)
public void set(short v)
setShortValue(short)
public void set(int v)
setIntValue(int)
public void set(long v)
setLongValue(long)
public void set(BigInteger obj)
setBigIntegerValue(java.math.BigInteger)
BigInteger
.
public void set(BigDecimal obj)
setBigDecimalValue(java.math.BigDecimal)
BigDecimal
public void set(float v)
setFloatValue(float)
public void set(double v)
setDoubleValue(double)
public void set(byte[] obj)
setByteArrayValue(byte[])
public void set(StringEnumAbstractBase obj)
setEnumValue(org.apache.xmlbeans.StringEnumAbstractBase)
StringEnumAbstractBase
.
public void set(Calendar obj)
setCalendarValue(java.util.Calendar)
Calendar
.
public void set(Date obj)
setDateValue(java.util.Date)
Date
.
public void set(GDateSpecification obj)
setGDateValue(org.apache.xmlbeans.GDate)
GDate
.
public void set(GDurationSpecification obj)
setGDurationValue(org.apache.xmlbeans.GDuration)
GDuration
.
public void set(QName obj)
setQNameValue(javax.xml.namespace.QName)
QName
.
public void set(List obj)
setListValue(java.util.List)
List
.
public void objectSet(Object obj)
setObjectValue(java.lang.Object)
Object
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |