public class RegexNodeNameRule extends Object implements NodeNameRule
row\d+ matches row12 but not
xrow12).
Use it as a build-time rule so matching names collapse to wildcard nodes while the tree loads:
Tree.loadXml(file, TreeDetectionStrategy.standard(true).addNodeNameRule(new RegexNodeNameRule("row\\d+")));
or as an affix segment rule so sibling
middles the standard rules do not recognize (for example 3A, 5B) can
still derive a collapse pattern.
| Constructor and Description |
|---|
RegexNodeNameRule(String pattern) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPattern() |
boolean |
isDynamicName(String nodeName) |
String |
toString() |
public RegexNodeNameRule(String pattern)
public String getPattern()
public boolean isDynamicName(String nodeName)
isDynamicName in interface NodeNameRuleCopyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.