public class PatternPathLabelGenerator extends Object implements PathLabelGenerator
| Modifier and Type | Field and Description |
|---|---|
protected String |
pattern |
protected int |
patternPosition |
| Constructor and Description |
|---|
PatternPathLabelGenerator(String pattern) |
PatternPathLabelGenerator(String pattern,
int patternPosition) |
| Modifier and Type | Method and Description |
|---|---|
Writable |
getLabelForPath(String path) |
Writable |
getLabelForPath(URI uri) |
boolean |
inferLabelClasses()
If true: infer the set of possible label classes, and convert these to integer indexes.
|
protected String pattern
protected int patternPosition
public PatternPathLabelGenerator(String pattern)
public PatternPathLabelGenerator(String pattern, int patternPosition)
public Writable getLabelForPath(String path)
getLabelForPath in interface PathLabelGeneratorpublic Writable getLabelForPath(URI uri)
getLabelForPath in interface PathLabelGeneratorpublic boolean inferLabelClasses()
PathLabelGeneratorinferLabelClasses in interface PathLabelGeneratorCopyright © 2019. All rights reserved.