|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Form| Constructor Summary | |
|---|---|
protected |
BooleanValue(boolean value)
Creates an instance for the given boolean value. |
protected |
BooleanValue(java.lang.String value)
Creates an instance for the given string representation of a boolean. |
| Method Summary | |
|---|---|
boolean |
getBoolean()
Returns the boolean value. |
java.lang.String |
getString()
Returns the boolean as a string converted by the Boolean.toString(boolean). |
int |
getType()
Returns PropertyType.BOOLEAN. |
protected static boolean |
toBoolean(java.lang.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(java.lang.String value)
Calls toBoolean(String) to convert the string to a boolean.
| Method Detail |
|---|
protected static boolean toBoolean(java.lang.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 javax.jcr.Valuepublic boolean getBoolean()
getBoolean in interface javax.jcr.ValuegetBoolean in class BaseNonStreamValuepublic java.lang.String getString()
Boolean.toString(boolean).
getString in interface javax.jcr.Value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||