@FunctionalInterface static interface MapCSSTagChecker.FixCommand
Command
can be obtained by createCommand(OsmPrimitive, Selector)
.Modifier and Type | Method and Description |
---|---|
static void |
checkObject(java.lang.Object obj) |
Command |
createCommand(OsmPrimitive p,
Selector matchingSelector)
Creates the fixing
Command for the given primitive. |
static java.lang.String |
evaluateObject(java.lang.Object obj,
OsmPrimitive p,
Selector matchingSelector)
|
static MapCSSTagChecker.FixCommand |
fixAdd(java.lang.Object obj)
Creates a fixing command which executes a
ChangePropertyCommand on the specified tag. |
static MapCSSTagChecker.FixCommand |
fixChangeKey(java.lang.String oldKey,
java.lang.String newKey)
Creates a fixing command which executes a
ChangePropertyKeyCommand on the specified keys. |
static MapCSSTagChecker.FixCommand |
fixRemove(java.lang.Object obj)
Creates a fixing command which executes a
ChangePropertyCommand to delete the specified key. |
Command createCommand(OsmPrimitive p, Selector matchingSelector)
Command
for the given primitive. The matchingSelector
is used to evaluate placeholders
(cf. MapCSSTagChecker.TagCheck.insertArguments(Selector, String, OsmPrimitive)
).p
- OSM primitivematchingSelector
- matching selectorstatic void checkObject(java.lang.Object obj)
static java.lang.String evaluateObject(java.lang.Object obj, OsmPrimitive p, Selector matchingSelector)
obj
- object to evaluate (Expression
or String
)p
- OSM primitivematchingSelector
- matching selectorstatic MapCSSTagChecker.FixCommand fixAdd(java.lang.Object obj)
ChangePropertyCommand
on the specified tag.obj
- object to evaluate (Expression
or String
)static MapCSSTagChecker.FixCommand fixRemove(java.lang.Object obj)
ChangePropertyCommand
to delete the specified key.obj
- object to evaluate (Expression
or String
)static MapCSSTagChecker.FixCommand fixChangeKey(java.lang.String oldKey, java.lang.String newKey)
ChangePropertyKeyCommand
on the specified keys.oldKey
- old keynewKey
- new key