|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.common.value.AbstractValue
org.jboss.portal.common.value.StringValue
public class StringValue
| Constructor Summary | |
|---|---|
StringValue()
|
|
StringValue(java.lang.String value)
|
|
| Method Summary | |
|---|---|
boolean |
asBoolean()
Return the value as a boolean. |
int |
asInt()
Return the value as an int. |
java.lang.Object |
asObject()
Return the value. |
java.lang.Object[] |
asObjectArray()
Return the values as an array of converted object. |
java.lang.String |
asString()
Return the value as a string. |
| Methods inherited from class org.jboss.portal.common.value.AbstractValue |
|---|
asBooleanArray, asIntArray, asObjectList, asStringArray, equals, hashCode, isMultiValued, isNull, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringValue()
public StringValue(java.lang.String value)
| Method Detail |
|---|
public java.lang.String asString()
Value
public int asInt()
throws NullConversionException,
FormatConversionException
Value
asInt in interface ValueasInt in class AbstractValueNullConversionException - if one of the values is null
FormatConversionException - if one of the values cannot be converted
public boolean asBoolean()
throws NullConversionException,
FormatConversionException
Value
asBoolean in interface ValueasBoolean in class AbstractValueNullConversionException - if one of the values is null
FormatConversionException - if one of the values cannot be convertedpublic java.lang.Object asObject()
Value
public java.lang.Object[] asObjectArray()
Value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||