Class SiblingSetPattern
java.lang.Object
com.northconcepts.datapipeline.foundations.pipeline.tree.detect.SiblingSetPattern
An immutable naming pattern derived from a set of sibling names — a fixed prefix and suffix
around a dynamic middle segment (for example
item-* derived from
item-1, item-2, item-3). The pattern informs display and
field naming only; collapsed nodes always emit the XPath wildcard in their expressions.-
Constructor Summary
ConstructorsConstructorDescriptionSiblingSetPattern(String prefix, String suffix, NodeNameRule segmentRule) Creates a pattern whose middle segment must satisfy the requiredsegmentRule; null affixes are treated as empty. -
Method Summary
Modifier and TypeMethodDescriptionReturns the pattern for display purposes (for exampleitem-*).Returns the affix stripped of leading/trailing separators as a candidate field name (for exampleitem), ornullwhen both affixes are empty after trimming.Returns the rule that the middle segment of a matching name must satisfy.booleanIndicates if the supplied name fits this pattern: it carries the prefix and suffix around a non-empty middle segment that the segment rule classifies as dynamic.toString()
-
Constructor Details
-
SiblingSetPattern
Creates a pattern whose middle segment must satisfy the requiredsegmentRule; null affixes are treated as empty.
-
-
Method Details
-
getPrefix
-
getSuffix
-
getSegmentRule
Returns the rule that the middle segment of a matching name must satisfy. -
matches
Indicates if the supplied name fits this pattern: it carries the prefix and suffix around a non-empty middle segment that the segment rule classifies as dynamic. -
getDisplayName
Returns the pattern for display purposes (for exampleitem-*). Never used in XPath expressions. -
getFieldNameHint
Returns the affix stripped of leading/trailing separators as a candidate field name (for exampleitem), ornullwhen both affixes are empty after trimming. -
toString
-