Home » xmlbeans-2.5.0-src » org.apache » xmlbeans » [javadoc | source]
org.apache.xmlbeans
public interface: SimpleValue [javadoc | source]

All Implemented Interfaces:
    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.
Method from org.apache.xmlbeans.SimpleValue Summary:
bigDecimalValue,   bigIntegerValue,   booleanValue,   byteArrayValue,   byteValue,   calendarValue,   dateValue,   doubleValue,   enumValue,   floatValue,   gDateValue,   gDurationValue,   getBigDecimalValue,   getBigIntegerValue,   getBooleanValue,   getByteArrayValue,   getByteValue,   getCalendarValue,   getDateValue,   getDoubleValue,   getEnumValue,   getFloatValue,   getGDateValue,   getGDurationValue,   getIntValue,   getListValue,   getLongValue,   getObjectValue,   getQNameValue,   getShortValue,   getStringValue,   instanceType,   intValue,   listValue,   longValue,   objectSet,   objectValue,   qNameValue,   set,   set,   set,   set,   set,   set,   set,   set,   set,   set,   set,   set,   set,   set,   set,   set,   set,   set,   setBigDecimalValue,   setBigIntegerValue,   setBooleanValue,   setByteArrayValue,   setByteValue,   setCalendarValue,   setDateValue,   setDoubleValue,   setEnumValue,   setFloatValue,   setGDateValue,   setGDurationValue,   setIntValue,   setListValue,   setLongValue,   setObjectValue,   setQNameValue,   setShortValue,   setStringValue,   shortValue,   stringValue,   xgetListValue,   xlistValue
Method from org.apache.xmlbeans.SimpleValue Detail:
 public BigDecimal bigDecimalValue()Deprecated! replaced -  with #getBigDecimalValue 

 public BigInteger bigIntegerValue()Deprecated! replaced -  with #getBigIntegerValue 

 public boolean booleanValue()Deprecated! replaced -  with #getBooleanValue 

    Returns the value as a boolean. *
 public byte[] byteArrayValue()Deprecated! replaced -  with #getByteArrayValue 

    Returns the value as a byte array. *
 public byte byteValue()Deprecated! replaced -  with #getByteValue 

    Returns the value as a byte. *
 public Calendar calendarValue()Deprecated! replaced -  with #getCalendarValue 

 public Date dateValue()Deprecated! replaced -  with #getDateValue 

    Returns the value as a Date . *
 public double doubleValue()Deprecated! replaced -  with #getDoubleValue 

    Returns the value as a double. *
 public StringEnumAbstractBase enumValue()Deprecated! replaced -  with #getEnumValue 

 public float floatValue()Deprecated! replaced -  with #getFloatValue 

    Returns the value as a float. *
 public GDate gDateValue()Deprecated! replaced -  with #getGDateValue 

    Returns the value as a GDate . *
 public GDuration gDurationValue()Deprecated! replaced -  with #getGDurationValue 

 public BigDecimal getBigDecimalValue()
 public BigInteger getBigIntegerValue()
 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()
 public Date getDateValue()
    Returns the value as a Date .
 public double getDoubleValue()
    Returns the value as a double.
 public StringEnumAbstractBase getEnumValue()
 public float getFloatValue()
    Returns the value as a float.
 public GDate getGDateValue()
    Returns the value as a GDate .
 public GDuration getGDurationValue()
 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.

 public int intValue()Deprecated! replaced -  with #getIntValue 

    Returns the value as an int. *
 public List listValue()Deprecated! replaced -  with #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 longValue()Deprecated! replaced -  with #getLongValue 

    Returns the value as a long. *
 public  void objectSet(Object obj)Deprecated! replaced -  with #setObjectValue 
     *

    Sets the value as an arbitrary Object .
 public Object objectValue()Deprecated! replaced -  with #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 qNameValue()Deprecated! replaced -  with #getQNameValue 

    Returns the value as a QName . *
 public  void set(String obj)Deprecated! replaced -  with #setStringValue 

    Sets the value as a String . *
 public  void set(boolean v)Deprecated! replaced -  with #setBooleanValue 

    Sets the value as a boolean. *
 public  void set(byte v)Deprecated! replaced -  with #setByteValue 
     *

    Sets the value as a byte.
 public  void set(short v)Deprecated! replaced -  with #setShortValue 
     *

    Sets the value as a short.
 public  void set(int v)Deprecated! replaced -  with #setIntValue 
     *

    Sets the value as an int.
 public  void set(long v)Deprecated! replaced -  with #setLongValue 
     *

    Sets the value as a long.
 public  void set(BigInteger obj)Deprecated! replaced -  with #setBigIntegerValue 
     *

 public  void set(BigDecimal obj)Deprecated! replaced -  with #setBigDecimalValue 
     *

 public  void set(float v)Deprecated! replaced -  with #setFloatValue 
     *

    Sets the value as a float.
 public  void set(double v)Deprecated! replaced -  with #setDoubleValue 
     *

    Sets the value as a double.
 public  void set(byte[] obj)Deprecated! replaced -  with #setByteArrayValue 
     *

    Sets the value as a byte array.
 public  void set(StringEnumAbstractBase obj)Deprecated! replaced -  with #setEnumValue 
     *

 public  void set(Calendar obj)Deprecated! replaced -  with #setCalendarValue 
     *

 public  void set(Date obj)Deprecated! replaced -  with #setDateValue 
     *

    Sets the value as a Date .
 public  void set(GDateSpecification obj)Deprecated! replaced -  with #setGDateValue 
     *

    Sets the value as a GDate .
 public  void set(GDurationSpecification obj)Deprecated! replaced -  with #setGDurationValue 
     *

 public  void set(QName obj)Deprecated! replaced -  with #setQNameValue 
     *

    Sets the value as a QName .
 public  void set(List obj)Deprecated! replaced -  with #setListValue 
     *

    Sets the value as a List .
 public  void setBigDecimalValue(BigDecimal obj)
 public  void setBigIntegerValue(BigInteger obj)
 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)
 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)
 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)
 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)
 public short shortValue()Deprecated! replaced -  with #getShortValue 

    Returns the value as a short. *
 public String stringValue()Deprecated! replaced -  with #getStringValue 

    Returns the value as a String . *
 public List xgetListValue()
    Returns the value as a List of XmlAnySimpleType objects.
 public List xlistValue()Deprecated! replaced -  with #xgetListValue 

    Returns the value as a List of XmlAnySimpleType objects. *