}\r
else\r
{\r
- vProperty.setType("String");\r
+ vProperty.setType(STRINGTYPE);\r
}\r
vProperty.setContent(content);\r
return vProperty;\r
}\r
+ public static String STRINGTYPE="string";\r
+ public static String FLOATTYPE="float";\r
+ public static String INTEGERTYPE="integer";\r
+ \r
+ public boolean isString(Property p)\r
+ {\r
+ return isType(p, STRINGTYPE);\r
+ }\r
+\r
+ /**\r
+ * \r
+ * @param p the property to test for type\r
+ * @param typeString one of the string constants in this class\r
+ * @return true if p is of type 'typeString'\r
+ */\r
+ public boolean isType(Property p, String typeString) {\r
+ return (p==null) ? false : (p.getType().toLowerCase().equals(typeString));\r
+ }\r
+ \r
}\r