SimpleValue Interface

com.bea.xml
SimpleValue Interface

public interface SimpleValue

    extends 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.


All Known Implementing Classes
FilterXmlObject
All Superinterfaces
XmlObject, XmlTokenSource

Nested Class Summary

 
Nested classes from interface com.bea.xml.XmlObject
XmlObject.Factory
 

Field Summary

   
Fields from interface com.bea.xml.XmlObject
EQUAL, GREATER_THAN, LESS_THAN, NOT_EQUAL, type
 

Method Summary

public BigDecimal
bigDecimalValue()
Returns the value as a BigDecimal
public BigInteger
bigIntegerValue()
Returns the value as a BigInteger
public boolean
booleanValue()
Returns the value as a boolean
public byte[]
byteArrayValue()
Returns the value as a byte array
public byte
byteValue()
Returns the value as a byte
public Calendar
calendarValue()
Returns the value as a Calendar
public Date
dateValue()
Returns the value as a Date
public double
doubleValue()
Returns the value as a double
public StringEnumAbstractBase
enumValue()
Returns the value as a StringEnumAbstractBase
public float
floatValue()
Returns the value as a float
public GDate
gDateValue()
Returns the value as a GDate
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.
public int
intValue()
Returns the value as an int
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)
public long
longValue()
Returns the value as a long
public void
objectSet(Object obj)
Sets the value as an arbitrary Object.
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)
public QName
qNameValue()
Returns the value as a QName
public void
set(String obj)
Sets the value as a String
public void
set(boolean v)
Sets the value as a boolean
public void
set(byte v)
Sets the value as a byte.
public void
set(short v)
Sets the value as a short.
public void
set(int v)
Sets the value as an int.
public void
set(long v)
Sets the value as a long.
public void
set(BigInteger obj)
Sets the value as a BigInteger.
public void
set(BigDecimal obj)
Sets the value as a BigDecimal
public void
set(float v)
Sets the value as a float.
public void
set(double v)
Sets the value as a double.
public void
set(byte[] obj)
Sets the value as a byte array.
public void
set(StringEnumAbstractBase obj)
Sets the value as a StringEnumAbstractBase.
public void
set(Calendar obj)
Sets the value as a Calendar.
public void
set(Date obj)
Sets the value as a Date.
public void
set(GDateSpecification obj)
Sets the value as a GDate.
public void
set(GDurationSpecification obj)
Sets the value as a GDuration.
public void
set(QName obj)
Sets the value as a QName.
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.
public short
shortValue()
Returns the value as a short
public String
stringValue()
Returns the value as a String
public List
xgetListValue()
Returns the value as a List of XmlAnySimpleType objects.
public List
xlistValue()
Returns the value as a List of XmlAnySimpleType objects
 
Methods from interface com.bea.xml.XmlObject
changeType, compareTo, compareValue, copy, execQuery, execQuery, isImmutable, isNil, schemaType, selectPath, selectPath, set, setNil, toString, validate, validate, valueEquals, valueHashCode
 
Methods from interface com.bea.xml.XmlTokenSource
documentProperties, monitor, newCursor, newDomNode, newDomNode, newInputStream, newInputStream, newReader, newReader, newXMLInputStream, newXMLInputStream, save, save, save, save, save, save, save, save, xmlText, xmlText
   

Method Detail

bigDecimalValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getBigDecimalValue()

public BigDecimal bigDecimalValue()
Returns the value as a BigDecimal. *


bigIntegerValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getBigIntegerValue()

public BigInteger bigIntegerValue()
Returns the value as a BigInteger. *


booleanValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getBooleanValue()

public boolean booleanValue()
Returns the value as a boolean. *


byteArrayValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getByteArrayValue()

public byte[] byteArrayValue()
Returns the value as a byte array. *


byteValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getByteValue()

public byte byteValue()
Returns the value as a byte. *


calendarValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getCalendarValue()

public Calendar calendarValue()
Returns the value as a Calendar. *


dateValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getDateValue()

public Date dateValue()
Returns the value as a Date. *


doubleValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getDoubleValue()

public double doubleValue()
Returns the value as a double. *


enumValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getEnumValue()

public StringEnumAbstractBase enumValue()
Returns the value as a StringEnumAbstractBase. *


floatValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getFloatValue()

public float floatValue()
Returns the value as a float. *


gDateValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getGDateValue()

public GDate gDateValue()
Returns the value as a GDate. *


gDurationValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getGDurationValue()

public GDuration gDurationValue()
Returns the value as a GDuration. *


getBigDecimalValue() Method

public BigDecimal getBigDecimalValue()
Returns the value as a BigDecimal.


getBigIntegerValue() Method

public BigInteger getBigIntegerValue()
Returns the value as a BigInteger.


getBooleanValue() Method

public boolean getBooleanValue()
Returns the value as a boolean.


getByteArrayValue() Method

public byte[] getByteArrayValue()
Returns the value as a byte array.


getByteValue() Method

public byte getByteValue()
Returns the value as a byte.


getCalendarValue() Method

public Calendar getCalendarValue()
Returns the value as a Calendar.


getDateValue() Method

public Date getDateValue()
Returns the value as a Date.


getDoubleValue() Method

public double getDoubleValue()
Returns the value as a double.


getEnumValue() Method

public StringEnumAbstractBase getEnumValue()
Returns the value as a StringEnumAbstractBase.


getFloatValue() Method

public float getFloatValue()
Returns the value as a float.


getGDateValue() Method

public GDate getGDateValue()
Returns the value as a GDate.


