org.exolab.castor.xml.parsing.primitive.objects
Class PrimitiveObject

java.lang.Object
  extended by org.exolab.castor.xml.parsing.primitive.objects.PrimitiveObject
Direct Known Subclasses:
PrimitiveBigDecimal, PrimitiveBigInteger, PrimitiveBoolean, PrimitiveByte, PrimitiveChar, PrimitiveDouble, PrimitiveEnum, PrimitiveFloat, PrimitiveInteger, PrimitiveLong, PrimitiveShort, PrimitiveString

 class PrimitiveObject
extends java.lang.Object

This class uses the command pattern. It implements the abstract Command and is used as Command Invoker

Author:
Philipp Erlacher

Field Summary
(package private)  java.lang.Object object
           
(package private)  java.lang.Class<?> type
           
(package private)  java.lang.String value
           
 
Constructor Summary
PrimitiveObject()
           
 
Method Summary
(package private)  java.lang.Object getObject()
          Object that matches given Class and Value
(package private)  void setType(java.lang.Class<?> type)
          Sets the type and value for the class which should be instantiated
(package private)  void setValue(java.lang.String value)
          Sets the value for the class which should be instantiated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

java.lang.Class<?> type

value

java.lang.String value

object

java.lang.Object object
Constructor Detail

PrimitiveObject

PrimitiveObject()
Method Detail

setType

void setType(java.lang.Class<?> type)
Sets the type and value for the class which should be instantiated

Parameters:
type - Class

setValue

void setValue(java.lang.String value)
Sets the value for the class which should be instantiated

Parameters:
value - String

getObject

java.lang.Object getObject()
Object that matches given Class and Value

Returns:
Object


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com