Class FWDataFormatter

java.lang.Object
net.simplace.core.io.FWDataFormatter

public class FWDataFormatter extends Object
Author:
Andreas Enders please re-implement this class with needed functions
  • Field Details

  • Constructor Details

  • Method Details

    • getFormatterDate

      public LocalDateTime getFormatterDate()
    • getDataPattern

      public String getDataPattern()
    • getVisuPattern

      public String getVisuPattern()
    • setVisuPattern

      public void setVisuPattern(String aVisuPattern) throws ParseException
      Throws:
      ParseException
    • setDataPattern

      public void setDataPattern(String aDataPattern) throws ParseException
      Throws:
      ParseException
    • setDate

      public void setDate(String aDateString) throws ParseException
      Sets the Date and checks for compatibility of DatePrecision to stored DatabasePrecisionPattern. If not compatible ParseException is thrown
      Parameters:
      aDateString -
      Throws:
      ParseException
    • setDate

      public void setDate(String aDateString, String aPattern) throws ParseException
      Sets the Date and forces to change DatePrecision to given Pattern. If pattern is not compatible to possible Patterns (class Pattern) ParseException is thrown
      Parameters:
      aDateString -
      aPattern -
      Throws:
      ParseException
    • plusDays

      public void plusDays(int aDaysCount)
      Sets the Date and forces to change DatePrecision to given Pattern. If pattern is not compatible to possible Patterns (class Pattern) ParseException is thrown
      Parameters:
      aDaysCount -
    • plusYears

      public void plusYears(int aYearsCount)
      Sets the Date and forces to change DatePrecision to given Pattern. If pattern is not compatible to possible Patterns (class Pattern) ParseException is thrown
      Parameters:
      aYearsCount -
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toDataStoreString

      public String toDataStoreString()
    • toForeignPatternString

      public String toForeignPatternString(String aForeignPattern)
    • parseDate

      public static LocalDateTime parseDate(String aDateString, String aPattern) throws ParseException
      Throws:
      ParseException
    • equals

      public boolean equals(Object aDate)
      Overrides:
      equals in class Object
    • toString

      public static String toString(LocalDateTime aFormatedDate, String aPattern)
      Parameters:
      aFormatedDate - to format with aPattern
      aPattern -
      Returns:
      a formatted Date
    • transformToDate

      public static FWDataFormatter transformToDate(String aText)
      Parameters:
      aText -
      Returns:
      FromatedDate Object representing aText