Class PrimitiveObject
- java.lang.Object
-
- 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.ObjectThis class uses the command pattern. It implements the abstract Command and is used as Command Invoker- Author:
- Philipp Erlacher
-
-
Constructor Summary
Constructors Constructor Description PrimitiveObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.ObjectgetObject()Object that matches given Class and Value(package private) voidsetType(java.lang.Class<?> type)Sets the type and value for the class which should be instantiated(package private) voidsetValue(java.lang.String value)Sets the value for the class which should be instantiated
-
-
-
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
-
-