站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

IntegerValues - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.migration.model20.other
Class IntegerValues

java.lang.Object
  extended byorg.jboss.portal.migration.model20.other.AbstractValues
      extended byorg.jboss.portal.migration.model20.other.IntegerValues
All Implemented Interfaces:
java.io.Serializable, Value

public class IntegerValues
extends AbstractValues

Version:
$Revision: 5449 $
Author:
Julien Viet
See Also:
Serialized Form

Field Summary
private  int[] _values
          The cached int array.
private  java.lang.Integer[] values
          The Integer array.
 
Fields inherited from class org.jboss.portal.migration.model20.other.AbstractValues
 
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.migration.model20.other.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
 

Field Detail

values

private java.lang.Integer[] values
The Integer array.


_values

private int[] _values
The cached int array.

Constructor Detail

IntegerValues

public IntegerValues()

IntegerValues

public IntegerValues(java.lang.String[] values)
              throws java.lang.IllegalArgumentException

IntegerValues

public IntegerValues(java.lang.Integer integer)

IntegerValues

public IntegerValues(java.lang.Integer[] values)

IntegerValues

public IntegerValues(int _value)

IntegerValues

public IntegerValues(int[] _values)
Method Detail

asStringArray

public java.lang.String[] asStringArray()
Description copied from interface: Value
Return the values as an array of string.


asIntArray

public int[] asIntArray()
                 throws NullConversionException,
                        FormatConversionException
Description copied from class: AbstractValues
Default implementation throws FormatConversionException.

Specified by:
asIntArray in interface Value
Overrides:
asIntArray in class AbstractValues
Throws:
NullConversionException
FormatConversionException

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 AbstractValues
Throws:
NullConversionException
FormatConversionException

getObjects

protected java.lang.Object[] getObjects()
Description copied from class: AbstractValues
Must always return a non null array !!!

Specified by:
getObjects in class AbstractValues