|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.rmi.value.BaseNonStreamValue org.apache.jackrabbit.rmi.value.BooleanValue
public class BooleanValue
The BooleanValue
class implements the committed value state for
Boolean values as a part of the State design pattern (Gof) used by this
package.
SerialValue
,
Serialized FormConstructor Summary | |
---|---|
protected |
BooleanValue(boolean value)
Creates an instance for the given boolean value . |
protected |
BooleanValue(String value)
Creates an instance for the given string representation of a boolean. |
Method Summary | |
---|---|
boolean |
getBoolean()
Returns the boolean value. |
String |
getString()
Returns the boolean as a string converted by the Boolean.toString(boolean) . |
int |
getType()
Returns PropertyType.BOOLEAN . |
protected static boolean |
toBoolean(String value)
Returns the boolean value represented by the string value . |
Methods inherited from class org.apache.jackrabbit.rmi.value.BaseNonStreamValue |
---|
getDate, getDouble, getLong, getStream, getValueFormatException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jcr.Value |
---|
getDate, getDouble, getLong, getStream |
Constructor Detail |
---|
protected BooleanValue(boolean value)
value
.
protected BooleanValue(String value)
Calls toBoolean(String)
to convert the string to a boolean.
Method Detail |
---|
protected static boolean toBoolean(String value)
value
.
This implementation uses the Boolean.valueOf(String)
method
to convert the string to a boolean.
public int getType()
PropertyType.BOOLEAN
.
getType
in interface Value
public boolean getBoolean()
getBoolean
in interface Value
getBoolean
in class BaseNonStreamValue
public String getString()
Boolean.toString(boolean)
.
getString
in interface Value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |