Package ninja.params

Class ArgumentExtractors.FileParamsExtractor

    • Constructor Detail

      • FileParamsExtractor

        public FileParamsExtractor​(Params param)
    • Method Detail

      • extract

        public File[] extract​(Context context)
        Description copied from interface: ArgumentExtractor
        Extract the argument from the context
        Specified by:
        extract in interface ArgumentExtractor<File[]>
        Parameters:
        context - The argument to extract
        Returns:
        The extracted argument
      • getFieldName

        public String getFieldName()
        Description copied from interface: ArgumentExtractor
        Get the field name that is being extracted, if this value is extracted from a field
        Specified by:
        getFieldName in interface ArgumentExtractor<File[]>
        Returns:
        The field name, or null if the argument isn't extracted from a named field