|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.rmi.api.value.BaseNonStreamValue
org.exoplatform.services.jcr.rmi.api.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| Field Summary |
|---|
| Fields inherited from class org.exoplatform.services.jcr.rmi.api.value.BaseNonStreamValue |
|---|
orderNumber |
| 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. |
long |
getLength()
|
int |
getOrderNumber()
|
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.exoplatform.services.jcr.rmi.api.value.BaseNonStreamValue |
|---|
getDate, getDouble, getLong, getReference, getStream, getValueFormatException, setOrderNumber |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exoplatform.services.jcr.core.value.ExtendedValue |
|---|
getReference, setOrderNumber |
| 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.Valuepublic long getLength()
getLength in interface ExtendedValuepublic int getOrderNumber()
getOrderNumber in interface ExtendedValuegetOrderNumber in class BaseNonStreamValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||