XmlObject
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.
FilterXmlObject
XmlObject
, XmlTokenSource
Nested Class Summary |
Nested classes from interface com.bea.xml. |
|
Field Summary |
Fields from interface com.bea.xml. |
|
Method Summary |
public |
|
public |
|
public boolean |
|
public byte[] |
|
public byte |
|
public |
|
public | |
public double |
|
public |
|
public float |
|
public |
|
public |
|
public |
|
public |
|
public boolean |
|
public byte[] |
|
public byte |
|
public |
|
public |
|
public double |
|
public |
|
public float |
|
public |
|
public |
|
public int |
|
public |
|
public long |
|
public |
|
public |
|
public short |
|
public |
|
public |
|
public int |
|
public | |
public long |
|
public void | |
public |
|
public |
|
public void | |
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void | |
public void | |
public void |
|
public void |
|
public void | |
public void | |
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public short |
|
public |
|
public |
|
public |
|
Methods from interface com.bea.xml. |
|
Methods from interface com.bea.xml. |
|
Method Detail |
DEPRECATED replaced with com.bea.xml.SimpleValue.getBigDecimalValue()
public BigDecimal
bigDecimalValue()
Returns the value as a BigDecimal
. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getBigIntegerValue()
public BigInteger
bigIntegerValue()
Returns the value as a BigInteger
. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getBooleanValue()
public boolean booleanValue()Returns the value as a boolean. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getByteArrayValue()
public byte[] byteArrayValue()Returns the value as a byte array. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getByteValue()
public byte byteValue()Returns the value as a byte. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getCalendarValue()
public Calendar
calendarValue()
Returns the value as a Calendar
. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getDateValue()
public Date
dateValue()
Returns the value as a Date
. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getDoubleValue()
public double doubleValue()Returns the value as a double. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getEnumValue()
public StringEnumAbstractBase
enumValue()
Returns the value as a StringEnumAbstractBase
. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getFloatValue()
public float floatValue()Returns the value as a float. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getGDateValue()
public GDate
gDateValue()
Returns the value as a GDate
. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getGDurationValue()
public GDuration
gDurationValue()
Returns the value as a GDuration
. *
public BigDecimal
getBigDecimalValue()
Returns the value as a BigDecimal
.
public BigInteger
getBigIntegerValue()
Returns the value as a BigInteger
.
public boolean getBooleanValue()Returns the value as a boolean.
public byte[] getByteArrayValue()Returns the value as a byte array.
public byte getByteValue()Returns the value as a byte.
public Calendar
getCalendarValue()
Returns the value as a Calendar
.
public Date
getDateValue()
Returns the value as a Date
.
public double getDoubleValue()Returns the value as a double.
public StringEnumAbstractBase
getEnumValue()
Returns the value as a StringEnumAbstractBase
.
public float getFloatValue()Returns the value as a float.
public GDate
getGDateValue()
Returns the value as a GDate
.
public GDuration
getGDurationValue()
Returns the value as a GDuration
.
public int getIntValue()Returns the value as an int.
public List
getListValue()
Returns the value as a List
of friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration).
public long getLongValue()Returns the value as a long.
public 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).
public QName
getQNameValue()
Returns the value as a QName
.
public short getShortValue()Returns the value as a short.
public String
getStringValue()
Returns the value as a String
.
public SchemaType
instanceType()
The same as getSchemaType unless this is a union instance
or nil value.
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.
DEPRECATED replaced with com.bea.xml.SimpleValue.getIntValue()
public int intValue()Returns the value as an int. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getListValue()
public List
listValue()
Returns the value as a List
of friendly Java objects (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration). *
DEPRECATED replaced with com.bea.xml.SimpleValue.getLongValue()
public long longValue()Returns the value as a long. *
DEPRECATED replaced with com.bea.xml.SimpleValue.setObjectValue(java.lang.Object)
public void objectSet(Object
obj)
Sets the value as an arbitrary Object
.
DEPRECATED replaced with com.bea.xml.SimpleValue.getObjectValue()
public Object
objectValue()
Returns a union value as a its natural friendly Java object (String, Integer, Byte, Short, Long, BigInteger, Decimal, Float, Double, byte[], Calendar, GDuration). *
DEPRECATED replaced with com.bea.xml.SimpleValue.getQNameValue()
public QName
qNameValue()
Returns the value as a QName
. *
DEPRECATED replaced with com.bea.xml.SimpleValue.setStringValue(java.lang.String)
public void set(String
obj)
Sets the value as a String
. *
DEPRECATED replaced with com.bea.xml.SimpleValue.setBooleanValue(boolean)
public void set(boolean v)Sets the value as a boolean. *
DEPRECATED replaced with com.bea.xml.SimpleValue.setByteValue(byte)
public void set(byte v)Sets the value as a byte.
DEPRECATED replaced with com.bea.xml.SimpleValue.setShortValue(short)
public void set(short v)Sets the value as a short.
DEPRECATED replaced with com.bea.xml.SimpleValue.setIntValue(int)
public void set(int v)Sets the value as an int.
DEPRECATED replaced with com.bea.xml.SimpleValue.setLongValue(long)
public void set(long v)Sets the value as a long.
DEPRECATED replaced with com.bea.xml.SimpleValue.setBigIntegerValue(java.math.BigInteger)
public void set(BigInteger
obj)
Sets the value as a BigInteger
.
DEPRECATED replaced with com.bea.xml.SimpleValue.setBigDecimalValue(java.math.BigDecimal)
public void set(BigDecimal
obj)
Sets the value as a BigDecimal
DEPRECATED replaced with com.bea.xml.SimpleValue.setFloatValue(float)
public void set(float v)Sets the value as a float.
DEPRECATED replaced with com.bea.xml.SimpleValue.setDoubleValue(double)
public void set(double v)Sets the value as a double.
DEPRECATED replaced with com.bea.xml.SimpleValue.setByteArrayValue(byte[])
public void set(byte[] obj)Sets the value as a byte array.
DEPRECATED replaced with com.bea.xml.SimpleValue.setEnumValue(com.bea.xml.StringEnumAbstractBase)
public void set(StringEnumAbstractBase
obj)
Sets the value as a StringEnumAbstractBase
.
DEPRECATED replaced with com.bea.xml.SimpleValue.setCalendarValue(java.util.Calendar)
public void set(Calendar
obj)
Sets the value as a Calendar
.
DEPRECATED replaced with com.bea.xml.SimpleValue.setDateValue(java.util.Date)
public void set(Date
obj)
Sets the value as a Date
.
DEPRECATED replaced with com.bea.xml.SimpleValue.setGDateValue(com.bea.xml.GDate)
public void set(GDateSpecification
obj)
Sets the value as a GDate
.
DEPRECATED replaced with com.bea.xml.SimpleValue.setGDurationValue(com.bea.xml.GDuration)
public void set(GDurationSpecification
obj)
Sets the value as a GDuration
.
DEPRECATED replaced with com.bea.xml.SimpleValue.setQNameValue(javax.xml.namespace.QName)
public void set(QName
obj)
Sets the value as a QName
.
DEPRECATED replaced with com.bea.xml.SimpleValue.setListValue(java.util.List)
public void set(List
obj)
Sets the value as a List
.
public void setBigDecimalValue(BigDecimal
obj)
Sets the value as a BigDecimal
.
public void setBigIntegerValue(BigInteger
obj)
Sets the value as a BigInteger
.
public void setBooleanValue(boolean v)Sets the value as a boolean.
public void setByteArrayValue(byte[] obj)Sets the value as a byte array.
public void setByteValue(byte v)Sets the value as a byte.
public void setCalendarValue(Calendar
obj)
Sets the value as a Calendar
.
public void setDateValue(Date
obj)
Sets the value as a Date
.
public void setDoubleValue(double v)Sets the value as a double.
public void setEnumValue(StringEnumAbstractBase
obj)
Sets the value as a StringEnumAbstractBase
.
public void setFloatValue(float v)Sets the value as a float.
public void setGDateValue(GDate
obj)
Sets the value as a GDate
.
public void setGDurationValue(GDuration
obj)
Sets the value as a GDuration
.
public void setIntValue(int v)Sets the value as an int.
public void setListValue(List
obj)
Sets the value as a List
.
public void setLongValue(long v)Sets the value as a long.
public void setObjectValue(Object
obj)
Sets the value as an arbitrary Object
.
public void setQNameValue(QName
obj)
Sets the value as a QName
.
public void setShortValue(short v)Sets the value as a short.
public void setStringValue(String
obj)
Sets the value as a String
.
DEPRECATED replaced with com.bea.xml.SimpleValue.getShortValue()
public short shortValue()Returns the value as a short. *
DEPRECATED replaced with com.bea.xml.SimpleValue.getStringValue()
public String
stringValue()
Returns the value as a String
. *
public List
xgetListValue()
Returns the value as a List
of XmlAnySimpleType objects.
DEPRECATED replaced with com.bea.xml.SimpleValue.getListValue()
public List
xlistValue()
Returns the value as a List
of XmlAnySimpleType objects. *