com.ibm.sensorevent.model.generic
Interface IGenericAttribute

All Known Implementing Classes:
GenericAttribute

public interface IGenericAttribute

IGenericAttribute is the interface representing the class GenericAttribute.


Field Summary
static java.lang.String COPYRIGHT
           
 
Method Summary
 java.lang.Object[] getArrayValue()
          Returns the attribute's values as an Object array
 boolean[] getBooleanArrayValue()
          Returns the attribute's values as a boolean array
 boolean getBooleanValue()
          Returns the attribute's value as a boolean
 byte[] getByteArrayValue()
          Returns the attribute's values as a byte array
 byte getByteValue()
          Returns the attribute's value as a byte
 java.util.Date[] getDateArrayValue()
          Returns the attribute's value as a java.util.Date array
 long[] getDateArrayValueAsLong()
          Returns the attribute's java.util.Date values as an array of long millisecond values
 java.util.Date getDateValue()
          Returns the attribute's value as a java.util.Date
 long getDateValueAsLong()
          Returns the attribute's java.util.Date value as a long millisecond value
 double[] getDoubleArrayValue()
          Returns the attribute's values as a double array
 double getDoubleValue()
          Returns the attribute's value as a double
 float[] getFloatArrayValue()
          Returns the attribute's values as a float array
 float getFloatValue()
          Returns the attribute's value as a float
 byte[] getHexValue()
          Returns the attribute's value as an array of hex bytes.
 java.lang.String getHexValueAsString()
          Returns the attribute's hex byte array value as a String
 int[] getIntArrayValue()
          Returns the attribute's values as an int array
 int getIntValue()
          Returns the attribute's value as an int
 long[] getLongArrayValue()
          Returns the attribute's values as a long array
 long getLongValue()
          Returns the attribute's value as a long
 java.lang.String getName()
          Returns the attribute's name
 short[] getShortArrayValue()
          Returns the attribute's values as a short array
 short getShortValue()
          Returns the attribute's value as a short
 java.lang.String[] getStringArrayValue()
          Returns the attribute's values as a String array
 java.lang.String getStringValue()
          Returns the attribute's value as a String
 int getType()
          Returns the type of this attribute
 java.lang.Object getValue()
          Returns the attribute's value as an Object
 void setArrayValue(java.lang.Object[] value)
          Sets the value of this attribute to an Object array
 void setBooleanArrayValue(boolean[] b)
          Sets the value of this attribute to a boolean array
 void setBooleanValue(boolean b)
          Sets the value of this attribute to a single boolean value
 void setByteArrayValue(byte[] b)
          Sets the value of this attribute to a byte array
 void setByteValue(byte b)
          Sets the value of this attribute to a single byte value
 void setDateArrayValue(java.util.Date[] d)
          Sets the value of this attribute to a java.util.Date array
 void setDateArrayValueAsLong(long[] l)
          Sets the value of this attribute to a java.util.Date array converted from the long milliseconds array values
 void setDateValue(java.util.Date d)
          Sets the value of this attribute to a single java.util.Date value
 void setDateValueAsLong(long l)
          Sets the value of this attribute to a single java.util.Date value converted from the given long milliseconds value
 void setDoubleArrayValue(double[] d)
          Sets the value of this attribute to a double array
 void setDoubleValue(double d)
          Sets the value of this attribute to a single double value
 void setFloatArrayValue(float[] f)
          Sets the value of this attribute to a float array
 void setFloatValue(float f)
          Sets the value of this attribute to a single float value
 void setHexValue(byte[] b)
          Sets the value of this attribute to a single HexBinary string converted from the given byte array.
 void setHexValue(java.lang.String s)
          Sets the value of this attribute to a single HexBinary string converted from the given byte array.
 void setIntArrayValue(int[] i)
          Sets the value of this attribute to an int array
 void setIntValue(int i)
          Sets the value of this attribute to a single int value
 void setLongArrayValue(long[] l)
          Sets the value of this attribute to a long array
 void setLongValue(long l)
          Sets the value of this attribute to a single long value
 void setName(java.lang.String name)
          Sets the name of this attribute
 void setShortArrayValue(short[] s)
          Sets the value of this attribute to a short array
 void setShortValue(short s)
          Sets the value of this attribute to a single short value
 void setStringArrayValue(java.lang.String[] s)
          Sets the value of this attribute to a String array
 void setStringValue(java.lang.String s)
          Sets the value of this attribute to a single String value
 void setType(int type)
          Sets the type of this attribute
 void setValue(java.lang.Object value)
          Sets the value of this attribute to a single Object value
 java.lang.String valueAsString()
          Returns a string representation of this attribute's value
 