getGDurationValue() Method

public GDuration getGDurationValue()
Returns the value as a GDuration.


getIntValue() Method

public int getIntValue()
Returns the value as an int.


getListValue() Method

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).


getLongValue() Method

public long getLongValue()
Returns the value as a long.


getObjectValue() Method

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).


getQNameValue() Method

public QName getQNameValue()
Returns the value as a QName.


getShortValue() Method

public short getShortValue()
Returns the value as a short.


getStringValue() Method

public String getStringValue()
Returns the value as a String.


instanceType() Method

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.


intValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getIntValue()

public int intValue()
Returns the value as an int. *


listValue() Method

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). *


longValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getLongValue()

public long longValue()
Returns the value as a long. *


objectSet(Object) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setObjectValue(java.lang.Object)

public void objectSet(Object obj)
Sets the value as an arbitrary Object.


objectValue() Method

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). *


qNameValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getQNameValue()

public QName qNameValue()
Returns the value as a QName. *


set(String) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setStringValue(java.lang.String)

public void set(String obj)
Sets the value as a String. *


set(boolean) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setBooleanValue(boolean)

public void set(boolean v)
Sets the value as a boolean. *


set(byte) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setByteValue(byte)

public void set(byte v)
Sets the value as a byte.


set(short) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setShortValue(short)

public void set(short v)
Sets the value as a short.


set(int) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setIntValue(int)

public void set(int v)
Sets the value as an int.


set(long) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setLongValue(long)

public void set(long v)
Sets the value as a long.


set(BigInteger) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setBigIntegerValue(java.math.BigInteger)

public void set(BigInteger obj)
Sets the value as a BigInteger.


set(BigDecimal) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setBigDecimalValue(java.math.BigDecimal)

public void set(BigDecimal obj)
Sets the value as a BigDecimal


set(float) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setFloatValue(float)

public void set(float v)
Sets the value as a float.


set(double) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setDoubleValue(double)

public void set(double v)
Sets the value as a double.


set(byte[]) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setByteArrayValue(byte[])

public void set(byte[] obj)
Sets the value as a byte array.


set(StringEnumAbstractBase) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setEnumValue(com.bea.xml.StringEnumAbstractBase)

public void set(StringEnumAbstractBase obj)
Sets the value as a StringEnumAbstractBase.


set(Calendar) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setCalendarValue(java.util.Calendar)

public void set(Calendar obj)
Sets the value as a Calendar.


set(Date) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setDateValue(java.util.Date)

public void set(Date obj)
Sets the value as a Date.


set(GDateSpecification) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setGDateValue(com.bea.xml.GDate)

public void set(GDateSpecification obj)
Sets the value as a GDate.


set(GDurationSpecification) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setGDurationValue(com.bea.xml.GDuration)

public void set(GDurationSpecification obj)
Sets the value as a GDuration.


set(QName) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setQNameValue(javax.xml.namespace.QName)

public void set(QName obj)
Sets the value as a QName.


set(List) Method

DEPRECATED replaced with com.bea.xml.SimpleValue.setListValue(java.util.List)

public void set(List obj)
Sets the value as a List.


setBigDecimalValue(BigDecimal) Method

public void setBigDecimalValue(BigDecimal obj)
Sets the value as a BigDecimal.


setBigIntegerValue(BigInteger) Method

public void setBigIntegerValue(BigInteger obj)
Sets the value as a BigInteger.


setBooleanValue(boolean) Method

public void setBooleanValue(boolean v)
Sets the value as a boolean.


setByteArrayValue(byte[]) Method

public void setByteArrayValue(byte[] obj)
Sets the value as a byte array.


setByteValue(byte) Method

public void setByteValue(byte v)
Sets the value as a byte.


setCalendarValue(Calendar) Method

public void setCalendarValue(Calendar obj)
Sets the value as a Calendar.


setDateValue(Date) Method

public void setDateValue(Date obj)
Sets the value as a Date.


setDoubleValue(double) Method

public void setDoubleValue(double v)
Sets the value as a double.


setEnumValue(StringEnumAbstractBase) Method

public void setEnumValue(StringEnumAbstractBase obj)
Sets the value as a StringEnumAbstractBase.


setFloatValue(float) Method

public void setFloatValue(float v)
Sets the value as a float.


setGDateValue(GDate) Method

public void setGDateValue(GDate obj)
Sets the value as a GDate.


setGDurationValue(GDuration) Method

public void setGDurationValue(GDuration obj)
Sets the value as a GDuration.


setIntValue(int) Method

public void setIntValue(int v)
Sets the value as an int.


setListValue(List) Method

public void setListValue(List obj)
Sets the value as a List.


setLongValue(long) Method

public void setLongValue(long v)
Sets the value as a long.


setObjectValue(Object) Method

public void setObjectValue(Object obj)
Sets the value as an arbitrary Object.


setQNameValue(QName) Method

public void setQNameValue(QName obj)
Sets the value as a QName.


setShortValue(short) Method

public void setShortValue(short v)
Sets the value as a short.


setStringValue(String) Method

public void setStringValue(String obj)
Sets the value as a String.


shortValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getShortValue()

public short shortValue()
Returns the value as a short. *


stringValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getStringValue()

public String stringValue()
Returns the value as a String. *


xgetListValue() Method

public List xgetListValue()
Returns the value as a List of XmlAnySimpleType objects.


xlistValue() Method

DEPRECATED replaced with com.bea.xml.SimpleValue.getListValue()

public List xlistValue()
Returns the value as a List of XmlAnySimpleType objects. *