@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)
Checks that object is either an
Expression or a String. |
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)
Expression or a String.obj - object to checkjava.lang.IllegalArgumentException - if object is not an Expression or a Stringstatic 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