Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


waggle.core.info
Class XValue

java.lang.Object
  extended by waggle.core.info.XValue


public final class XValue
extends Object

XValue.


Constructor Summary
XValue(Object value)
          Construct an XValue from the given Object value.

 

Method Summary
 Object[] getArray()
          Get an object array value from the XUpdater.
 Boolean getBoolean()
          Get a boolean value from the XUpdater.
 Boolean getBoolean(Boolean dftValue)
          Get a boolean value from the XUpdater.
 byte[] getBytes()
          Get a byte array value from the XUpdater.
 byte[] getBytes(byte[] dftValue)
          Get a byte array value from the XUpdater.
 XClientID getClientID()
          Get an XClientID value from the XUpdater.
<T> T
getCollection(T type)
          Get a Collection value from the XUpdater.
 Collection<XObjectID> getCollectionObjectIDs()
          Get a Collection value from the XUpdater.
 Collection<XUpdater> getCollectionUpdaters()
          Get a Collection value from the XUpdater.
 Date getDate()
          Get a date value from the XUpdater.
 Date getDate(Date dftValue)
          Get a date value from the XUpdater.
 Double getDouble()
          Get a double value from the XUpdater.
 Double getDouble(Double dftValue)
          Get a double value from the XUpdater.
<T extends Enum<T>>
T
getEnum(Class<T> enumClass)
          Get an enum value from the XUpdater.
<T extends Enum<T>>
T
getEnum(Class<T> enumClass, T dftValue)
          Get an enum value from the XUpdater.
<T extends Enum<T>>
EnumSet<T>
getEnumSet(Class<T> enumClass, EnumSet<T> dftValue)
          Get an EnumSet value from the XUpdater.
 Integer getInteger()
          Get an integer value from the XUpdater.
 Integer getInteger(Integer dftValue)
          Get an integer value from the XUpdater.
 List getList()
          Get a List value from the XUpdater.
 Locale getLocale()
          Return a Locale.
 Long getLong()
          Get a long value from the XUpdater.
 Long getLong(Long dftValue)
          Get a long value from the XUpdater.
 long[] getLongs()
          Get a long array value from the XUpdater.
 long[] getLongs(long[] dftValues)
          Get a long array value from the XUpdater.
<T> T
getMap(T type)
          Get a Map value from the XUpdater.
 Object getObject()
          Get an Object value from the XUpdater.
 XObjectID getObjectID()
          Get an XObjectID value from the XUpdater.
 XSessionID getSessionID()
          Get an XSessionID value from the XUpdater.
 String getString()
          Get a string value from the XUpdater.
 String getString(String dftValue)
          Get a string value from the XUpdater.
 TimeZone getTimeZone()
          Return a TimeZone.
 String getTrimmedStringOrNullIfEmpty()
          Get a trimmed string value from the XUpdater.
 String getTrimmedStringOrNullIfEmpty(String dftValue)
          Get a trimmed string value from the XUpdater.
 XUpdater getUpdater()
          Get an XUpdater value from the XUpdater.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

XValue

public XValue(Object value)
Construct an XValue from the given Object value.
Parameters:
value - the Object value

Method Detail

getString

public String getString()
Get a string value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getTrimmedStringOrNullIfEmpty

public String getTrimmedStringOrNullIfEmpty()
Get a trimmed string value from the XUpdater. Null if returned if the string is empty.
Returns:
The value corresponding to name, if present; otherwise null.

getString

public String getString(String dftValue)
Get a string value from the XUpdater.
Parameters:
dftValue - The value to return if name is not present.
Returns:
The value corresponding to name, if present; otherwise dftValue.

getTrimmedStringOrNullIfEmpty

public String getTrimmedStringOrNullIfEmpty(String dftValue)
Get a trimmed string value from the XUpdater. Null if returned if the string is empty.
Parameters:
dftValue - The value to return if name is not present.
Returns:
The value corresponding to name, if present; otherwise dftValue.

getInteger

public Integer getInteger()
Get an integer value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getInteger

public Integer getInteger(Integer dftValue)
Get an integer value from the XUpdater.
Parameters:
dftValue - The value to return if name is not present.
Returns:
The value corresponding to name, if present; otherwise dftValue.

getLong

public Long getLong()
Get a long value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getLong

public Long getLong(Long dftValue)
Get a long value from the XUpdater.
Parameters:
dftValue - The value to return if name is not present.
Returns:
The value corresponding to name, if present; otherwise dftValue.

getDouble

public Double getDouble()
Get a double value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getDouble

public Double getDouble(Double dftValue)
Get a double value from the XUpdater.
Parameters:
dftValue - The value to return if name is not present.
Returns:
The value corresponding to name, if present; otherwise dftValue.

getBoolean

public Boolean getBoolean()
Get a boolean value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getBoolean

public Boolean getBoolean(Boolean dftValue)
Get a boolean value from the XUpdater.
Parameters:
dftValue - The value to return if name is not present.
Returns:
The value corresponding to name, if present; otherwise dftValue.

getDate

public Date getDate()
Get a date value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getDate

public Date getDate(Date dftValue)
Get a date value from the XUpdater.
Parameters:
dftValue - The value to return if name is not present.
Returns:
The value corresponding to name, if present; otherwise dftValue.

getLongs

public long[] getLongs()
Get a long array value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getLongs

public long[] getLongs(long[] dftValues)
Get a long array value from the XUpdater.
Parameters:
dftValues - The value to return if name is not present.
Returns:
The value corresponding to name, if present; otherwise dftValue.

getBytes

public byte[] getBytes()
Get a byte array value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getBytes

public byte[] getBytes(byte[] dftValue)
Get a byte array value from the XUpdater.
Parameters:
dftValue - The value to return if name is not present.
Returns:
The value corresponding to name, if present; otherwise dftValue.

getObjectID

public XObjectID getObjectID()
Get an XObjectID value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getSessionID

public XSessionID getSessionID()
Get an XSessionID value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getClientID

public XClientID getClientID()
Get an XClientID value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getEnum

public <T extends Enum<T>> T getEnum(Class<T> enumClass)
Get an enum value from the XUpdater.
Type Parameters:
T - The type of enum to be returned.
Parameters:
enumClass - The class of the XUpdater enum value to return.
Returns:
The value corresponding to name, if present; otherwise null.

getEnum

public <T extends Enum<T>> T getEnum(Class<T> enumClass,
                                     T dftValue)
Get an enum value from the XUpdater.
Type Parameters:
T - The type of enum to be returned.
Parameters:
enumClass - The class of the XUpdater enum value to return.
dftValue - The value to return if name is not present.
Returns:
The value corresponding to name, if present; otherwise dftValue.

getEnumSet

public <T extends Enum<T>> EnumSet<T> getEnumSet(Class<T> enumClass,
                                                 EnumSet<T> dftValue)
Get an EnumSet value from the XUpdater.
Type Parameters:
T - The type of enum entries to be returned in the EnumSet.
Parameters:
enumClass - The class of the XUpdater enum values to return.
dftValue - The value to return if name is not present.
Returns:
The value corresponding to name, if present; otherwise dftValue.

getMap

public <T> T getMap(T type)
Get a Map value from the XUpdater.
Type Parameters:
T - The type of object in the Map.
Parameters:
type - The type object (may be null).
Returns:
The value corresponding to name, if present; otherwise null.

getCollection

public <T> T getCollection(T type)
Get a Collection value from the XUpdater. This method has semantics similar to XClass.uncheckedCast().
Type Parameters:
T - The type of object in the Collection.
Parameters:
type - The type object (may be null).
Returns:
The value corresponding to name, if present; otherwise null.

getCollectionUpdaters

public Collection<XUpdater> getCollectionUpdaters()
Get a Collection value from the XUpdater. This method has semantics similar to XClass.uncheckedCast().
Returns:
The value corresponding to name, if present; otherwise null.

getCollectionObjectIDs

public Collection<XObjectID> getCollectionObjectIDs()
Get a Collection value from the XUpdater. This method has semantics similar to XClass.uncheckedCast().
Returns:
The value corresponding to name, if present; otherwise null.

getList

public List getList()
Get a List value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getArray

public Object[] getArray()
Get an object array value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getUpdater

public XUpdater getUpdater()
Get an XUpdater value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

getTimeZone

public TimeZone getTimeZone()
Return a TimeZone.
Returns:
The Timezone or null.

getLocale

public Locale getLocale()
Return a Locale.
Returns:
The Locale or null.

getObject

public Object getObject()
Get an Object value from the XUpdater.
Returns:
The value corresponding to name, if present; otherwise null.

Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.