Package net.simplace.core.io
Class FWDataFormatter
java.lang.Object
net.simplace.core.io.FWDataFormatter
- Author:
- Andreas Enders please re-implement this class with needed functions
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
some final parameters for Pattern -
Field Summary
-
Constructor Summary
ConstructorDescriptionFWDataFormatter
(long aDate) FWDataFormatter
(long aDate, String aVisuPattern) FWDataFormatter
(String aDateString) FWDataFormatter
(String aDateString, String aVisuPattern) FWDataFormatter
(LocalDateTime aDate) FWDataFormatter
(LocalDateTime aDate, String aVisuPattern) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static LocalDateTime
void
plusDays
(int aDaysCount) Sets the Date and forces to change DatePrecision to given Pattern.void
plusYears
(int aYearsCount) Sets the Date and forces to change DatePrecision to given Pattern.void
setDataPattern
(String aDataPattern) void
Sets the Date and checks for compatibility of DatePrecision to stored DatabasePrecisionPattern.void
Sets the Date and forces to change DatePrecision to given Pattern.void
setVisuPattern
(String aVisuPattern) toForeignPatternString
(String aForeignPattern) toString()
static String
toString
(LocalDateTime aFormatedDate, String aPattern) static FWDataFormatter
transformToDate
(String aText)
-
Field Details
-
DAY_MILLIS
public static final long DAY_MILLISreturns 86400000- See Also:
-
-
Constructor Details
-
FWDataFormatter
public FWDataFormatter() -
FWDataFormatter
-
FWDataFormatter
public FWDataFormatter(long aDate) -
FWDataFormatter
- Throws:
ParseException
-
FWDataFormatter
- Throws:
ParseException
-
FWDataFormatter
-
FWDataFormatter
-
-
Method Details
-
getFormatterDate
-
getDataPattern
-
getVisuPattern
-
setVisuPattern
- Throws:
ParseException
-
setDataPattern
- Throws:
ParseException
-
setDate
Sets the Date and checks for compatibility of DatePrecision to stored DatabasePrecisionPattern. If not compatible ParseException is thrown- Parameters:
aDateString
-- Throws:
ParseException
-
setDate
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
-
toDataStoreString
-
toForeignPatternString
-
parseDate
- Throws:
ParseException
-
equals
-
toString
- Parameters:
aFormatedDate
- to format with aPatternaPattern
-- Returns:
- a formatted Date
-
transformToDate
- Parameters:
aText
-- Returns:
- FromatedDate Object representing aText
-