Class IfGroupIndexRange

Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.io.input.bean.grouper.Grouper>
org.anchoranalysis.io.input.bean.grouper.Grouper
org.anchoranalysis.plugin.io.bean.grouper.IfGroupIndexRange

public class IfGroupIndexRange
extends org.anchoranalysis.io.input.bean.grouper.Grouper
When a IndexRangeNegative is passed as an argument, an InputGrouper is constructed that extracts elements from a Path.

See ExtractPathElementRange.extract(java.nio.file.Path, org.anchoranalysis.core.index.range.IndexRangeNegative) for how this occurs.

Otherwise, group is called to create a Optional<InputGrouper>.

Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    IfGroupIndexRange()  
  • Method Summary

    Modifier and Type Method Description
    Optional<org.anchoranalysis.io.input.grouper.InputGrouper> createInputGrouper​(Optional<org.anchoranalysis.core.index.range.IndexRangeNegative> groupIndexRange)  
    org.anchoranalysis.io.input.bean.grouper.Grouper getGroup()
    Fallback to use when no group-index-range is specified.
    void setGroup​(org.anchoranalysis.io.input.bean.grouper.Grouper group)
    Fallback to use when no group-index-range is specified.

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • createInputGrouper

      public Optional<org.anchoranalysis.io.input.grouper.InputGrouper> createInputGrouper​(Optional<org.anchoranalysis.core.index.range.IndexRangeNegative> groupIndexRange)
      Specified by:
      createInputGrouper in class org.anchoranalysis.io.input.bean.grouper.Grouper
    • getGroup

      public org.anchoranalysis.io.input.bean.grouper.Grouper getGroup()
      Fallback to use when no group-index-range is specified.
    • setGroup

      public void setGroup​(org.anchoranalysis.io.input.bean.grouper.Grouper group)
      Fallback to use when no group-index-range is specified.