* This class describes a type, that is, a key-value pair.
*
* @author niki
- *
*/
-@SuppressWarnings("rawtypes")
public class TypeInfo extends BaseClass<TypeInfo> {
private String name;
private String value;
* @param value
* its value (<b>MUST NOT</b> be NULL)
*/
- @SuppressWarnings("unchecked")
public TypeInfo(String name, String value) {
super(null);
this.name = name.toUpperCase();
- this.value = value.toString(); // crash NOW if null
+ this.value = escape(value.toString()); // crash NOW if null
}
/**
* @return the value
*/
public String getValue() {
+ return unescape(value);
+ }
+
+ /**
+ * Return the RAW value
+ *
+ * @return the RAW value
+ */
+ public String getRawValue() {
return value;
}