|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.i18n.server.RegionInheritance
public class RegionInheritance
Generated maps of regions into parent regions, used for locale inheritance. TODO(jat): make this actually be generated.
| Constructor Summary | |
|---|---|
RegionInheritance()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
findCommonParent(java.lang.String region1,
java.lang.String region2)
Finds the first region which is a common parent of two regions. |
static java.util.List<java.lang.String> |
getAllAncestors(java.lang.String child)
Returns a set of all ancestors of a given region, including the region itself, in order of inheritance (ie, this region first, top-most region last). |
static java.util.Set<java.lang.String> |
getImmediateParents(java.lang.String region)
Returns the set of immediate parents of a given region, not including this region. |
static boolean |
isParentOf(java.lang.String parent,
java.lang.String child)
Returns true if parent is equal to the child or is an ancestor. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegionInheritance()
| Method Detail |
|---|
public static java.lang.String findCommonParent(java.lang.String region1,
java.lang.String region2)
region1 - region2 -
public static java.util.List<java.lang.String> getAllAncestors(java.lang.String child)
child -
public static java.util.Set<java.lang.String> getImmediateParents(java.lang.String region)
region -
public static boolean isParentOf(java.lang.String parent,
java.lang.String child)
parent - child -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||