当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
StringValue - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.migration.model20.other
Class StringValue
java.lang.Object
org.jboss.portal.migration.model20.other.AbstractValue
org.jboss.portal.migration.model20.other.StringValue
- All Implemented Interfaces:
- java.io.Serializable, Value
- public class StringValue
- extends AbstractValue
- Version:
- $Revision: 5449 $
- Author:
- Julien Viet
- See Also:
- Serialized Form
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EMPTY_STRING_ARRAY
private static final java.lang.String[] EMPTY_STRING_ARRAY
value
private java.lang.String value
StringValue
public StringValue()
StringValue
public StringValue(java.lang.String value)
asString
public java.lang.String asString()
- Description copied from interface:
Value
- Return the value as a string.
asInt
public int asInt()
throws NullConversionException,
FormatConversionException
- Description copied from interface:
Value
- Return the value as an int.
- Specified by:
asInt
in interface Value
- Overrides:
asInt
in class AbstractValue
- Throws:
NullConversionException
FormatConversionException
asBoolean
public boolean asBoolean()
throws NullConversionException,
FormatConversionException
- Description copied from interface:
Value
- Return the value as a boolean.
- Specified by:
asBoolean
in interface Value
- Overrides:
asBoolean
in class AbstractValue
- Throws:
NullConversionException
FormatConversionException
asObject
public java.lang.Object asObject()
- Description copied from interface:
Value
- Return the value.
asObjectArray
public java.lang.Object[] asObjectArray()
- Description copied from interface:
Value
- Return the values as an array of converted object.