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
This class uses the command pattern. It implements the abstract Command and
is used as Command Invoker
- Author:
- Philipp Erlacher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Object
Object that matches given Class and Value(package private) void
Sets the type and value for the class which should be instantiated(package private) void
Sets the value for the class which should be instantiated
-
Field Details
-
Constructor Details
-
PrimitiveObject
PrimitiveObject()
-
-
Method Details
-
setType
Sets the type and value for the class which should be instantiated- Parameters:
type
- Class
-
setValue
Sets the value for the class which should be instantiated- Parameters:
value
- String
-
getObject
Object getObject()Object that matches given Class and Value- Returns:
- Object
-