public interface SimpleValue extends XmlObject
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.
XmlObject.Factory
Modifier and Type | Method and Description |
---|---|
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.
|
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 . |
List<? extends XmlAnySimpleType> |
xgetListValue()
Returns the value as a
List of XmlAnySimpleType objects. |
changeType, compareTo, compareValue, copy, copy, execQuery, execQuery, isImmutable, isNil, schemaType, selectAttribute, selectAttribute, selectAttributes, selectChildren, selectChildren, selectChildren, selectPath, selectPath, set, setNil, substitute, toString, validate, validate, valueEquals, valueHashCode
documentProperties, dump, getDomNode, monitor, newCursor, newDomNode, newDomNode, newInputStream, newInputStream, newReader, newReader, newXMLStreamReader, newXMLStreamReader, save, save, save, save, save, save, save, save, xmlText, xmlText
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.
boolean getBooleanValue()
byte getByteValue()
short getShortValue()
int getIntValue()
long getLongValue()
BigInteger getBigIntegerValue()
BigInteger
.BigDecimal getBigDecimalValue()
BigDecimal
.float getFloatValue()
double getDoubleValue()
byte[] getByteArrayValue()
StringEnumAbstractBase getEnumValue()
StringEnumAbstractBase
.List<?> getListValue()
List
of friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration).List<? extends XmlAnySimpleType> xgetListValue()
List
of XmlAnySimpleType objects.Object getObjectValue()
void setBooleanValue(boolean v)
void setByteValue(byte v)
void setShortValue(short v)
void setIntValue(int v)
void setLongValue(long v)
void setBigIntegerValue(BigInteger obj)
BigInteger
.void setBigDecimalValue(BigDecimal obj)
BigDecimal
.void setFloatValue(float v)
void setDoubleValue(double v)
void setByteArrayValue(byte[] obj)
void setEnumValue(StringEnumAbstractBase obj)
StringEnumAbstractBase
.