java.lang.Cloneable, java.util.Iterator<java.lang.Object>public class DefaultConfigurationKey.KeyIterator extends java.lang.Object implements java.util.Iterator<java.lang.Object>, java.lang.Cloneable
| Constructor | Description |
|---|---|
KeyIterator() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
clone() |
Creates a clone of this object.
|
java.lang.String |
currentKey() |
Returns the current key of the iteration (without skipping to the
next element).
|
java.lang.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.
|
boolean |
isPropertyKey() |
Returns a flag whether the current key refers to a property (i.e.
|
java.lang.Object |
next() |
Returns the next object in the iteration.
|
java.lang.String |
nextKey() |
Returns the next key part of this configuration key.
|
java.lang.String |
nextKey(boolean decorated) |
Returns the next key part of this configuration key.
|
void |
remove() |
Removes the current object in the iteration.
|
public KeyIterator()
public java.lang.String nextKey()
nextKey(false).public java.lang.String nextKey(boolean decorated)
decorated - a flag if the decorated key is to be returnedpublic boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Object>public java.lang.Object next()
next in interface java.util.Iterator<java.lang.Object>public void remove()
remove in interface java.util.Iterator<java.lang.Object>public java.lang.String currentKey()
next()
call had returned. (Short form of currentKey(false).public java.lang.String currentKey(boolean decorated)
decorated - a flag if the decorated key is to be returnedpublic boolean isAttribute()
next().public boolean isPropertyKey()
isAttribute(), but if the delimiters for
normal properties and attributes are set to the same string, it is
possible that both methods return true.isAttribute()public int getIndex()
next().public boolean hasIndex()
next().public java.lang.Object clone()
clone in class java.lang.Object