public class FilePatternBlock extends Object
FilePattern.| Modifier and Type | Field and Description |
|---|---|
private BigInteger |
begin |
private String |
block
String representation of this block.
|
static String |
BLOCK_END
Identifies the end of a block.
|
static String |
BLOCK_START
Identifies the start of a block.
|
private String[] |
elements
Elements within this block, e.g.
|
private BigInteger |
end |
private boolean |
fixed
Whether or not this is a fixed-width block.
|
private boolean |
numeric
Whether or not this is a numeric block.
|
private BigInteger |
step |
private int |
zeroes
The number of leading zeroes.
|
| Constructor and Description |
|---|
FilePatternBlock(String block)
Builds a FilePatternBlock from a block string.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
explode() |
String |
getBlock()
Gets the block string.
|
String[] |
getElements()
Gets all block elements.
|
BigInteger |
getFirst()
Gets the first element in a range block.
|
BigInteger |
getLast()
Gets the last element in a range block.
|
BigInteger |
getStep()
Gets the difference between consecutive elements in a range block.
|
boolean |
isFixed()
Whether or not this is a fixed-width block.
|
boolean |
isNumeric()
Whether or not this is a numeric block.
|
private void |
setFixed() |
private void |
setNumeric() |
private void |
throwBadBlock(String msgTemplate) |
private void |
throwBadBlock(String msgTemplate,
Throwable cause) |
public static final String BLOCK_START
public static final String BLOCK_END
private String[] elements
private boolean fixed
private boolean numeric
private int zeroes
private String block
private BigInteger begin
private BigInteger end
private BigInteger step
public FilePatternBlock(String block)
FilePattern for block string syntax.block - the block string.public String[] getElements()
public String getBlock()
public boolean isFixed()
public boolean isNumeric()
<10-15:2> expands to 10, 13,
15, all of which consist only of digits.public BigInteger getFirst()
public BigInteger getLast()
public BigInteger getStep()
private void throwBadBlock(String msgTemplate)
private void setNumeric()
private void setFixed()
private void explode()
Copyright © 2016 Open Microscopy Environment