A - public interface AreaService<A extends AreaType> extends ConfigurationSource<String,A>
AreaTypeNAMESPACE_DELIM| Modifier and Type | Method and Description |
|---|---|
A |
getArea(String id,
String type)
For an
AreaType.getId() return the AreaType |
<O> O |
getAreas(String type)
Get a Map of all the areas, where the Key is defined by key for Area
getKey(AreaType) |
List |
getChildren(A area)
For a parent Area get children.
The List of children is implementation dependent. |
<K> K |
getKey(A area)
A consistent definition of what a key is for an Area.
|
A |
getParent(A subArea)
For a subArea A, what is the Area containing it.
|
get, get, get<O> O getAreas(String type)
getKey(AreaType)type - as String. An optional parameter that specifies area of which type/level to be fetched. Like region, country, state, zip etc.A getArea(String id, String type)
AreaType.getId() return the AreaTypeid - as Stringtype - as String. An optional parameter that specifies area of which type/level to be fetched. Like region, country, state, zip etc.AreaTypeA getParent(A subArea)
subArea - as AList getChildren(A area)
AreaType or a List of Lists (Tree).<K> K getKey(A area)
AreaType.getId()area - as ACopyright © 2018. All rights reserved.