Field Detail

COPYRIGHT

static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Returns the attribute's name


setName

void setName(java.lang.String name)
             throws SensorEventException
Sets the name of this attribute

Throws:
SensorEventException

getValue

java.lang.Object getValue()
Returns the attribute's value as an Object


valueAsString

java.lang.String valueAsString()
                               throws SensorEventException
Returns a string representation of this attribute's value

Throws:
SensorEventException

getBooleanValue

boolean getBooleanValue()
                        throws SensorEventException
Returns the attribute's value as a boolean

Throws:
SensorEventException

getByteValue

byte getByteValue()
                  throws SensorEventException
Returns the attribute's value as a byte

Throws:
SensorEventException

getDateValue

java.util.Date getDateValue()
                            throws SensorEventException
Returns the attribute's value as a java.util.Date

Throws:
SensorEventException

getDateValueAsLong

long getDateValueAsLong()
                        throws SensorEventException
Returns the attribute's java.util.Date value as a long millisecond value

Throws:
SensorEventException

getDoubleValue

double getDoubleValue()
                      throws SensorEventException
Returns the attribute's value as a double

Throws:
SensorEventException

getFloatValue

float getFloatValue()
                    throws SensorEventException
Returns the attribute's value as a float

Throws:
SensorEventException

getHexValue

byte[] getHexValue()
                   throws SensorEventException
Returns the attribute's value as an array of hex bytes. The byte values have been decoded using the HexBinary algorithm.

Throws:
SensorEventException

getHexValueAsString

java.lang.String getHexValueAsString()
                                     throws SensorEventException
Returns the attribute's hex byte array value as a String

Throws:
SensorEventException

getIntValue

int getIntValue()
                throws SensorEventException
Returns the attribute's value as an int

Throws:
SensorEventException

getLongValue

long getLongValue()
                  throws SensorEventException
Returns the attribute's value as a long

Throws:
SensorEventException

getShortValue

short getShortValue()
                    throws SensorEventException
Returns the attribute's value as a short

Throws:
SensorEventException

getStringValue

java.lang.String getStringValue()
                                throws SensorEventException
Returns the attribute's value as a String

Throws:
SensorEventException

getArrayValue

java.lang.Object[] getArrayValue()
                                 throws SensorEventException
Returns the attribute's values as an Object array

Throws:
SensorEventException

getBooleanArrayValue

boolean[] getBooleanArrayValue()
                               throws SensorEventException
Returns the attribute's values as a boolean array

Throws:
SensorEventException

getByteArrayValue

byte[] getByteArrayValue()
                         throws SensorEventException
Returns the attribute's values as a byte array

Throws:
SensorEventException

getDateArrayValue

java.util.Date[] getDateArrayValue()
                                   throws SensorEventException
Returns the attribute's value as a java.util.Date array

Throws:
SensorEventException

getDateArrayValueAsLong

long[] getDateArrayValueAsLong()
                               throws SensorEventException
Returns the attribute's java.util.Date values as an array of long millisecond values

Throws:
SensorEventException

getDoubleArrayValue

double[] getDoubleArrayValue()
                             throws SensorEventException
Returns the attribute's values as a double array

Throws:
SensorEventException

getFloatArrayValue

float[] getFloatArrayValue()
                           throws SensorEventException
Returns the attribute's values as a float array

Throws:
SensorEventException

getIntArrayValue

int[] getIntArrayValue()
                       throws SensorEventException
Returns the attribute's values as an int array

Throws:
SensorEventException

getLongArrayValue

long[] getLongArrayValue()
                         throws SensorEventException
Returns the attribute's values as a long array

Throws:
SensorEventException

getShortArrayValue

short[] getShortArrayValue()
                           throws SensorEventException
Returns the attribute's values as a short array

Throws:
SensorEventException

getStringArrayValue

java.lang.String[] getStringArrayValue()
                                       throws SensorEventException
Returns the attribute's values as a String array

