Class AnyDatatype

java.lang.Object
org.faktorips.datatype.AnyDatatype
All Implemented Interfaces:
Comparable<Datatype>, Datatype

public class AnyDatatype extends Object implements Datatype
A datatype that is used to represent any type of data, similiar to java.lang.Object.
Author:
Jan Ortmann
  • Field Details

  • Method Details

    • validate

      public org.faktorips.runtime.MessageList validate()
    • getName

      public String getName()
      Description copied from interface: Datatype
      Returns the datatype's name.
      Specified by:
      getName in interface Datatype
    • getQualifiedName

      public String getQualifiedName()
      Description copied from interface: Datatype
      Returns the datatype's qualified name.

      The qualified name identifies the datatype.

      Specified by:
      getQualifiedName in interface Datatype
    • isVoid

      public boolean isVoid()
      Description copied from interface: Datatype
      Returns true if this is the Datatype Void, otherwise false.
      Specified by:
      isVoid in interface Datatype
    • isPrimitive

      public boolean isPrimitive()
      Description copied from interface: Datatype
      Returns true if this datatype represents one of Java's primitive types.
      Specified by:
      isPrimitive in interface Datatype
    • isAbstract

      public boolean isAbstract()
      Description copied from interface: Datatype
      Returns true if this datatype is an abstract datatype in means of the object oriented paradigm.
      Specified by:
      isAbstract in interface Datatype
    • isValueDatatype

      public boolean isValueDatatype()
      Description copied from interface: Datatype
      Returns true if this datatype represents values.

      If the method returns true, the datatype can be safely casted to ValueDatatype.

      Specified by:
      isValueDatatype in interface Datatype
    • isEnum

      public boolean isEnum()
      Description copied from interface: Datatype
      Returns true if this value datatype is an enum datatype. In this case the instance can be cast to EnumDatatype. Returns false otherwise.
      Specified by:
      isEnum in interface Datatype
    • compareTo

      public int compareTo(Datatype o)
      Specified by:
      compareTo in interface Comparable<Datatype>
    • hasNullObject

      public boolean hasNullObject()
      Description copied from interface: Datatype
      Returns true if the datatype has a special instance representing null, otherwise false. The design pattern is called the null-object pattern.
      Specified by:
      hasNullObject in interface Datatype
      See Also:
      • NullObject