|
||||||||||
| 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.StringValue
public class StringValue
The StringValue class implements the committed value state for String 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 |
StringValue(java.lang.String value)
Creates an instance for the given string value. |
| Method Summary | |
|---|---|
boolean |
getBoolean()
Returns the string value parsed to a boolean calling the Boolean.valueOf(String)
method. |
java.util.Calendar |
getDate()
Returns the string value parsed to a Calendar using the same formatter as the
DateValue class. |
double |
getDouble()
Returns the string value parsed to a double calling the Double.valueOf(String)
method. |
long |
getLength()
|
long |
getLong()
Returns the string value parsed to a long calling the Long.valueOf(String) method. |
int |
getOrderNumber()
|
java.lang.String |
getString()
Returns the string value. |
int |
getType()
Returns PropertyType.STRING. |
| Methods inherited from class org.exoplatform.services.jcr.rmi.api.value.BaseNonStreamValue |
|---|
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 |
|---|
getStream |
| Constructor Detail |
|---|
protected StringValue(java.lang.String value)
value.
| Method Detail |
|---|
public int getType()
PropertyType.STRING.
getType in interface javax.jcr.Valuepublic java.lang.String getString()
getString in interface javax.jcr.Value
public long getLong()
throws javax.jcr.ValueFormatException
Long.valueOf(String) method.
getLong in interface javax.jcr.ValuegetLong in class BaseNonStreamValuejavax.jcr.ValueFormatException - if the string cannot be parsed to long.
public double getDouble()
throws javax.jcr.ValueFormatException
Double.valueOf(String)
method.
getDouble in interface javax.jcr.ValuegetDouble in class BaseNonStreamValuejavax.jcr.ValueFormatException - if the string cannot be parsed to double.
public java.util.Calendar getDate()
throws javax.jcr.ValueFormatException
Calendar using the same formatter as the
DateValue class. This formatting bears the same issues as parsing and formatting that
class.
getDate in interface javax.jcr.ValuegetDate in class BaseNonStreamValuejavax.jcr.ValueFormatException - if the string cannot be parsed into a Calendar instance.public boolean getBoolean()
Boolean.valueOf(String)
method.
getBoolean in interface javax.jcr.ValuegetBoolean in class BaseNonStreamValuepublic 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 | |||||||||