Package | Description |
---|---|
org.openstreetmap.josm.gui.layer.markerlayer |
Provides classes for handling marker layers.
|
org.openstreetmap.josm.gui.tagging.presets |
Provides classes for handling tagging presets.
|
org.openstreetmap.josm.tools.template_engine |
Provides classes for a generic template engine used in presets, name rendering and search function.
|
Modifier and Type | Method and Description |
---|---|
protected TemplateEntry |
Marker.TemplateEntryProperty.fromString(java.lang.String s) |
Modifier and Type | Field and Description |
---|---|
TemplateEntry |
TaggingPreset.nameTemplate |
Modifier and Type | Class and Description |
---|---|
class |
CompoundTemplateEntry
TemplateEntry that concatenates several templates. |
class |
Condition
TemplateEntry that applies other templates based on conditions. |
class |
ContextSwitchTemplate
The context switch offers possibility to use tags of referenced primitive when constructing primitive name.
|
class |
SearchExpressionCondition
Conditional
TemplateEntry that executes another template in case a search expression applies
to the given data provider. |
class |
StaticText
TemplateEntry representing a static string. |
class |
Variable
TemplateEntry that inserts the value of a variable. |
Modifier and Type | Field and Description |
---|---|
private TemplateEntry[] |
CompoundTemplateEntry.entries |
private TemplateEntry |
ContextSwitchTemplate.template |
private TemplateEntry |
SearchExpressionCondition.text |
Modifier and Type | Field and Description |
---|---|
private java.util.List<TemplateEntry> |
Condition.entries |
Modifier and Type | Method and Description |
---|---|
static TemplateEntry |
CompoundTemplateEntry.fromArray(TemplateEntry... entries)
Factory method to concatenate several
TemplateEntry s. |
TemplateEntry |
TemplateParser.parse()
Parse the template.
|
private TemplateEntry |
TemplateParser.parseCondition() |
private TemplateEntry |
TemplateParser.parseContextSwitch() |
private TemplateEntry |
TemplateParser.parseExpression(java.util.Collection<Tokenizer.TokenType> endTokens) |
private TemplateEntry |
TemplateParser.parseVariable() |
Modifier and Type | Method and Description |
---|---|
static TemplateEntry |
CompoundTemplateEntry.fromArray(TemplateEntry... entries)
Factory method to concatenate several
TemplateEntry s. |
Constructor and Description |
---|
CompoundTemplateEntry(TemplateEntry... entries) |
ContextSwitchTemplate(SearchCompiler.Match match,
TemplateEntry template,
int searchExpressionPosition)
Constructs a new
ContextSwitchTemplate . |
SearchExpressionCondition(SearchCompiler.Match condition,
TemplateEntry text)
Creates a new
SearchExpressionCondition . |
Constructor and Description |
---|
Condition(java.util.Collection<TemplateEntry> entries)
Constructs a new
Condition with predefined template entries. |