|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.server.dispatcher.elvin.AttValue
Value of an attribute in an event following the siena style.
An AttValue
is a container for a typed vaule of
an attribute in a Event. An AttValue
can
be of type String
, byte[]
,
int
, long
, double
, and
boolean
.
Field Summary | |
static java.lang.String |
BINARY_TYPE
|
static int |
BOOL
boolean type. |
static java.lang.String |
BOOLEAN_TYPE
|
static int |
BYTEARRAY
string of bytes |
static int |
DOUBLE
double type. |
static java.lang.String |
DOUBLE_TYPE
|
static int |
FLOAT
float type. |
static java.lang.String |
FLOAT_TYPE
|
static int |
INT
integer type. |
static java.lang.String |
INT_TYPE
|
static int |
LONG
integer type. |
static java.lang.String |
LONG_TYPE
|
static int |
NULL
null type, the default type of an attribute |
static int |
STRING
string of bytes an alias to BYTEARRAY
provided only for backward compatibility |
static java.lang.String |
STRING_TYPE
|
Constructor Summary | |
AttValue()
|
|
AttValue(AttValue x)
|
|
AttValue(boolean b)
|
|
AttValue(byte[] s)
|
|
AttValue(double d)
|
|
AttValue(java.lang.Double s)
|
|
AttValue(float f)
|
|
AttValue(int i)
|
|
AttValue(java.lang.Integer s)
|
|
AttValue(long i)
|
|
AttValue(java.lang.Long s)
|
|
AttValue(java.lang.Object o)
|
|
AttValue(java.lang.String s)
|
|
AttValue(java.lang.String val,
java.lang.String type)
Initializes the attribute/value object with its string value and its type the string value is converted to the internal representation according to the type provided. |
Method Summary | |
boolean |
booleanValue()
|
byte[] |
byteArrayValue()
|
double |
doubleValue()
|
float |
floatValue()
|
java.lang.String |
getAttributeType()
|
int |
getType()
|
int |
hashCode()
|
void |
init(boolean b)
|
void |
init(byte[] s)
|
void |
init(double d)
|
void |
init(float f)
|
void |
init(int i)
|
void |
init(long i)
|
void |
init(java.lang.String s)
|
int |
intValue()
|
boolean |
isEqualTo(AttValue x)
|
long |
longValue()
|
java.lang.String |
stringValue()
|
java.lang.String |
toString()
|
java.lang.String |
toXML()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String STRING_TYPE
public static final java.lang.String INT_TYPE
public static final java.lang.String LONG_TYPE
public static final java.lang.String FLOAT_TYPE
public static final java.lang.String DOUBLE_TYPE
public static final java.lang.String BOOLEAN_TYPE
public static final java.lang.String BINARY_TYPE
public static final int NULL
public static final int BYTEARRAY
public static final int STRING
BYTEARRAY
provided only for backward compatibility
public static final int LONG
long
type.
public static final int INT
int
type.
public static final int DOUBLE
double
type.
public static final int FLOAT
float
type.
public static final int BOOL
boolean
type.
Constructor Detail |
public AttValue()
public AttValue(AttValue x)
public AttValue(java.lang.String val, java.lang.String type)
val
- the value of the attribute as a Stringtype
- the type of the attributepublic AttValue(java.lang.Object o)
public AttValue(java.lang.String s)
public AttValue(java.lang.Long s)
public AttValue(java.lang.Double s)
public AttValue(java.lang.Integer s)
public AttValue(byte[] s)
public AttValue(long i)
public AttValue(int i)
public AttValue(boolean b)
public AttValue(double d)
public AttValue(float f)
Method Detail |
public void init(java.lang.String s)
public void init(byte[] s)
public void init(long i)
public void init(int i)
public void init(boolean b)
public void init(double d)
public void init(float f)
public int getType()
public int intValue()
public long longValue()
public double doubleValue()
public float floatValue()
public boolean booleanValue()
public java.lang.String stringValue()
public byte[] byteArrayValue()
public boolean isEqualTo(AttValue x)
public java.lang.String getAttributeType()
public java.lang.String toString()
public java.lang.String toXML()
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |