Package org.faktorips.datatype
Class AnyDatatype
java.lang.Object
org.faktorips.datatype.AnyDatatype
- All Implemented Interfaces:
Comparable<Datatype>,Datatype
A datatype that is used to represent any type of data, similiar to
java.lang.Object.- Author:
- Jan Ortmann
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionintgetName()Returns the datatype's name.Returns the datatype's qualified name.booleanReturnstrueif the datatype has a special instance representingnull, otherwisefalse.booleanReturnstrueif this datatype is an abstract datatype in means of the object oriented paradigm.booleanisEnum()Returnstrueif this value datatype is an enum datatype.booleanReturnstrueif this datatype represents one of Java's primitive types.booleanReturnstrueif this datatype represents values.booleanisVoid()org.faktorips.runtime.MessageListvalidate()
-
Field Details
-
INSTANCE
-
-
Method Details
-
validate
public org.faktorips.runtime.MessageList validate() -
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.
- Specified by:
getQualifiedNamein interfaceDatatype
-
isVoid
public boolean isVoid()Description copied from interface:Datatype -
isPrimitive
public boolean isPrimitive()Description copied from interface:DatatypeReturnstrueif this datatype represents one of Java's primitive types.- Specified by:
isPrimitivein interfaceDatatype
-
isAbstract
public boolean isAbstract()Description copied from interface:DatatypeReturnstrueif this datatype is an abstract datatype in means of the object oriented paradigm.- Specified by:
isAbstractin interfaceDatatype
-
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.- Specified by:
isValueDatatypein interfaceDatatype
-
isEnum
public boolean isEnum()Description copied from interface:DatatypeReturnstrueif this value datatype is an enum datatype. In this case the instance can be cast toEnumDatatype. Returnsfalseotherwise. -
compareTo
- Specified by:
compareToin interfaceComparable<Datatype>
-
hasNullObject
public boolean hasNullObject()Description copied from interface:DatatypeReturnstrueif the datatype has a special instance representingnull, otherwisefalse. The design pattern is called the null-object pattern.- Specified by:
hasNullObjectin interfaceDatatype- See Also:
-