Throws:
SensorEventException

setValue

void setValue(java.lang.Object value)
              throws SensorEventException
Sets the value of this attribute to a single Object value

Throws:
SensorEventException

setBooleanValue

void setBooleanValue(boolean b)
                     throws SensorEventException
Sets the value of this attribute to a single boolean value

Throws:
SensorEventException

setByteValue

void setByteValue(byte b)
                  throws SensorEventException
Sets the value of this attribute to a single byte value

Throws:
SensorEventException

setDateValue

void setDateValue(java.util.Date d)
                  throws SensorEventException
Sets the value of this attribute to a single java.util.Date value

Throws:
SensorEventException

setDateValueAsLong

void setDateValueAsLong(long l)
                        throws SensorEventException
Sets the value of this attribute to a single java.util.Date value converted from the given long milliseconds value

Throws:
SensorEventException

setDoubleValue

void setDoubleValue(double d)
                    throws SensorEventException
Sets the value of this attribute to a single double value

Throws:
SensorEventException

setFloatValue

void setFloatValue(float f)
                   throws SensorEventException
Sets the value of this attribute to a single float value

Throws:
SensorEventException

setHexValue

void setHexValue(byte[] b)
                 throws SensorEventException
Sets the value of this attribute to a single HexBinary string converted from the given byte array. The string is created by encoding the given byte array using the HexBinary algorithm.

Throws:
SensorEventException

setHexValue

void setHexValue(java.lang.String s)
                 throws SensorEventException
Sets the value of this attribute to a single HexBinary string converted from the given byte array.

Throws:
SensorEventException

setIntValue

void setIntValue(int i)
                 throws SensorEventException
Sets the value of this attribute to a single int value

Throws:
SensorEventException

setLongValue

void setLongValue(long l)
                  throws SensorEventException
Sets the value of this attribute to a single long value

Throws:
SensorEventException

setShortValue

void setShortValue(short s)
                   throws SensorEventException
Sets the value of this attribute to a single short value

Throws:
SensorEventException

setStringValue

void setStringValue(java.lang.String s)
                    throws SensorEventException
Sets the value of this attribute to a single String value

Throws:
SensorEventException

setArrayValue

void setArrayValue(java.lang.Object[] value)
                   throws SensorEventException
Sets the value of this attribute to an Object array

Throws:
SensorEventException

setBooleanArrayValue

void setBooleanArrayValue(boolean[] b)
                          throws SensorEventException
Sets the value of this attribute to a boolean array

Throws:
SensorEventException

setByteArrayValue

void setByteArrayValue(byte[] b)
                       throws SensorEventException
Sets the value of this attribute to a byte array

Throws:
SensorEventException

setDateArrayValue

void setDateArrayValue(java.util.Date[] d)
                       throws SensorEventException
Sets the value of this attribute to a java.util.Date array

Throws:
SensorEventException

setDateArrayValueAsLong

void setDateArrayValueAsLong(long[] l)
                             throws SensorEventException
Sets the value of this attribute to a java.util.Date array converted from the long milliseconds array values

Throws:
SensorEventException

setDoubleArrayValue

void setDoubleArrayValue(double[] d)
                         throws SensorEventException
Sets the value of this attribute to a double array

Throws:
SensorEventException

setFloatArrayValue

void setFloatArrayValue(float[] f)
                        throws SensorEventException
Sets the value of this attribute to a float array

Throws:
SensorEventException

setIntArrayValue

void setIntArrayValue(int[] i)
                      throws SensorEventException
Sets the value of this attribute to an int array

Throws:
SensorEventException

setLongArrayValue

void setLongArrayValue(long[] l)
                       throws SensorEventException
Sets the value of this attribute to a long array

Throws:
SensorEventException

setShortArrayValue

void setShortArrayValue(short[] s)
                        throws SensorEventException
Sets the value of this attribute to a short array

Throws:
SensorEventException

setStringArrayValue

void setStringArrayValue(java.lang.String[] s)
                         throws SensorEventException
Sets the value of this attribute to a String array

Throws:
SensorEventException

getType

int getType()
Returns the type of this attribute

See Also:
IGenericType

setType

void setType(int type)
Sets the type of this attribute

See Also:
IGenericType


Copyright © 2005 - 2009 IBM Corp. All Rights Reserved.