|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.configuration.ConfigurationKey.KeyIterator
public class ConfigurationKey.KeyIterator
A specialized iterator class for tokenizing a configuration key. This class implements the normal iterator interface. In addition it provides some specific methods for configuration keys.
| Constructor Summary | |
|---|---|
ConfigurationKey.KeyIterator()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a clone of this object. |
String |
currentKey()
Returns the current key of the iteration (without skipping to the next element). |
String |
currentKey(boolean decorated)
Returns the current key of the iteration (without skipping to the next element). |
int |
getIndex()
Returns the index value of the current key. |
boolean |
hasIndex()
Returns a flag if the current key has an associated index. |
boolean |
hasNext()
Checks if there is a next element. |
boolean |
isAttribute()
Returns a flag if the current key is an attribute. |
Object |
next()
Returns the next object in the iteration. |
String |
nextKey()
Returns the next key part of this configuration key. |
String |
nextKey(boolean decorated)
Returns the next key part of this configuration key. |
void |
remove()
Removes the current object in the iteration. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationKey.KeyIterator()
| Method Detail |
|---|
public String nextKey()
nextKey(false).
public String nextKey(boolean decorated)
decorated - a flag if the decorated key is to be returned
public boolean hasNext()
hasNext in interface Iterator<Object>public Object next()
next in interface Iterator<Object>public void remove()
remove in interface Iterator<Object>public String currentKey()
next()
call had returned. (Short form of currentKey(false).
public String currentKey(boolean decorated)
decorated - a flag if the decorated key is to be returned
public boolean isAttribute()
next().
public int getIndex()
next().
public boolean hasIndex()
next().
public Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||