Class Type

    • Field Detail

      • name

        protected String name
        The name of the type represented by this object.
      • clazz

        protected Class clazz
        The corresponding class object.
      • enumType

        protected int enumType
        The FieldTypeEnumeration constant for this Type.
    • Constructor Detail

      • Type

        public Type​(String name,
                    Class clazz)
        Creates a new Type object with the specified name.
        Parameters:
        name - name of the type represented by this
        clazz - the class object for this type
      • Type

        public Type​(String name,
                    Class clazz,
                    int enumType)
        Creates a new Type object with the specified name.
        Parameters:
        name - name of the type represented by this
        clazz - the class object for this type
        enumType - the FieldTypeEnumeration value for this type
    • Method Detail

      • getName

        public String getName()
        Returns the name of the type.
      • getJavaClass

        public Class getJavaClass()
        Returns the corresponding class object.
      • isCompatibleWith

        public abstract boolean isCompatibleWith​(Type type)
        Checks type compatibility.
        Parameters:
        type - the type this is checked with.
        Returns:
        true if this is compatible with type; false otherwise.
      • isOrderable

        public boolean isOrderable()
        Returns whether this represents a type with an defined order.
        Returns:
        true if an order is defined for this; false otherwise.
      • getEnumType

        public int getEnumType()
        Returns the FieldTypeEnumeration value for this type.
      • toString

        public String toString()
        Representation of this type as a string.
        Overrides:
        toString in class Object
      • equals

        public boolean equals​(Object obj)
        Indicates whether some other object is "equal to" this one. Two types are equal if their names are equal.
        Overrides:
        equals in class Object