* @param <T>\r
*/\r
public class BaseDataFactory {\r
- private static final Object LOCK = new Object();\r
- /**\r
- * Generate a Schema Object for use in validation based on FileNames.\r
- * \r
- * WARNING: The java.xml.binding code requires YOU to figure out what order the\r
- * files go in. If there is an import from A in B, then you must list A first.\r
- * \r
- * @param err\r
- * @param filenames\r
- * @return\r
- * @throws APIException\r
- */\r
- public static Schema genSchema(Store env, String ... filenames) throws APIException {\r
- String schemaDir = env.get(\r
- env.staticSlot(EnvFactory.SCHEMA_DIR),\r
- EnvFactory.DEFAULT_SCHEMA_DIR);\r
- File dir = new File(schemaDir);\r
- if(!dir.exists())throw new APIException("Schema Directory " + schemaDir + " does not exist. You can set this with " + EnvFactory.SCHEMA_DIR + " property");\r
- FileInputStream[] fis = new FileInputStream[filenames.length];\r
- Source[] sources = new Source[filenames.length];\r
- File f; \r
- for(int i=0; i<filenames.length; ++i) {\r
- if(!(f=new File(schemaDir + File.separatorChar + filenames[i])).exists()) {\r
- if(!f.exists()) throw new APIException("Cannot find " + f.getName() + " for schema validation");\r
- }\r
- try {\r
- fis[i]=new FileInputStream(f);\r
- } catch (FileNotFoundException e) {\r
- throw new APIException(e);\r
- }\r
- sources[i]= new StreamSource(fis[i]);\r
- }\r
- try {\r
- //Note: SchemaFactory is not reentrant or very thread safe either... see docs\r
- synchronized(LOCK) { // SchemaFactory is not reentrant\r
- return SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI)\r
- .newSchema(sources);\r
- }\r
- } catch (SAXException e) {\r
- throw new APIException(e);\r
- } finally {\r
- for(FileInputStream d : fis) {\r
- try {\r
- d.close();\r
- } catch (IOException e) {\r
- // Never mind... we did our best\r
- }\r
- }\r
- }\r
+ private static final Object LOCK = new Object();\r
+ /**\r
+ * Generate a Schema Object for use in validation based on FileNames.\r
+ * \r
+ * WARNING: The java.xml.binding code requires YOU to figure out what order the\r
+ * files go in. If there is an import from A in B, then you must list A first.\r
+ * \r
+ * @param err\r
+ * @param filenames\r
+ * @return\r
+ * @throws APIException\r
+ */\r
+ public static Schema genSchema(Store env, String ... filenames) throws APIException {\r
+ String schemaDir = env.get(\r
+ env.staticSlot(EnvFactory.SCHEMA_DIR),\r
+ EnvFactory.DEFAULT_SCHEMA_DIR);\r
+ File dir = new File(schemaDir);\r
+ if (!dir.exists())throw new APIException("Schema Directory " + schemaDir + " does not exist. You can set this with " + EnvFactory.SCHEMA_DIR + " property");\r
+ FileInputStream[] fis = new FileInputStream[filenames.length];\r
+ Source[] sources = new Source[filenames.length];\r
+ File f; \r
+ for (int i=0; i<filenames.length; ++i) {\r
+ if (!(f=new File(schemaDir + File.separatorChar + filenames[i])).exists()) {\r
+ if (!f.exists()) throw new APIException("Cannot find " + f.getName() + " for schema validation");\r
+ }\r
+ try {\r
+ fis[i]=new FileInputStream(f);\r
+ } catch (FileNotFoundException e) {\r
+ throw new APIException(e);\r
+ }\r
+ sources[i]= new StreamSource(fis[i]);\r
+ }\r
+ try {\r
+ //Note: SchemaFactory is not reentrant or very thread safe either... see docs\r
+ synchronized(LOCK) { // SchemaFactory is not reentrant\r
+ return SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI)\r
+ .newSchema(sources);\r
+ }\r
+ } catch (SAXException e) {\r
+ throw new APIException(e);\r
+ } finally {\r
+ for (FileInputStream d : fis) {\r
+ try {\r
+ d.close();\r
+ } catch (IOException e) {\r
+ // Never mind... we did our best\r
+ }\r
+ }\r
+ }\r
\r
- }\r
+ }\r
\r
- public static QName getQName(Class<?> clss) throws APIException {\r
- // Obtain the Necessary info for QName from Requirement\r
- XmlRootElement xre = clss.getAnnotation(XmlRootElement.class);\r
- if(xre==null)throw new APIException(clss.getName() + " does not have an XmlRootElement annotation");\r
- Package pkg = clss.getPackage();\r
- XmlSchema xs = pkg.getAnnotation(XmlSchema.class);\r
- if(xs==null) throw new APIException(clss.getName() + " package-info does not have an XmlSchema annotation");\r
- return new QName(xs.namespace(),xre.name());\r
- }\r
+ public static QName getQName(Class<?> clss) throws APIException {\r
+ // Obtain the Necessary info for QName from Requirement\r
+ XmlRootElement xre = clss.getAnnotation(XmlRootElement.class);\r
+ if (xre==null)throw new APIException(clss.getName() + " does not have an XmlRootElement annotation");\r
+ Package pkg = clss.getPackage();\r
+ XmlSchema xs = pkg.getAnnotation(XmlSchema.class);\r
+ if (xs==null) throw new APIException(clss.getName() + " package-info does not have an XmlSchema annotation");\r
+ return new QName(xs.namespace(),xre.name());\r
+ }\r
\r
- /////////////////////////////////////////////\r
- // Native Type Converters\r
- /////////////////////////////////////////////\r
-// /**\r
-// * StringStringifier\r
-// * \r
-// * Support the Native Type String.. just return it back\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class StringStringifier extends NullLifeCycle implements Stringifier<String> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Stringifier#stringify(com.att.env.Env, java.lang.Object)\r
-// */\r
-// public String stringify(Env env, String input) throws APIException {\r
-// return input;\r
-// }\r
-// }; \r
+ /////////////////////////////////////////////\r
+ // Native Type Converters\r
+ /////////////////////////////////////////////\r
+// /**\r
+// * StringStringifier\r
+// * \r
+// * Support the Native Type String.. just return it back\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class StringStringifier extends NullLifeCycle implements Stringifier<String> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Stringifier#stringify(com.att.env.Env, java.lang.Object)\r
+// */\r
+// public String stringify(Env env, String input) throws APIException {\r
+// return input;\r
+// }\r
+// }; \r
//\r
-// /**\r
-// * StringObjectifier\r
-// * \r
-// * Support the Native Type String.. just return it back\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class StringObjectifier extends NullLifeCycle implements Objectifier<String> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
-// */\r
-// public String objectify(Env env, String input) throws APIException {\r
-// return input;\r
-// }\r
+// /**\r
+// * StringObjectifier\r
+// * \r
+// * Support the Native Type String.. just return it back\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class StringObjectifier extends NullLifeCycle implements Objectifier<String> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
+// */\r
+// public String objectify(Env env, String input) throws APIException {\r
+// return input;\r
+// }\r
//\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#newObject()\r
-// */\r
-// public String newInstance() throws APIException {\r
-// return "";\r
-// }\r
-// };\r
-// \r
-// /**\r
-// * LongStringifier\r
-// * \r
-// * Support the Native Type Long.. use Long parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class LongStringifier extends NullLifeCycle implements Stringifier<Long> {\r
-// public String stringify(Env env, Long input) throws APIException {\r
-// return input.toString();\r
-// }\r
-// }\r
-// \r
-// /**\r
-// * LongObjectifier\r
-// * \r
-// * Support the Native Type Long.. use Long parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class LongObjectifier extends NullLifeCycle implements Objectifier<Long> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
-// */\r
-// public Long objectify(Env env, String input) throws APIException {\r
-// try {\r
-// return new Long(input);\r
-// } catch (Exception e) {\r
-// APIException ae = new APIException("Cannot create a \"Long\" from [" + input + ']');\r
-// ae.initCause(e);\r
-// throw ae;\r
-// }\r
-// }\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#newObject()\r
+// */\r
+// public String newInstance() throws APIException {\r
+// return "";\r
+// }\r
+// };\r
+// \r
+// /**\r
+// * LongStringifier\r
+// * \r
+// * Support the Native Type Long.. use Long parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class LongStringifier extends NullLifeCycle implements Stringifier<Long> {\r
+// public String stringify(Env env, Long input) throws APIException {\r
+// return input.toString();\r
+// }\r
+// }\r
+// \r
+// /**\r
+// * LongObjectifier\r
+// * \r
+// * Support the Native Type Long.. use Long parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class LongObjectifier extends NullLifeCycle implements Objectifier<Long> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
+// */\r
+// public Long objectify(Env env, String input) throws APIException {\r
+// try {\r
+// return new Long(input);\r
+// } catch (Exception e) {\r
+// APIException ae = new APIException("Cannot create a \"Long\" from [" + input + ']');\r
+// ae.initCause(e);\r
+// throw ae;\r
+// }\r
+// }\r
//\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#newObject()\r
-// */\r
-// public Long newInstance() throws APIException {\r
-// return 0L;\r
-// }\r
-// }\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#newObject()\r
+// */\r
+// public Long newInstance() throws APIException {\r
+// return 0L;\r
+// }\r
+// }\r
//\r
-// /**\r
-// * IntegerStringifier\r
-// * \r
-// * Support the Native Integer.. use Integer parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class IntegerStringifier extends NullLifeCycle implements Stringifier<Integer> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Stringifier#stringify(com.att.env.Env, java.lang.Object)\r
-// */\r
-// public String stringify(Env env, Integer input) throws APIException {\r
-// return input.toString();\r
-// }\r
-// }\r
-// \r
-// /**\r
-// * IntegerObjectifier\r
-// * \r
-// * Support the Native Integer.. use Integer parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class IntegerObjectifier extends NullLifeCycle implements Objectifier<Integer> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
-// */\r
-// public Integer objectify(Env env, String input) throws APIException {\r
-// try {\r
-// return new Integer(input);\r
-// } catch (Exception e) {\r
-// APIException ae = new APIException("Cannot create a \"Integer\" from [" + input + ']');\r
-// ae.initCause(e);\r
-// throw ae;\r
-// }\r
-// }\r
+// /**\r
+// * IntegerStringifier\r
+// * \r
+// * Support the Native Integer.. use Integer parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class IntegerStringifier extends NullLifeCycle implements Stringifier<Integer> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Stringifier#stringify(com.att.env.Env, java.lang.Object)\r
+// */\r
+// public String stringify(Env env, Integer input) throws APIException {\r
+// return input.toString();\r
+// }\r
+// }\r
+// \r
+// /**\r
+// * IntegerObjectifier\r
+// * \r
+// * Support the Native Integer.. use Integer parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class IntegerObjectifier extends NullLifeCycle implements Objectifier<Integer> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
+// */\r
+// public Integer objectify(Env env, String input) throws APIException {\r
+// try {\r
+// return new Integer(input);\r
+// } catch (Exception e) {\r
+// APIException ae = new APIException("Cannot create a \"Integer\" from [" + input + ']');\r
+// ae.initCause(e);\r
+// throw ae;\r
+// }\r
+// }\r
//\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#newObject()\r
-// */\r
-// public Integer newInstance() throws APIException {\r
-// return 0;\r
-// }\r
-// }\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#newObject()\r
+// */\r
+// public Integer newInstance() throws APIException {\r
+// return 0;\r
+// }\r
+// }\r
//\r
-// /**\r
-// * ShortStringifier\r
-// * \r
-// * Support the Native Short.. use Short parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class ShortStringifier extends NullLifeCycle implements Stringifier<Short> {\r
-// public String stringify(Env env, Short input) throws APIException {\r
-// return input.toString();\r
-// }\r
-// }\r
-// \r
-// /**\r
-// * ShortObjectifier\r
-// * \r
-// * Support the Native Short.. use Short parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class ShortObjectifier extends NullLifeCycle implements Objectifier<Short> {\r
-// public Short objectify(Env env, String input) throws APIException {\r
-// try {\r
-// return new Short(input);\r
-// } catch (Exception e) {\r
-// APIException ae = new APIException("Cannot create a \"Short\" from [" + input + ']');\r
-// ae.initCause(e);\r
-// throw ae;\r
-// }\r
-// }\r
+// /**\r
+// * ShortStringifier\r
+// * \r
+// * Support the Native Short.. use Short parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class ShortStringifier extends NullLifeCycle implements Stringifier<Short> {\r
+// public String stringify(Env env, Short input) throws APIException {\r
+// return input.toString();\r
+// }\r
+// }\r
+// \r
+// /**\r
+// * ShortObjectifier\r
+// * \r
+// * Support the Native Short.. use Short parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class ShortObjectifier extends NullLifeCycle implements Objectifier<Short> {\r
+// public Short objectify(Env env, String input) throws APIException {\r
+// try {\r
+// return new Short(input);\r
+// } catch (Exception e) {\r
+// APIException ae = new APIException("Cannot create a \"Short\" from [" + input + ']');\r
+// ae.initCause(e);\r
+// throw ae;\r
+// }\r
+// }\r
//\r
-// public Short newInstance() throws APIException {\r
-// return 0;\r
-// }\r
-// }\r
-// \r
-// /**\r
-// * ByteStringifier\r
-// * \r
-// * Support the Native Byte.. use Byte parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class ByteStringifier extends NullLifeCycle implements Stringifier<Byte> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Stringifier#stringify(com.att.env.Env, java.lang.Object)\r
-// */\r
-// public String stringify(Env env, Byte input) throws APIException {\r
-// return input.toString();\r
-// }\r
-// }\r
-// \r
-// /**\r
-// * ByteObjectifier\r
-// * \r
-// * Support the Native Byte.. use Byte parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class ByteObjectifier extends NullLifeCycle implements Objectifier<Byte> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
-// */\r
-// public Byte objectify(Env env, String input) throws APIException {\r
-// try {\r
-// return new Byte(input);\r
-// } catch (Exception e) {\r
-// APIException ae = new APIException("Cannot create a \"Byte\" from [" + input + ']');\r
-// ae.initCause(e);\r
-// throw ae;\r
-// }\r
-// }\r
+// public Short newInstance() throws APIException {\r
+// return 0;\r
+// }\r
+// }\r
+// \r
+// /**\r
+// * ByteStringifier\r
+// * \r
+// * Support the Native Byte.. use Byte parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class ByteStringifier extends NullLifeCycle implements Stringifier<Byte> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Stringifier#stringify(com.att.env.Env, java.lang.Object)\r
+// */\r
+// public String stringify(Env env, Byte input) throws APIException {\r
+// return input.toString();\r
+// }\r
+// }\r
+// \r
+// /**\r
+// * ByteObjectifier\r
+// * \r
+// * Support the Native Byte.. use Byte parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class ByteObjectifier extends NullLifeCycle implements Objectifier<Byte> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
+// */\r
+// public Byte objectify(Env env, String input) throws APIException {\r
+// try {\r
+// return new Byte(input);\r
+// } catch (Exception e) {\r
+// APIException ae = new APIException("Cannot create a \"Byte\" from [" + input + ']');\r
+// ae.initCause(e);\r
+// throw ae;\r
+// }\r
+// }\r
//\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#newObject()\r
-// */\r
-// public Byte newInstance() throws APIException {\r
-// return 0;\r
-// }\r
-// }\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#newObject()\r
+// */\r
+// public Byte newInstance() throws APIException {\r
+// return 0;\r
+// }\r
+// }\r
//\r
-// /**\r
-// * CharacterStringifier\r
-// * \r
-// * Support the Native Character.. use Character parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class CharacterStringifier extends NullLifeCycle implements Stringifier<Character> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Stringifier#stringify(com.att.env.Env, java.lang.Object)\r
-// */\r
-// public String stringify(Env env, Character input) throws APIException {\r
-// return input.toString();\r
-// }\r
-// }\r
-// \r
-// /**\r
-// * CharacterObjectifier\r
-// * \r
-// * Support the Native Character.. use Character parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class CharacterObjectifier extends NullLifeCycle implements Objectifier<Character> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
-// */\r
-// public Character objectify(Env env, String input) throws APIException {\r
-// int length = input.length();\r
-// if(length<1 || length>1) {\r
-// throw new APIException("String [" + input + "] does not represent a single Character");\r
-// }\r
-// return input.charAt(0);\r
-// }\r
+// /**\r
+// * CharacterStringifier\r
+// * \r
+// * Support the Native Character.. use Character parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class CharacterStringifier extends NullLifeCycle implements Stringifier<Character> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Stringifier#stringify(com.att.env.Env, java.lang.Object)\r
+// */\r
+// public String stringify(Env env, Character input) throws APIException {\r
+// return input.toString();\r
+// }\r
+// }\r
+// \r
+// /**\r
+// * CharacterObjectifier\r
+// * \r
+// * Support the Native Character.. use Character parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class CharacterObjectifier extends NullLifeCycle implements Objectifier<Character> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
+// */\r
+// public Character objectify(Env env, String input) throws APIException {\r
+// int length = input.length();\r
+// if (length<1 || length>1) {\r
+// throw new APIException("String [" + input + "] does not represent a single Character");\r
+// }\r
+// return input.charAt(0);\r
+// }\r
//\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#newObject()\r
-// */\r
-// public Character newInstance() throws APIException {\r
-// return 0;\r
-// }\r
-// }\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#newObject()\r
+// */\r
+// public Character newInstance() throws APIException {\r
+// return 0;\r
+// }\r
+// }\r
//\r
-// /**\r
-// * FloatStringifier\r
-// * \r
-// * Support the Native Float.. use Float parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class FloatStringifier extends NullLifeCycle implements Stringifier<Float> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Stringifier#stringify(com.att.env.Env, java.lang.Object)\r
-// */\r
-// public String stringify(Env env, Float input) throws APIException {\r
-// return input.toString();\r
-// }\r
-// }\r
-// \r
-// /**\r
-// * FloatObjectifier\r
-// * \r
-// * Support the Native Float.. use Float parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class FloatObjectifier extends NullLifeCycle implements Objectifier<Float> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
-// */\r
-// public Float objectify(Env env, String input) throws APIException {\r
-// try {\r
-// return new Float(input);\r
-// } catch (Exception e) {\r
-// APIException ae = new APIException("Cannot create a \"Float\" from [" + input + ']');\r
-// ae.initCause(e);\r
-// throw ae;\r
-// }\r
-// }\r
+// /**\r
+// * FloatStringifier\r
+// * \r
+// * Support the Native Float.. use Float parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class FloatStringifier extends NullLifeCycle implements Stringifier<Float> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Stringifier#stringify(com.att.env.Env, java.lang.Object)\r
+// */\r
+// public String stringify(Env env, Float input) throws APIException {\r
+// return input.toString();\r
+// }\r
+// }\r
+// \r
+// /**\r
+// * FloatObjectifier\r
+// * \r
+// * Support the Native Float.. use Float parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class FloatObjectifier extends NullLifeCycle implements Objectifier<Float> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
+// */\r
+// public Float objectify(Env env, String input) throws APIException {\r
+// try {\r
+// return new Float(input);\r
+// } catch (Exception e) {\r
+// APIException ae = new APIException("Cannot create a \"Float\" from [" + input + ']');\r
+// ae.initCause(e);\r
+// throw ae;\r
+// }\r
+// }\r
//\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#newObject()\r
-// */\r
-// public Float newInstance() throws APIException {\r
-// return 0.0f;\r
-// }\r
-// }\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#newObject()\r
+// */\r
+// public Float newInstance() throws APIException {\r
+// return 0.0f;\r
+// }\r
+// }\r
//\r
-// /**\r
-// * DoubleStringifier\r
-// * \r
-// * Support the Native Double.. use Double parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class DoubleStringifier extends NullLifeCycle implements Stringifier<Double> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Stringifier#stringify(com.att.env.Env, java.lang.Object)\r
-// */\r
-// public String stringify(Env env, Double input) throws APIException {\r
-// return input.toString();\r
-// }\r
-// }\r
-// \r
-// /**\r
-// * DoubleObjectifier\r
-// * \r
-// * Support the Native Double.. use Double parse functions\r
-// * \r
-// * @author Jonathan\r
-// *\r
-// */\r
-// public static class DoubleObjectifier extends NullLifeCycle implements Objectifier<Double> {\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
-// */\r
-// public Double objectify(Env env, String input) throws APIException {\r
-// try {\r
-// return new Double(input);\r
-// } catch (Exception e) {\r
-// APIException ae = new APIException("Cannot create a \"Double\" from [" + input + ']');\r
-// ae.initCause(e);\r
-// throw ae;\r
-// }\r
-// }\r
+// /**\r
+// * DoubleStringifier\r
+// * \r
+// * Support the Native Double.. use Double parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class DoubleStringifier extends NullLifeCycle implements Stringifier<Double> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Stringifier#stringify(com.att.env.Env, java.lang.Object)\r
+// */\r
+// public String stringify(Env env, Double input) throws APIException {\r
+// return input.toString();\r
+// }\r
+// }\r
+// \r
+// /**\r
+// * DoubleObjectifier\r
+// * \r
+// * Support the Native Double.. use Double parse functions\r
+// * \r
+// * @author Jonathan\r
+// *\r
+// */\r
+// public static class DoubleObjectifier extends NullLifeCycle implements Objectifier<Double> {\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#objectify(com.att.env.Env, java.lang.String)\r
+// */\r
+// public Double objectify(Env env, String input) throws APIException {\r
+// try {\r
+// return new Double(input);\r
+// } catch (Exception e) {\r
+// APIException ae = new APIException("Cannot create a \"Double\" from [" + input + ']');\r
+// ae.initCause(e);\r
+// throw ae;\r
+// }\r
+// }\r
//\r
-// /* (non-Javadoc)\r
-// * @see com.att.env.Objectifier#newObject()\r
-// */\r
-// public Double newInstance() throws APIException {\r
-// return 0.0;\r
-// }\r
-// }\r
+// /* (non-Javadoc)\r
+// * @see com.att.env.Objectifier#newObject()\r
+// */\r
+// public Double newInstance() throws APIException {\r
+// return 0.0;\r
+// }\r
+// }\r
\r
}\r