net.simplace.core.io.FWDataFormatter




public class FWDataFormatter {
// Public Constructors
public FWDataFormatter();
public FWDataFormatter(LocalDateTime aDate);
public FWDataFormatter(long aDate);
public FWDataFormatter(String aDateString, String aVisuPattern)
throws ParseException;
public FWDataFormatter(String aDateString) throws ParseException;
public FWDataFormatter(LocalDateTime aDate, String aVisuPattern);
public FWDataFormatter(long aDate, String aVisuPattern);

// Constants
public static final long DAY_MILLIS;

// Class Methods
public static LocalDateTime parseDate(String aDateString, String aPattern)
throws ParseException;

public static String toString(LocalDateTime formatedDate, String aPattern);


returns a formatted Date
public static FWDataFormatter transformToDate(String aText);


returns FromatedDate Object representing aText

// Public Instance Methods
public LocalDateTime getFormatterDate();

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.lang.Object

public String toDataStoreString();

public String toForeignPatternString(String aForeignPattern);

public boolean equals(Object aDate); // Overrides java.lang.Object



// Inner Classes
public static class FWDataFormatter.Pattern
}



Returned by: transformToDate()