| Package | net.systemeD.halcyon.styleparser |
| Class | public class Condition |
See also
| Method | Defined by | ||
|---|---|---|---|
|
Condition(type:String = "", ... params)
Create a new Condition.
| Condition | ||
|
test(tags:Object):Boolean
Test a tag hash against the Condition.
| Condition | ||
|
toString():String
| Condition | ||
| params | property |
public var params:Array
| type | property |
public var type:String
| Condition | () | constructor |
public function Condition(type:String = "", ... params)Create a new Condition.
Valid types:
eq,'highway','trunk' - simple equality test
ne,'highway','trunk' - not equals
regex,'highway','trunk.+' - regular expression
true,'bridge' - value is true/yes/1
untrue,'bridge' - value is not true/yes/1
set,'highway' - tag exists and is not ''
unset,'highway' - tag does not exist, or is ''
<,'population','5000' - numeric comparison (also <=, >, >=)
Parameterstype:String (default = "") |
|
... params |
| test | () | method |
public function test(tags:Object):BooleanTest a tag hash against the Condition.
Parameterstags:Object |
Boolean |
| toString | () | method |
public function toString():String
Returns
String |