|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.ca.ChannelRecord
ChannelRecord is a wrapper for the value returned by a get operation on a Channel. It a provides convenience methods for getting data back as one of many primitive types.
| Field Summary | |
protected ArrayValue |
store
|
| Constructor Summary | |
ChannelRecord(ValueAdaptor adaptor)
Creates new ChannelRecord |
|
| Method Summary | |
byte[] |
byteArray()
Get the data converted to a byte array. |
byte |
byteValue()
Get the data converted to a scalar byte. |
byte |
byteValueAt(int index)
Get the value of the array element identified by the index and convert it to a byte. |
double[] |
doubleArray()
Get the data converted to a double array. |
double |
doubleValue()
Get the data converted to a scalar double. |
double |
doubleValueAt(int index)
Get the value of the array element identified by the index and convert it to a double. |
float[] |
floatArray()
Get the data converted to a float array. |
float |
floatValue()
Get the data converted to a scalar float. |
float |
floatValueAt(int index)
Get the value of the array element identified by the index and convert it to a float. |
int |
getCount()
Get the number of elements in the array value. |
java.lang.Class |
getType()
Get the native type of the data as a Java class. |
int[] |
intArray()
Get the data converted to a int array. |
int |
intValue()
Get the data converted to a scalar int. |
int |
intValueAt(int index)
Get the value of the array element identified by the index and convert it to a int. |
short[] |
shortArray()
Get the data converted to a short array. |
short |
shortValue()
Get the data converted to a scalar short. |
short |
shortValueAt(int index)
Get the value of the array element identified by the index and convert it to a short. |
java.lang.String[] |
stringArray()
Get the data converted to a string array. |
java.lang.String |
stringValue()
Get the data converted to a scalar string. |
java.lang.String |
stringValueAt(int index)
Get the value of the array element identified by the index and convert it to a string. |
java.lang.String |
toString()
Override toString to return a representation of the data as an array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected ArrayValue store
| Constructor Detail |
public ChannelRecord(ValueAdaptor adaptor)
| Method Detail |
public int getCount()
public java.lang.Class getType()
public byte byteValue()
public byte byteValueAt(int index)
index - The index of the array element to get.
public byte[] byteArray()
public short shortValue()
public short shortValueAt(int index)
index - The index of the array element to get.
public short[] shortArray()
public int intValue()
public int intValueAt(int index)
index - The index of the array element to get.
public int[] intArray()
public float floatValue()
public float floatValueAt(int index)
index - The index of the array element to get.
public float[] floatArray()
public double doubleValue()
public double doubleValueAt(int index)
index - The index of the array element to get.
public double[] doubleArray()
public java.lang.String stringValue()
public java.lang.String stringValueAt(int index)
index - The index of the array element to get.
public java.lang.String[] stringArray()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||