private Class readPrimitive(String target) throws Exception {
  if (target.equals(BYTE)) {
    return byte.class;
  }
  if (target.equals(SHORT)) {
    return short.class;
  }
  if (target.equals(INTEGER)) {
    return int.class;
  }
  if (target.equals(LONG)) {
    return long.class;
  }
  if (target.equals(CHARACTER)) {
    return char.class;
  }
  if (target.equals(FLOAT)) {
    return float.class;
  }
  if (target.equals(DOUBLE)) {
    return double.class;
  }
  if (target.equals(BOOLEAN)) {
    return boolean.class;
  }
  if (target.equals(VOID)) {
    return void.class;
  }
  return null;
}

private Class readPrimitive ( String target ) throws Exception { if ( target . equals ( BYTE ) ) { return byte . class ; } if ( target . equals ( SHORT ) ) { return short . class ; } if ( target . equals ( INTEGER ) ) { return int . class ; } if ( target . equals ( LONG ) ) { return long . class ; } if ( target . equals ( CHARACTER ) ) { return char . class ; } if ( target . equals ( FLOAT ) ) { return float . class ; } if ( target . equals ( DOUBLE ) ) { return double . class ; } if ( target . equals ( BOOLEAN ) ) { return boolean . class ; } if ( target . equals ( VOID ) ) { return void . class ; } return null ; }
this method is used to convert the string value given to an appropriate representation . this is used when an object is being deserialized from the xml document and the value for the string representation is required .
