Class NamePattern

java.lang.Object
net.preibisch.mvrecon.fiji.spimdata.NamePattern

public class NamePattern extends Object
  • Constructor Details

    • NamePattern

      public NamePattern()
  • Method Details

    • parseNameString

      public static ArrayList<String> parseNameString(String codedEnum, boolean allowNonNumeric) throws ParseException
      Parse a pattern provided by the user defining a range of integers. Allowed are enumerations seperated by commas, each entry can be a single number, a range e.g. 4-100 or a range in intervals e.g. 0-30:10 - which is equivalent to 0,10,20,30. Enumerations can now also contain letters or entire names!
      Parameters:
      codedEnum - - the input
      allowNonNumeric - - if non-numeric entries are allowed or not
      Returns:
      a list of integers that were described, an empty list with the entry 0 if the String is "" or null
      Throws:
      ParseException - if the input string was illegal