net.simplace.model.dwd.FormatedDate
public class FormatedDate extends java.util.Date {
// Public Constructors
public FormatedDate();
public FormatedDate(Date aDate);
public FormatedDate(long aDate);
public FormatedDate(String aDateString, String aVisuPattern)
throws ParseException;
public FormatedDate(String aDateString) throws ParseException;
public FormatedDate(Date aDate, String aVisuPattern);
public FormatedDate(long aDate, String aVisuPattern);
// Constants
public static final long DAY_MILLIS;
// Class Methods public static Date parseDate(String aDateString, String aPattern)
throws ParseException;
public static String
toString(Date aDate, String aPattern);
- aDate to format with aPattern
returns a formatted Date
public static
FormatedDate transformToDate(String aText);
returns FromatedDate Object representing aText
// Public Instance Methods public String getDataPattern();
public String getVisuPattern();
public void setVisuPattern(String aVisuPattern) throws ParseException;
public void setDataPattern(String aDataPattern) throws ParseException;
public void setDate(String aDateString) throws ParseException;
Sets the Date and checks for compatibility of DatePrecision to stored DatabasePrecisionPattern.
If not comatible ParseException is thrown
public void setDate(String aDateString, String aPattern)
throws ParseException;
Sets the Date and forces to change DatePrecision to given Pattern.
If pattern is not comatible to possible Patterns (class Pattern) ParseException is thrown
public String toString(); // Overrides java.util.Date
public String toDataStoreString();
public String toForeignPatternString(String aForeignPattern);
public boolean equals(Object aDate); // Overrides java.util.Date
// Inner Classes
public static class FormatedDate.Pattern
}
Hierarchy: java.lang.Object - java.util.Date (java.io.Serializable, java.lang.Cloneable, java.lang.Comparable) - FormatedDate
Returned by: transformToDate()