public static final class AttributeNameTokenizer.TokensIterator
extends java.lang.Object
implements java.util.Iterator<java.lang.String>
Iterator
over individual attribute name tokens.Constructor and Description |
---|
TokensIterator(java.lang.String attributeName)
INTERNAL:
Creates an instance of attribute name tokenizer iterator.
|
TokensIterator(java.lang.String attributeName,
boolean isPrefix)
INTERNAL:
Creates an instance of attribute name tokenizer iterator.
|
Modifier and Type | Method and Description |
---|---|
AttributeNamePrefix |
getPrefix()
INTERNAL:
Get attribute name prefix.
|
boolean |
hasNext()
INTERNAL:
Returns
true if the iteration has more elements. |
java.lang.String |
next()
INTERNAL:
Return the next attribute name token from attribute name.
|
void |
remove()
INTERNAL:
Removal of attribute name tokens makes no sense.
|
public TokensIterator(java.lang.String attributeName)
"key."
and "value."
) will be returned as regular attribute name tokens.attributeName
- Attribute name to be parsed.public TokensIterator(java.lang.String attributeName, boolean isPrefix)
attributeName
- Attribute name to be parsed.isPrefix
- Do search for attribute name prefixes ("key."
and "value."
)?public AttributeNamePrefix getPrefix()
public boolean hasNext()
true
if the iteration has more elements. In other words, returns true
if next()
would return an element rather than throwing an exception.hasNext
in interface java.util.Iterator<java.lang.String>
true
if the iteration has more elements or false
otherwise.public java.lang.String next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator<java.lang.String>
java.util.NoSuchElementException
- when attribute name has no more tokens.public void remove()
remove
in interface java.util.Iterator<java.lang.String>
java.lang.UnsupportedOperationException
- is always thrown on invocation.EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference