com.electrotank.electroserver4.extensions.api.value
Class EsObjectEntry

java.lang.Object
  extended by com.electrotank.electroserver4.extensions.api.value.EsObjectEntry

public class EsObjectEntry
extends Object

Object class that holds a single entry for an EsObject.

See Also:
EsObject, EsObjectRO

Constructor Summary
EsObjectEntry(String name, EsObject object)
          Constructs a new EsObjectEntry object.
 
Method Summary
 boolean getBoolean()
          Gets the value of the entry, if it is a boolean.
 boolean[] getBooleanArray()
          Gets the value of the entry, if it is an array of booleans.
 byte getByte()
          Gets the value of the entry, if it is a byte.
 byte[] getByteArray()
          Gets the value of the entry, if it is an array of bytes.
 char getChar()
          Gets the value of the entry, if it is a char.
 char[] getCharArray()
          Gets the value of the entry, if it is an array of chars.
 double getDouble()
          Gets the value of the entry, if it is a double.
 double[] getDoubleArray()
          Gets the value of the entry, if it is an array of doubles.
 EsObject getEsObject()
          Gets the value of the entry, if it is an EsObject.
 EsObject[] getEsObjectArray()
          Gets the value of the entry, if it is an array of EsObjects.
 float getFloat()
          Gets the value of the entry, if it is a float.
 float[] getFloatArray()
          Gets the value of the entry, if it is an array of floats.
 int getInteger()
          Gets the value of the entry, if it is an integer.
 int[] getIntegerArray()
          Gets the value of the entry, if it is an array of ints.
 long getLong()
          Gets the value of the entry, if it is a long.
 long[] getLongArray()
          Gets the value of the entry, if it is an array of longs.
 String getName()
          Gets the name of the entry.
 Number getNumber()
          Gets the value of the entry, if it is a Number.
 Number[] getNumberArray()
          Gets the value of the entry, if it is an array of Numbers.
 Object getRawValue()
          Gets the raw (Object) value of the entry.
 short getShort()
          Gets the value of the entry, if it is a short.
 short[] getShortArray()
          Gets the value of the entry, if it is an array of shorts.
 String getString()
          Gets the value of the entry, if it is a string.
 String[] getStringArray()
          Gets the value of the entry, if it is an array of strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EsObjectEntry

public EsObjectEntry(String name,
                     EsObject object)
Constructs a new EsObjectEntry object.

Parameters:
name - name of the entry
object - value of the entry
Method Detail

getName

public String getName()
Gets the name of the entry.

Returns:
name

getInteger

public int getInteger()
Gets the value of the entry, if it is an integer.

Returns:
value

getString

public String getString()
Gets the value of the entry, if it is a string.

Returns:
value

getDouble

public double getDouble()
Gets the value of the entry, if it is a double.

Returns:
value

getFloat

public float getFloat()
Gets the value of the entry, if it is a float.

Returns:
value

getBoolean

public boolean getBoolean()
Gets the value of the entry, if it is a boolean.

Returns:
value

getByte

public byte getByte()
Gets the value of the entry, if it is a byte.

Returns:
value

getChar

public char getChar()
Gets the value of the entry, if it is a char.

Returns:
value

getLong

public long getLong()
Gets the value of the entry, if it is a long.

Returns:
value

getShort

public short getShort()
Gets the value of the entry, if it is a short.

Returns:
value

getEsObject

public EsObject getEsObject()
Gets the value of the entry, if it is an EsObject.

Returns:
value

getNumber

public Number getNumber()
Gets the value of the entry, if it is a Number.

Returns:
value

getIntegerArray

public int[] getIntegerArray()
Gets the value of the entry, if it is an array of ints.

Returns:
value

getStringArray

public String[] getStringArray()
Gets the value of the entry, if it is an array of strings.

Returns:
value

getDoubleArray

public double[] getDoubleArray()
Gets the value of the entry, if it is an array of doubles.

Returns:
value

getFloatArray

public float[] getFloatArray()
Gets the value of the entry, if it is an array of floats.

Returns:
value

getBooleanArray

public boolean[] getBooleanArray()
Gets the value of the entry, if it is an array of booleans.

Returns:
value

getByteArray

public byte[] getByteArray()
Gets the value of the entry, if it is an array of bytes.

Returns:
value

getCharArray

public char[] getCharArray()
Gets the value of the entry, if it is an array of chars.

Returns:
value

getLongArray

public long[] getLongArray()
Gets the value of the entry, if it is an array of longs.

Returns:
value

getShortArray

public short[] getShortArray()
Gets the value of the entry, if it is an array of shorts.

Returns:
value

getEsObjectArray

public EsObject[] getEsObjectArray()
Gets the value of the entry, if it is an array of EsObjects.

Returns:
value

getNumberArray

public Number[] getNumberArray()
Gets the value of the entry, if it is an array of Numbers.

Returns:
value

getRawValue

public Object getRawValue()
Gets the raw (Object) value of the entry.

Returns:
value


Copyright © 2007 Electrotank, Inc. All Rights Reserved.