Class LocalDateHelper
java.lang.Object
org.faktorips.codegen.dthelpers.AbstractDatatypeHelper
org.faktorips.codegen.dthelpers.AbstractTimeHelper
org.faktorips.codegen.dthelpers.joda.BaseJodaDatatypeHelper
org.faktorips.codegen.dthelpers.joda.LocalDateHelper
- All Implemented Interfaces:
BaseDatatypeHelper<JavaCodeFragment>,DatatypeHelper,ILocalDateHelper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.faktorips.codegen.dthelpers.ILocalDateHelper
ILocalDateHelper.Period -
Field Summary
FieldsFields inherited from class org.faktorips.codegen.dthelpers.joda.BaseJodaDatatypeHelper
ORG_FAKTORIPS_UTIL_JODA_UTIL, ORG_JODA_TIME_FORMAT_ISO_DATE_TIME_FORMATFields inherited from interface org.faktorips.codegen.DatatypeHelper
BIG_DECIMAL, BOOLEAN, DECIMAL, INTEGER, LONG, MONEY, PRIMITIVE_BOOLEAN, PRIMITIVE_INTEGER, STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the class listing the accessible fields of the LocalDate.getDateInitialization(JavaCodeFragment year, JavaCodeFragment month, JavaCodeFragment day) Returns the code to create a new LocalDate.Returns the field for the day of the month in theDateFieldEnumClass.Returns the field for the month of the year in theDateFieldEnumClass.getPeriodCode(JavaCodeFragment arg1, JavaCodeFragment arg2, ILocalDateHelper.Period period) Returns the code to calculate the period between the two arguments.Returns the field for the year in theDateFieldEnumClass.Methods inherited from class org.faktorips.codegen.dthelpers.joda.BaseJodaDatatypeHelper
appendToStringParameter, getJavaClassName, getToStringExpression, nullExpression, valueOfExpressionMethods inherited from class org.faktorips.codegen.dthelpers.AbstractTimeHelper
newInstanceMethods inherited from class org.faktorips.codegen.dthelpers.AbstractDatatypeHelper
createCastExpression, getDatatype, getRangeJavaClassName, newEnumValueSetInstance, newEnumValueSetInstance, newInstanceFromExpression, newInstanceFromExpression, newRangeInstance, newSafeCopy, referenceOrSafeCopyIfNeccessary, setDatatypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.faktorips.codegen.DatatypeHelper
getValueSetJavaClassName, newEnumValueSetInstance, newValueInstance
-
Field Details
-
ORG_JODA_TIME_LOCAL_DATE
- See Also:
-
-
Constructor Details
-
LocalDateHelper
public LocalDateHelper() -
LocalDateHelper
-
-
Method Details
-
getPeriodCode
public JavaCodeFragment getPeriodCode(JavaCodeFragment arg1, JavaCodeFragment arg2, ILocalDateHelper.Period period) Description copied from interface:ILocalDateHelperReturns the code to calculate the period between the two arguments.- Specified by:
getPeriodCodein interfaceILocalDateHelper
-
getDateInitialization
public JavaCodeFragment getDateInitialization(JavaCodeFragment year, JavaCodeFragment month, JavaCodeFragment day) Description copied from interface:ILocalDateHelperReturns the code to create a new LocalDate.- Specified by:
getDateInitializationin interfaceILocalDateHelper
-
getDateFieldEnumClass
Description copied from interface:ILocalDateHelperReturns the name of the class listing the accessible fields of the LocalDate.- Specified by:
getDateFieldEnumClassin interfaceILocalDateHelper
-
getDayOfMonthField
Description copied from interface:ILocalDateHelperReturns the field for the day of the month in theDateFieldEnumClass.- Specified by:
getDayOfMonthFieldin interfaceILocalDateHelper
-
getMonthOfYearField
Description copied from interface:ILocalDateHelperReturns the field for the month of the year in theDateFieldEnumClass.- Specified by:
getMonthOfYearFieldin interfaceILocalDateHelper
-
getYearField
Description copied from interface:ILocalDateHelperReturns the field for the year in theDateFieldEnumClass.- Specified by:
getYearFieldin interfaceILocalDateHelper
-