eXo Kernel :: Container 2.4.11-UXP01

org.exoplatform.xml.object
Class XMLBaseObject

java.lang.Object
  extended by org.exoplatform.xml.object.XMLBaseObject
Direct Known Subclasses:
XMLField, XMLKey, XMLValue

public class XMLBaseObject
extends Object

Since:
Apr 10, 2005
Version:
$Id: XMLBaseObject.java 5799 2006-05-28 17:55:42Z geaz $
Author:
Tuan Nguyen (tuan08@users.sourceforge.net)

Field Summary
static String ARRAY
           
static String BOOLEAN
           
static String COLLECTION
           
static String DATE
           
static String DOUBLE
           
static String FLOAT
           
static String INT
           
static String LONG
           
static String MAP
           
static String NATIVE_ARRAY
           
static String OBJECT
           
static String STRING
           
protected  String type
           
protected  Object value
           
 
Constructor Summary
XMLBaseObject()
           
XMLBaseObject(Class objecttype, Object val)
           
 
Method Summary
 Boolean getBoolean()
           
 XMLCollection getCollection()
           
 Date getDate()
           
 Double getDouble()
           
 Float getFloat()
           
 Integer getInt()
           
 Long getLong()
           
 XMLMap getMap()
           
 XMLNativeArray getNativeArray()
           
 XMLObject getObject()
           
 Object getObjectValue()
           
 String getString()
           
 String getType()
           
 Object getValue()
           
 void setBoolean(Boolean b)
           
 void setCollection(XMLCollection collection)
           
 void setCollectiontValue(Collection collection)
           
 void setDate(Date date)
           
 void setDouble(Double d)
           
 void setFloat(Float f)
           
 void setInt(Integer i)
           
 void setLong(Long l)
           
 void setMap(XMLMap map)
           
 void setMapValue(Map map)
           
 void setNativeArray(XMLNativeArray array)
           
 void setNativeArrayValue(Object array)
           
 void setObject(XMLObject o)
           
 void setObjectValue(Object o)
           
 void setString(String s)
           
 void setType(Class clazz)
           
 void setType(String s)
           
 void setValue(Object v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING

public static final String STRING
See Also:
Constant Field Values

INT

public static final String INT
See Also:
Constant Field Values

LONG

public static final String LONG
See Also:
Constant Field Values

BOOLEAN

public static final String BOOLEAN
See Also:
Constant Field Values

FLOAT

public static final String FLOAT
See Also:
Constant Field Values

DOUBLE

public static final String DOUBLE
See Also:
Constant Field Values

DATE

public static final String DATE
See Also:
Constant Field Values

MAP

public static final String MAP
See Also:
Constant Field Values

COLLECTION

public static final String COLLECTION
See Also:
Constant Field Values

ARRAY

public static final String ARRAY
See Also:
Constant Field Values

NATIVE_ARRAY

public static final String NATIVE_ARRAY
See Also:
Constant Field Values

OBJECT

public static final String OBJECT
See Also:
Constant Field Values

type

protected String type

value

protected Object value
Constructor Detail

XMLBaseObject

public XMLBaseObject()

XMLBaseObject

public XMLBaseObject(Class objecttype,
                     Object val)
              throws Exception
Throws:
Exception
Method Detail

getType

public String getType()

setType

public void setType(String s)

setType

public void setType(Class clazz)

getValue

public Object getValue()

setValue

public void setValue(Object v)

getObjectValue

public Object getObjectValue()
                      throws Exception
Throws:
Exception

setObjectValue

public void setObjectValue(Object o)
                    throws Exception
Throws:
Exception

getObject

public XMLObject getObject()

setObject

public void setObject(XMLObject o)

getString

public String getString()

setString

public void setString(String s)

getInt

public Integer getInt()

setInt

public void setInt(Integer i)

getLong

public Long getLong()

setLong

public void setLong(Long l)

getFloat

public Float getFloat()

setFloat

public void setFloat(Float f)

getDouble

public Double getDouble()

setDouble

public void setDouble(Double d)

getBoolean

public Boolean getBoolean()

setBoolean

public void setBoolean(Boolean b)

getDate

public Date getDate()

setDate

public void setDate(Date date)

getMap

public XMLMap getMap()

setMapValue

public void setMapValue(Map map)
                 throws Exception
Throws:
Exception

setMap

public void setMap(XMLMap map)

getCollection

public XMLCollection getCollection()

setCollectiontValue

public void setCollectiontValue(Collection collection)
                         throws Exception
Throws:
Exception

setCollection

public void setCollection(XMLCollection collection)

getNativeArray

public XMLNativeArray getNativeArray()

setNativeArrayValue

public void setNativeArrayValue(Object array)
                         throws Exception
Throws:
Exception

setNativeArray

public void setNativeArray(XMLNativeArray array)

eXo Kernel :: Container 2.4.11-UXP01

Copyright © 2014 eXo Platform SAS. All Rights Reserved.