Interface StringDef

All Superinterfaces:
FieldDef

public interface StringDef extends FieldDef
StringDef is an extension of FieldDef to encapsulate a String. It adds a minimum and maximum value range and type.

Comparisons to minimum and maxium values are done using String.compareTo(java.lang.String).

Since:
3.0
  • Method Details

    • getMin

      Deprecated.
      as of release 4.0 it is no longer possible to specify ranges on String types.
      Get the minimum value for the string.
      Returns:
      the minimum value for the instance if defined, otherwise null
    • getMax

      Deprecated.
      as of release 4.0 it is no longer possible to specify ranges on String types.
      Get the maximum value for the string.
      Returns:
      the maximum value for the instance if defined, otherwise null
    • isMinInclusive

      @Deprecated boolean isMinInclusive()
      Deprecated.
      as of release 4.0 it is no longer possible to specify ranges on String types.
      Returns:
      true if the minimum is inclusive. This value is only relevant if getMin() returns a non-null value.
    • isMaxInclusive

      @Deprecated boolean isMaxInclusive()
      Deprecated.
      as of release 4.0 it is no longer possible to specify ranges on String types.
      Returns:
      true if the maximum is inclusive. This value is only relevant if getMax() returns a non-null value.
    • clone

      StringDef clone()
      Description copied from interface: FieldDef
      Perform a deep copy of this FieldDef instance.
      Specified by:
      clone in interface FieldDef
      Returns:
      a deep copy of this object