|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.common.value.AbstractValues
org.jboss.portal.common.value.IntegerValues
public class IntegerValues
| Constructor Summary | |
|---|---|
IntegerValues()
|
|
IntegerValues(int _value)
|
|
IntegerValues(int[] _values)
|
|
IntegerValues(java.lang.Integer integer)
|
|
IntegerValues(java.lang.Integer[] values)
|
|
IntegerValues(java.lang.String[] values)
|
|
| Method Summary | |
|---|---|
int |
asInt()
Return the value as an int. |
int[] |
asIntArray()
Default implementation throws FormatConversionException. |
java.lang.String |
asString()
Return the value as a string. |
java.lang.String[] |
asStringArray()
Return the values as an array of string. |
protected java.lang.Object[] |
getObjects()
Must always return a non null array !!! |
| Methods inherited from class org.jboss.portal.common.value.AbstractValues |
|---|
asBoolean, asBooleanArray, asObject, asObjectArray, asObjectList, equals, hashCode, isMultiValued, isNull, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IntegerValues()
public IntegerValues(java.lang.String[] values)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic IntegerValues(java.lang.Integer integer)
public IntegerValues(java.lang.Integer[] values)
public IntegerValues(int _value)
public IntegerValues(int[] _values)
| Method Detail |
|---|
public java.lang.String[] asStringArray()
Value
public int[] asIntArray()
throws NullConversionException,
FormatConversionException
AbstractValues
asIntArray in interface ValueasIntArray in class AbstractValuesNullConversionException - if one of the values is null
FormatConversionException - if one of the values cannot be convertedpublic java.lang.String asString()
Value
public int asInt()
throws NullConversionException,
FormatConversionException
Value
asInt in interface ValueasInt in class AbstractValuesNullConversionException - if one of the values is null
FormatConversionException - if one of the values cannot be convertedprotected java.lang.Object[] getObjects()
AbstractValues
getObjects in class AbstractValues
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||