Class AttributeNameTokenizer
- java.lang.Object
-
- org.eclipse.persistence.internal.mappings.converters.AttributeNameTokenizer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttributeNameTokenizer.TokensIterator
INTERNAL: Attribute name tokenizer parser implemented as anIterator<String>
over individual attribute name tokens.
-
Field Summary
Fields Modifier and Type Field Description static char
SEPARATOR
INTERNAL: Attribute name dot notation separator.
-
Constructor Summary
Constructors Constructor Description AttributeNameTokenizer(String attributeName)
INTERNAL: Creates an instance of attribute name tokenizer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getNameAfterKey(String attributeName)
INTERNAL: Return an attribute name withoutkey.
dot notation prefix.static String
getNameAfterVersion(String attributeName)
INTERNAL: Return an attribute name withoutvalue.
dot notation prefix.Iterator<String>
iterator()
INTERNAL: Returns anIterator<String>
over attribute name tokens.AttributeNameTokenizer.TokensIterator
tokensIterator()
INTERNAL: Returns anTokensIterator
over attribute name tokens.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
SEPARATOR
public static final char SEPARATOR
INTERNAL: Attribute name dot notation separator.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AttributeNameTokenizer
public AttributeNameTokenizer(String attributeName)
INTERNAL: Creates an instance of attribute name tokenizer.
-
-
Method Detail
-
getNameAfterVersion
public static String getNameAfterVersion(String attributeName)
INTERNAL: Return an attribute name withoutvalue.
dot notation prefix.- Parameters:
attributeName
- Attribute name containingvalue.
prefix.- Returns:
- Attribute name without
value.
prefix ornull
when no prefix was found.
-
getNameAfterKey
public static String getNameAfterKey(String attributeName)
INTERNAL: Return an attribute name withoutkey.
dot notation prefix.- Parameters:
attributeName
- Attribute name containingkey.
prefix.- Returns:
- Attribute name without
key.
prefix ornull
when no prefix was found.
-
iterator
public Iterator<String> iterator()
INTERNAL: Returns anIterator<String>
over attribute name tokens.
-
tokensIterator
public AttributeNameTokenizer.TokensIterator tokensIterator()
INTERNAL: Returns anTokensIterator
over attribute name tokens.- Returns:
- An
TokensIterator
over attribute name tokens.
-
-