Package org.openstreetmap.josm.data.osm.search
Provides classes allowing to search OSM primitives in a dataset using textual queries.
-
Interface Summary Interface Description SearchCompiler.BinaryMatchFactory A factor for gettingSearchCompiler.AbstractBinaryMatch
objectsSearchCompiler.MatchFactory Classes implementing this interface can provide Match operators.SearchCompiler.MatchSupplier Classes implementing this interface can provide Match instances themselves and do not rely onSearchCompiler.compile(String)
.SearchCompiler.SimpleMatchFactory A factory for gettingSearchCompiler.Match
objectsSearchCompiler.UnaryMatchFactory A factory for gettingSearchCompiler.UnaryMatch
objects -
Class Summary Class Description PushbackTokenizer This class is used to parse a search string and split it into tokens.PushbackTokenizer.Range A range of long numbers.SearchCompiler Implements a google-like search.SearchCompiler.AbstractBinaryMatch A binary search operator which may take data parameters.SearchCompiler.Always Matches every OsmPrimitive.SearchCompiler.And Matches if both left and right expressions match.SearchCompiler.Any Match a string in any tags (key or value), with optional regex and case insensitivity.SearchCompiler.AreaSize Matches if the size of the area is within the given rangeSearchCompiler.BooleanMatch Matches if the value of the corresponding key is ''yes'', ''true'', ''1'' or ''on''.SearchCompiler.ChangesetId Matches objects with a changeset ID in the given range.SearchCompiler.Child Matches objects if they are children of the expressionSearchCompiler.Closed Matches ways which are closed (i.e.SearchCompiler.CoreSimpleMatchFactory The core factory for "simple"SearchCompiler.Match
objectsSearchCompiler.CoreUnaryMatchFactory The coreSearchCompiler.UnaryMatch
factorySearchCompiler.Deleted Matches all objects that have been deletedSearchCompiler.ExactKeyValue Matches objects with the exact given key-value pair.SearchCompiler.ExactType Filter OsmPrimitives based off of the base primitive typeSearchCompiler.HasRole Matches relations with a member of the given roleSearchCompiler.Id Matches objects with ID in the given range.SearchCompiler.InArea Matches objects within the given bounds.SearchCompiler.Incomplete Match objects that are incomplete, where only id and type are known.SearchCompiler.InDataSourceArea Matches objects within source area ("downloaded area").SearchCompiler.KeyValue Matches objects with the given key-value pair.SearchCompiler.MapCSSMatch SearchCompiler.Match Base class for all search criteria.SearchCompiler.MemberCountRange SearchCompiler.Modified Matches all objects that have been modified, created, or undeletedSearchCompiler.Never Never matches any OsmPrimitive.SearchCompiler.New Matches objects that are new (i.e.SearchCompiler.NodeCountRange Matches ways with a number of nodes in given rangeSearchCompiler.Not Inverts the match.SearchCompiler.NotOutsideDataSourceArea Matches objects which are not outside the source area ("downloaded area").SearchCompiler.Nth Matches the n-th object of a relation and/or the n-th node of a way.SearchCompiler.Or Matches if the left OR the right expression match.SearchCompiler.Parent Matches objects if they are parents of the expressionSearchCompiler.Preset Matches presets.SearchCompiler.RangeMatch Matches objects with properties in a certain range.SearchCompiler.RoleMatch Matches objects with the given relation role (i.e.SearchCompiler.Selected Matches all objects currently selectedSearchCompiler.TagCountRange Matches objects with a number of tags in given rangeSearchCompiler.TaggedMatch A common subclass ofSearchCompiler.Match
for matching against tagsSearchCompiler.TimestampRange Matches objects with a timestamp in given rangeSearchCompiler.UnaryMatch A unary search operator which may take data parameters.SearchCompiler.Untagged Matches objects that don't have any interesting tags (i.e.SearchCompiler.UserMatch Matches objects last changed by the given username.SearchCompiler.ValueComparison Match a primitive based off of a value comparison.SearchCompiler.Version Matches objects with a version number in the given range.SearchCompiler.WayCountRange Matches objects with the number of referring/contained ways in the given rangeSearchCompiler.WayLength Matches if the length of a way is within the given rangeSearchCompiler.Xor Matches if the left OR the right expression match, but not both.SearchSetting This class defines a set of parameters that is used to perform search within the search dialog. -
Enum Summary Enum Description PushbackTokenizer.Token The token types that may be readSearchCompiler.ExactKeyValue.Mode The mode to use for the comparisonSearchMode Search mode. -
Exception Summary Exception Description SearchParseError Search compiler parsing error.