|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.cams.attr.AbstractAttributeValue
com.cafesoft.cams.attr.BooleanAttributeValue
public class BooleanAttributeValue
BooleanAttributeValue represents an attribute value of type:
urn:cams:1.0:names:data-type:boolean.
| Field Summary | |
|---|---|
static BooleanAttributeValue |
BOOLEAN_ATTRIBUTE_VALUE_FALSE
False BooleanAttributeValue |
static BooleanAttributeValue |
BOOLEAN_ATTRIBUTE_VALUE_TRUE
True BooleanAttributeValue |
static String |
DATA_TYPE_ID
Official Cams identifier of this type |
| Method Summary | |
|---|---|
String |
encode()
Returns the String encoding of the attribute value. |
boolean |
equals(Object o)
Returns true if the input is an instance of this class and if its value equals the value contained in this class. |
static BooleanAttributeValue |
getInstance(boolean value)
Get a BooleanAttributeValue instance. |
boolean |
getValue()
Returns the boolean value represented by this object. |
int |
hashCode()
Returns the hashcode value used to index and compare this object with others of the same type. |
String |
toString()
Converts to a String representation. |
| Methods inherited from class com.cafesoft.cams.attr.AbstractAttributeValue |
|---|
evaluate, evaluatesToBag, getType, isBag |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DATA_TYPE_ID
public static final BooleanAttributeValue BOOLEAN_ATTRIBUTE_VALUE_TRUE
public static final BooleanAttributeValue BOOLEAN_ATTRIBUTE_VALUE_FALSE
| Method Detail |
|---|
public static BooleanAttributeValue getInstance(boolean value)
BooleanAttributeValue instance.
value - the boolean value for which a BooleanAttributeValue is
desired.
public boolean getValue()
boolean value represented by this object.
boolean valuepublic boolean equals(Object o)
equals in class Objecto - the object to compare
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic String encode()
encode in interface AttributeValueencode in class AbstractAttributeValueString form of the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||