|
Siena (v.1.5.5) API documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsiena.AttributeValue
public class AttributeValue
Value of an attribute in an event notification.
An AttributeValue
is a container for a typed vaule of
an attribute in a notification. An AttributeValue
can
be of type String
, byte[]
,
int
, long
, double
, and
boolean
.
Example:
AttributeValue v = new
AttributeValue("Antonio");
System.out.println(v.stringValue());
Notification e = new Notification();
e.putAttribute("name", v);
Notification
,
AttributeConstraint
,
Serialized FormField Summary | |
---|---|
static int |
BOOL
boolean type. |
static int |
BYTEARRAY
string of bytes |
static int |
DOUBLE
double type. |
static int |
INT
integer type. |
static int |
LONG
integer type. |
static int |
NULL
null type, the default type of a Siena attribute |
static int |
STRING
string of bytes an alias to BYTEARRAY
provided only for backward compatibility |
Constructor Summary | |
---|---|
AttributeValue()
|
|
AttributeValue(AttributeValue x)
|
|
AttributeValue(boolean b)
|
|
AttributeValue(byte[] s)
|
|
AttributeValue(double d)
|
|
AttributeValue(long i)
|
|
AttributeValue(java.lang.String s)
|
Method Summary | |
---|---|
boolean |
booleanValue()
|
byte[] |
byteArrayValue()
|
double |
doubleValue()
|
int |
getType()
|
int |
hashCode()
|
int |
intValue()
|
boolean |
isEqualTo(AttributeValue x)
|
long |
longValue()
|
java.lang.String |
stringValue()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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 BOOL
boolean
type.
Constructor Detail |
---|
public AttributeValue()
public AttributeValue(AttributeValue x)
public AttributeValue(java.lang.String s)
public AttributeValue(byte[] s)
public AttributeValue(long i)
public AttributeValue(boolean b)
public AttributeValue(double d)
Method Detail |
---|
public int getType()
public int intValue()
public long longValue()
public double doubleValue()
public boolean booleanValue()
public java.lang.String stringValue()
public byte[] byteArrayValue()
public boolean isEqualTo(AttributeValue x)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Siena (v.1.5.5) API documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |