/** * Creates a new instance of the object described by this field. * * @param parent The object for which the field is created * @return A new instance of the field's value * @throws IllegalStateException This field is a simple type and cannot be instantiated */ public Object newInstance(Object parent) throws IllegalStateException { return new Date(); } // -- newInstance
/** * Creates a new instance of the object described by this field. * * @param parent * The object for which the field is created * @return A new instance of the field's value * @throws IllegalStateException * This field is a simple type and cannot be instantiated */ public Object newInstance(Object parent) throws IllegalStateException { return new Date(); } //-- newInstance
/** * Creates a new instance of the object described by this field. * * @param parent The object for which the field is created * @return A new instance of the field's value * @throws IllegalStateException This field is a simple type and cannot be instantiated */ public Object newInstance(Object parent) throws IllegalStateException { return new Date(); } // -- newInstance
/** * {@inheritDoc} */ public Object convert(final Object object) { return new org.exolab.castor.types.Date((Date) object); }
/** * {@inheritDoc} */ public Object convert(final Object object) { return new org.exolab.castor.types.Date((Date) object); }
/** * Creates a new instance of the object described by this field. * * @param parent * The object for which the field is created * @return A new instance of the field's value * @throws IllegalStateException * This field is a simple type and cannot be instantiated */ public Object newInstance(Object parent) throws IllegalStateException { return new Date(); } //-- newInstance
public java.lang.Object newInstance(java.lang.Object parent) { return new org.exolab.castor.types.Date(); } };
public java.lang.Object newInstance(java.lang.Object parent) { return new org.exolab.castor.types.Date(); } };
/** * parse a String and convert it into a Date. * * @param str the string to parse * @return the Date represented by the string * @throws ParseException a parse exception is thrown if the string to parse does not follow the * right format (see the description of this class) */ public static Date parseDate(String str) throws ParseException { Date result = new Date(); return parseDateInternal(str, result); }
/** * parse a String and convert it into a Date. * @param str the string to parse * @return the Date represented by the string * @throws ParseException a parse exception is thrown if the string to parse * does not follow the right format (see the description * of this class) */ public static Date parseDate(String str) throws ParseException { Date result = new Date(); return parseDateInternal(str, result); }
result = new Date();
result = new Date();
org.exolab.castor.types.Date parsedDate = new org.exolab.castor.types.Date(trimmed); return parsedDate.toDate();
org.exolab.castor.types.Date parsedDate = new org.exolab.castor.types.Date(trimmed); return parsedDate.toDate();