private void writeHelpers( JClass jClass ) { jClass.addMethod(getTrimmedValueMethod()); jClass.addMethod(getInterpolatedTrimmed()); jClass.addMethod(getRequiredAttributeValueMethod()); jClass.addMethod(getBooleanValueMethod()); jClass.addMethod(getBooleanValue2Method()); jClass.addMethod( getCharacterValueMethod() ); jClass.addMethod(convertNumericalType( "getIntegerValue", JType.INT, "Integer.valueOf( s ).intValue()", "an integer" )); jClass.addMethod(convertNumericalType( "getShortValue", JType.SHORT, "Short.valueOf( s ).shortValue()", "a short integer" )); jClass.addMethod(convertNumericalType( "getByteValue", JType.BYTE, "Byte.valueOf( s ).byteValue()", "a byte" )); jClass.addMethod(convertNumericalType( "getLongValue", JType.LONG, "Long.valueOf( s ).longValue()", "a long integer" )); jClass.addMethod(convertNumericalType( "getFloatValue", JType.FLOAT, "Float.valueOf( s ).floatValue()", "a floating point number" )); jClass.addMethod(convertNumericalType( "getDoubleValue", JType.DOUBLE, "Double.valueOf( s ).doubleValue()", "a floating point number" )); jClass.addMethod( getDateValueMethod() ); jClass.addMethod( getDateValue2Method() ); jClass.addMethod( getCheckFieldWithDuplicateMethod() ); jClass.addMethod( getCheckUnknonwElement2Method() ); jClass.addMethod( getCheckUnknownAttributeMethod() ); jClass.addMethod( getNextTagMethod() ); }