Package org.faktorips.datatype
Class JavaClass2DatatypeAdaptor
java.lang.Object
org.faktorips.datatype.AbstractDatatype
org.faktorips.datatype.JavaClass2DatatypeAdaptor
- All Implemented Interfaces:
Comparable<Datatype>,Datatype
Adapter that allows to use any Java class (that is not a value) as datatype. Typical use for such
datatypes are classes like MessageList or CalculationResult that are used as collection
parameters in methods.
- Author:
- Jan Ortmann
-
Field Summary
Fields inherited from interface org.faktorips.datatype.Datatype
BIG_DECIMAL, BOOLEAN, DECIMAL, DOUBLE, GREGORIAN_CALENDAR, INTEGER, LONG, MONEY, PRIMITIVE_BOOLEAN, PRIMITIVE_INT, PRIMITIVE_LONG, STRING, VOID -
Constructor Summary
ConstructorsConstructorDescriptionJavaClass2DatatypeAdaptor(Class<?> clazz) JavaClass2DatatypeAdaptor(String javaClassName) JavaClass2DatatypeAdaptor(String name, Class<?> clazz) JavaClass2DatatypeAdaptor(String name, String javaClassName) -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the datatype's name.Returns the datatype's qualified name.booleanReturnstrueif this datatype is an abstract datatype in means of the object oriented paradigm.booleanReturnstrueif this datatype represents one of Java's primitive types.booleanReturnstrueif this datatype represents values.Methods inherited from class org.faktorips.datatype.AbstractDatatype
checkReadyToUse, compareTo, equals, hashCode, hasNullObject, isEnum, isVoid, matchDatatype, toString
-
Constructor Details
-
JavaClass2DatatypeAdaptor
-
JavaClass2DatatypeAdaptor
-
JavaClass2DatatypeAdaptor
-
JavaClass2DatatypeAdaptor
-
-
Method Details
-
getJavaClassName
-
getName
Description copied from interface:DatatypeReturns the datatype's name. -
getQualifiedName
Description copied from interface:DatatypeReturns the datatype's qualified name.The qualified name identifies the datatype.
-
isPrimitive
public boolean isPrimitive()Description copied from interface:DatatypeReturnstrueif this datatype represents one of Java's primitive types. -
isAbstract
public boolean isAbstract()Description copied from interface:DatatypeReturnstrueif this datatype is an abstract datatype in means of the object oriented paradigm. -
isValueDatatype
public boolean isValueDatatype()Description copied from interface:DatatypeReturnstrueif this datatype represents values.If the method returns
true, the datatype can be safely casted toValueDatatype.
-