public class NamePatternUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
IMAGE_FIELD |
static String |
NAME_FIELD |
| Constructor and Description |
|---|
NamePatternUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertNamePattern(String pattern)
Accepts an Ant-ish or regular expression pattern and compiles to a regular expression.
|
static String |
convertNamePatternList(String patternList)
Take a string that represents a list of patterns, possibly a mixture of
regular expressions and Ant-style patterns, and return a single regular
expression that matches any of the alternatives.
|
static String |
convertNamePatternList(String patternList,
String fieldName,
boolean includeUnnamed)
Take a string that represents a list of patterns, possibly a mixture of
regular expressions and Ant-style patterns, and return a single regular
expression that matches any of the alternatives.
|
public static final String IMAGE_FIELD
public static final String NAME_FIELD
public static String convertNamePattern(String pattern)
public static String convertNamePatternList(String patternList)
patternList - the pattern list specification to convertPatternSyntaxException - if any of the individual patterns fails
to compile as a regular expression.public static String convertNamePatternList(String patternList, String fieldName, boolean includeUnnamed)
patternList - the pattern list specification to convertfieldName - the field name for which patterns should be selectedincludeUnnamed - if true, include patterns that do not specify a
field namePatternSyntaxException - if any of the individual patterns fails
to compile as a regular expression.Copyright © 2019. All rights reserved.