Class PropertyFile.Entry.Type

java.lang.Object
org.apache.tools.ant.types.EnumeratedAttribute
org.apache.tools.ant.taskdefs.optional.PropertyFile.Entry.Type
Enclosing class:
PropertyFile.Entry

public static class PropertyFile.Entry.Type extends EnumeratedAttribute
Enumerated attribute with the values "int", "date" and "string".
  • Field Details

  • Constructor Details

    • Type

      public Type()
  • Method Details

    • getValues

      public String[] getValues()
      This is the only method a subclass needs to implement.
      Specified by:
      getValues in class EnumeratedAttribute
      Returns:
      an array holding all possible values of the enumeration. The order of elements must be fixed so that indexOfValue(String) always return the same index for the same value.
    • toType

      public static int toType(String type)
      Convert string to index.
      Parameters:
      type - the string to convert.
      Returns:
      the index.