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
Nested ClassesModifier and TypeClassDescriptionstatic classsome final parameters for Pattern -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFWDataFormatter(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 TypeMethodDescriptionbooleanstatic LocalDateTimevoidplusDays(int aDaysCount) Sets the Date and forces to change DatePrecision to given Pattern.voidplusYears(int aYearsCount) Sets the Date and forces to change DatePrecision to given Pattern.voidsetDataPattern(String aDataPattern) voidSets the Date and checks for compatibility of DatePrecision to stored DatabasePrecisionPattern.voidSets the Date and forces to change DatePrecision to given Pattern.voidsetVisuPattern(String aVisuPattern) toForeignPatternString(String aForeignPattern) toString()static StringtoString(LocalDateTime aFormatedDate, String aPattern) static FWDataFormattertransformToDate(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
-