Class PropertyFile.Entry.Operation

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

public static class PropertyFile.Entry.Operation extends EnumeratedAttribute
Enumerated attribute with the values "+", "-", "="
  • Field Details

  • Constructor Details

    • Operation

      public Operation()
  • 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.
    • toOperation

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