public enum SearchLevel extends Enum<SearchLevel>
| Enum Constant and Description |
|---|
ADMIN1 |
ADMIN2 |
ADMIN3 |
ADMIN4 |
ADMINX |
CITY |
COUNTRY |
| Modifier and Type | Method and Description |
|---|---|
QueryBuilder |
apply(QueryBuilder builder) |
SearchLevel |
broaden() |
boolean |
canNarrow() |
static SearchLevel |
forGeoName(GeoName name) |
String |
getCode(GeoName geoName) |
boolean |
isAdmin() |
SearchLevel |
narrow() |
static SearchLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchLevel COUNTRY
public static final SearchLevel ADMIN1
public static final SearchLevel ADMIN2
public static final SearchLevel ADMIN3
public static final SearchLevel ADMIN4
public static final SearchLevel ADMINX
public static final SearchLevel CITY
public static SearchLevel[] values()
for (SearchLevel c : SearchLevel.values()) System.out.println(c);
public static SearchLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static SearchLevel forGeoName(GeoName name)
public QueryBuilder apply(QueryBuilder builder)
public SearchLevel narrow()
public boolean canNarrow()
public SearchLevel broaden()
public boolean isAdmin()
Copyright © 2012–2014 Berico Technologies. All rights reserved.