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 Object
This class uses the command pattern. It implements the abstract Command and is used as Command Invoker
Author:
Philipp Erlacher
  • Field Details

  • Constructor Details

    • PrimitiveObject

      PrimitiveObject()
  • Method Details

    • setType

      void setType(Class<?> type)
      Sets the type and value for the class which should be instantiated
      Parameters:
      type - Class
    • setValue

      void setValue(String value)
      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