Package org.faktorips.codegen.dthelpers
Class AbstractTimeHelper
java.lang.Object
org.faktorips.codegen.dthelpers.AbstractDatatypeHelper
org.faktorips.codegen.dthelpers.AbstractTimeHelper
- All Implemented Interfaces:
BaseDatatypeHelper<JavaCodeFragment>,DatatypeHelper
- Direct Known Subclasses:
BaseJodaDatatypeHelper,LocalDateHelper,LocalDateTimeHelper,LocalTimeHelper,MonthDayHelper
Abstract base class for helpers for time data types.
-
Field Summary
Fields 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 TypeMethodDescriptionnewInstance(String value) Returns aJavaCodeFragmentwith sourcecode that creates an instance of the datatype's Java class with the given value.Methods inherited from class org.faktorips.codegen.dthelpers.AbstractDatatypeHelper
createCastExpression, getDatatype, getRangeJavaClassName, getToStringExpression, newEnumValueSetInstance, newEnumValueSetInstance, newInstanceFromExpression, newInstanceFromExpression, newRangeInstance, newSafeCopy, nullExpression, referenceOrSafeCopyIfNeccessary, setDatatype, valueOfExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.faktorips.codegen.DatatypeHelper
getJavaClassName, getValueSetJavaClassName, newEnumValueSetInstance, newValueInstance
-
Constructor Details
-
AbstractTimeHelper
public AbstractTimeHelper() -
AbstractTimeHelper
-
-
Method Details
-
newInstance
Description copied from interface:DatatypeHelperReturns aJavaCodeFragmentwith sourcecode that creates an instance of the datatype's Java class with the given value. If the value is null the fragment's sourcecode is either the String "null" or the sourcecode to get an instance of the appropriate null object.
-