public class Roles extends TaggingPresetItem
roles element in tagging presets definition.
A list of Roles.Role elements. Describes the roles that are expected for
the members of a relation.
Used for data validation, auto completion, among others.
| Modifier and Type | Class and Description |
|---|---|
static class |
Roles.Role
The
role element in tagging preset definition. |
| Modifier and Type | Field and Description |
|---|---|
java.util.List<Roles.Role> |
roles
List of
Roles.Role elements. |
| Constructor and Description |
|---|
Roles() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommands(java.util.List<Tag> changedTags)
Adds the new tags to apply to selected OSM primitives when the preset holding this item is applied.
|
boolean |
addToPanel(javax.swing.JPanel p,
java.util.Collection<OsmPrimitive> sel,
boolean presetInitiallyMatches)
Called by
TaggingPreset.createPanel(java.util.Collection<org.openstreetmap.josm.data.osm.OsmPrimitive>) during tagging preset panel creation. |
java.lang.String |
toString() |
fixPresetString, getLocaleText, getType, initAutoCompletionField, initAutoCompletionField, loadImageIcon, matches, matches, parseIntegerpublic final java.util.List<Roles.Role> roles
Roles.Role elements.public Roles()
public boolean addToPanel(javax.swing.JPanel p, java.util.Collection<OsmPrimitive> sel, boolean presetInitiallyMatches)
TaggingPresetItemTaggingPreset.createPanel(java.util.Collection<org.openstreetmap.josm.data.osm.OsmPrimitive>) during tagging preset panel creation.
All components defining this tagging preset item must be added to given panel.addToPanel in class TaggingPresetItemp - The panel where components must be addedsel - The related selected OSM primitivespresetInitiallyMatches - Whether this TaggingPreset already matched before applying,
i.e. whether the map feature already existed on the primitive.true if this item adds semantic tagging elements, false otherwise.public void addCommands(java.util.List<Tag> changedTags)
TaggingPresetItemaddCommands in class TaggingPresetItemchangedTags - The list of changed tags to modify if neededpublic java.lang.String toString()
toString in class java.lang.Object