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.GroupergetGroup()Fallback to use when no group-index-range is specified.voidsetGroup(org.anchoranalysis.io.input.bean.grouper.Grouper group)Fallback to use when no group-index-range is specified.
-
Constructor Details
-
IfGroupIndexRange
public IfGroupIndexRange()
-
-
Method Details
-
createInputGrouper
public Optional<org.anchoranalysis.io.input.grouper.InputGrouper> createInputGrouper(Optional<org.anchoranalysis.core.index.range.IndexRangeNegative> groupIndexRange)- Specified by:
createInputGrouperin classorg.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.
-