T - The data typepublic interface NavigationLevel<T>
| Modifier and Type | Method and Description |
|---|---|
NavigationLevel<T> |
getChild()
Gets the child navigation level if any.
|
java.util.Map<java.lang.String,java.lang.Object> |
getContext()
Gets the context of this level if any.
|
T |
getCurrent()
Gets the data associated with the current key if any.
|
java.lang.String |
getCurrentKey()
Gets the current key.
|
java.util.Iterator<Pair<java.lang.String,T>> |
getItemIterator()
Gets the item iterator in this level.
|
java.util.List<Pair<java.lang.String,T>> |
getItems()
Gets the list of items in this level.
|
int |
getLevel()
Gets the level number.
|
NavigationLevel<T> |
navigateTo(java.lang.String key)
Navigates to the specified key in the current level.
|
NavigationLevel<T> |
setContext(java.util.Map<java.lang.String,java.lang.Object> context)
Sets the context of this level.
|
int getLevel()
java.util.Map<java.lang.String,java.lang.Object> getContext()
nullNavigationLevel<T> setContext(java.util.Map<java.lang.String,java.lang.Object> context)
context - the context mapjava.lang.String getCurrentKey()
null.nullT getCurrent()
nullNavigationLevel<T> getChild()
nullNavigationLevel<T> navigateTo(java.lang.String key)
key - the item keyjava.lang.IllegalArgumentException - if the key is invalid or not found in the leveljava.util.Iterator<Pair<java.lang.String,T>> getItemIterator()
Pair.getX() is the key, and Pair.getY() is the data.Copyright © 2005-2024 Potix Corporation. All Rights Reserved.