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

Value - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.migration.model22.other
Class Value

java.lang.Object
  extended byorg.jboss.portal.migration.model22.other.Value
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BooleanValue, FloatValue, IntegerValue, StringValue

public abstract class Value
extends java.lang.Object
implements java.io.Serializable

A read only interface used to retrieve data. It represents both for mono value and multi values. It must implement equals and hashCode. The semantics : | storage | mono | multi | | xxx | xxx | [xxx] | | null | null | [null] | -------------------------------- | [] | null | [] | | [null,..] | null | [null,..] | | ["1",..] | "1" | ["1",..] |

See Also:
Serialized Form

Constructor Summary
Value()
           
 
Method Summary
 java.lang.Object asObject()
          Return the value.
abstract  java.lang.Object[] asObjectArray()
          Return the values as an array of converted object.
 java.lang.String asString()
          Return the value as a string or null if the value is null.
 java.lang.String[] asStringArray()
          Return the values as an array of string.
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean isEmpty()
          Return true if it contains zero value.
abstract  boolean isInstanceOf(java.lang.Class clazz)
           
 boolean isMultiValued()
          Return true if it contains more than one value.
 boolean isNull()
          Return true if the value is null.
 int size()
          Return the size.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Value

public Value()
Method Detail

isInstanceOf

public abstract boolean isInstanceOf(java.lang.Class clazz)

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)

toString

public java.lang.String toString()

isNull

public boolean isNull()
Return true if the value is null.


asString

public java.lang.String asString()
Return the value as a string or null if the value is null.


asObject

public java.lang.Object asObject()
Return the value.


isMultiValued

public boolean isMultiValued()
Return true if it contains more than one value.


isEmpty

public boolean isEmpty()
Return true if it contains zero value.


size

public int size()
Return the size.


asStringArray

public java.lang.String[] asStringArray()
Return the values as an array of string.


asObjectArray

public abstract java.lang.Object[] asObjectArray()
Return the values as an array of converted object. Must always return a non null array !!!