if(adaptorType == AdaptorDateType) { defaultValue = ERXTimestampUtilities.timestampForString(stringValue); } else if (adaptorType == AdaptorNumberType) { NSTimestamp temp = ERXTimestampUtilities.timestampForString(stringValue); if(temp != null) { defaultValue = ERXTimestampUtilities.unixTimestamp(temp); } else { defaultValue = new Integer(Integer.parseInt(stringValue));
if(stringValue.startsWith("@threadStorage.")) { String keyPath = stringValue.substring("@threadStorage.".length()); defaultValue = ERXThreadStorage.valueForKey(keyPath); if(keyPath.indexOf(".") > 0) { keyPath = stringValue.substring(keyPath.indexOf(".")+1); defaultValue = NSKeyValueCodingAdditions.Utility.valueForKeyPath(defaultValue, keyPath);
        public void setValueInObject(EOEnterpriseObject eo) {            Object defaultValue = this.stringValue;            if(adaptorType == AdaptorDateType) {                defaultValue = ERXTimestampUtilities.timestampForString(stringValue);            } else if (adaptorType == AdaptorNumberType) {                NSTimestamp temp = ERXTimestampUtilities.timestampForString(stringValue);                if(temp != null) {                    defaultValue = ERXTimestampUtilities.unixTimestamp(temp);                } else {                    defaultValue = new Integer(Integer.parseInt(stringValue));                }            } else {                // nothing for strings so far...            }            eo.takeValueForKey(defaultValue, key);        }