org.apache.tools.ant.taskdefs.optional

Class PropertyFile.Entry.Operation

    • Constructor Detail

      • Operation

        public Operation()
    • Method Detail

      • getValues

        public java.lang.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(java.lang.String oper)
        Convert string to index.
        Parameters:
        oper - the string to convert.
        Returns:
        the index.