| Modifier and Type | Class and Description |
|---|---|
| public static class | AttributeNameTokenizer.TokensIterator
INTERNAL:
Attribute name tokenizer parser implemented as an |
| Modifier and Type | Field and Description |
|---|---|
| private final String | attributeName
Attribute name to be parsed. |
| private static final Pattern | KEY_DOT_PATTERN
Regular expression matching |
| private static final String | PREFIX
Regular expression capturing group name for attribute name prefix. |
| public static final char | SEPARATOR
INTERNAL: Attribute name dot notation separator. |
| private static final Pattern | VALUE_DOT_PATTERN
Regular expression matching |
| Access | Constructor and Description |
|---|---|
| public | AttributeNameTokenizer(final String attributeName)
INTERNAL: Creates an instance of attribute name tokenizer. |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: Attribute name withoutkey. prefix or null when no prefix was found.Attribute name containing attributeName)key. prefix.INTERNAL:
Return an attribute name without |
| public static String | Returns: Attribute name withoutvalue. prefix or null when no prefix was found.Attribute name containing attributeName)value. prefix.INTERNAL:
Return an attribute name without |
| public Iterator | Returns: AnIterator<String> over attribute name tokens.Implements java. Iterator<String> over attribute name tokens.
|
| public AttributeNameTokenizer. | Returns: AnTokensIterator over attribute name tokens.INTERNAL:
Returns an |
| attributeName | back to summary |
|---|---|
| private final String attributeName Attribute name to be parsed. | |
| KEY_DOT_PATTERN | back to summary |
|---|---|
| private static final Pattern KEY_DOT_PATTERN Regular expression matching | |
| PREFIX | back to summary |
|---|---|
| private static final String PREFIX Regular expression capturing group name for attribute name prefix. | |
| SEPARATOR | back to summary |
|---|---|
| public static final char SEPARATOR INTERNAL: Attribute name dot notation separator. | |
| VALUE_DOT_PATTERN | back to summary |
|---|---|
| private static final Pattern VALUE_DOT_PATTERN Regular expression matching | |
| AttributeNameTokenizer | back to summary |
|---|---|
| public AttributeNameTokenizer(final String attributeName) INTERNAL: Creates an instance of attribute name tokenizer. | |
| getNameAfterKey | back to summary |
|---|---|
| public static String getNameAfterKey(final String attributeName) INTERNAL:
Return an attribute name without | |
| getNameAfterVersion | back to summary |
|---|---|
| public static String getNameAfterVersion(final String attributeName) INTERNAL:
Return an attribute name without | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. INTERNAL:
Returns an | |
| tokensIterator | back to summary |
|---|---|
| public AttributeNameTokenizer. INTERNAL:
Returns an
| |
Iterator<String> over individual attribute name tokens.
| Modifier and Type | Field and Description |
|---|---|
| private final Matcher | matcher
Regular expression matching engine. |
| private static final Pattern | NEXT_PATTERN
Regular expression used to parse attribute name and extract tokens from it. |
| private final AttributeNamePrefix | prefix
Prefix found in attribute name. |
| private static final Pattern | PREFIX_PATTERN
Regular expression used to parse attribute name and extract prefix and tokens from it. |
| private static final Pattern | SIMPLE_PATTERN
Regular expression used to parse attribute name and extract tokens from it. |
| private String | token
Next token to be returned. |
| Access | Constructor and Description |
|---|---|
| public | TokensIterator(final String
Attribute name to be parsed. attributeName)INTERNAL: Creates an instance of attribute name tokenizer iterator. |
| public | TokensIterator(final String
Attribute name to be parsed. attributeName, boolean Do search for attribute name prefixes ( isPrefix)"key." and "value.")?INTERNAL: Creates an instance of attribute name tokenizer iterator. |
| Modifier and Type | Method and Description |
|---|---|
| public AttributeNamePrefix | |
| public boolean | Returns: Value oftrue if the iteration has more elements or false otherwise.Implements java. true if the iteration has more elements.
|
| public String | Returns: The next attribute name token.Implements java. |
| public void | remove()
Overrides default java. |
| matcher | back to summary |
|---|---|
| private final Matcher matcher Regular expression matching engine. | |
| NEXT_PATTERN | back to summary |
|---|---|
| private static final Pattern NEXT_PATTERN Regular expression used to parse attribute name and extract tokens from it. There is just one capturing group:
| |
| prefix | back to summary |
|---|---|
| private final AttributeNamePrefix prefix Prefix found in attribute name. | |
| PREFIX_PATTERN | back to summary |
|---|---|
| private static final Pattern PREFIX_PATTERN Regular expression used to parse attribute name and extract prefix and tokens from it. There are two basic capturing groups:
| |
| SIMPLE_PATTERN | back to summary |
|---|---|
| private static final Pattern SIMPLE_PATTERN Regular expression used to parse attribute name and extract tokens from it. There is just one capturing group:
| |
| token | back to summary |
|---|---|
| private String token Next token to be returned. | |
| TokensIterator | back to summary |
|---|---|
| public TokensIterator(final String attributeName) INTERNAL:
Creates an instance of attribute name tokenizer iterator. Simple parser without prefix parsing will be used
so (
| |
| TokensIterator | back to summary |
|---|---|
| public TokensIterator(final String attributeName, boolean isPrefix) INTERNAL: Creates an instance of attribute name tokenizer iterator.
| |
| getPrefix | back to summary |
|---|---|
| public AttributeNamePrefix getPrefix() INTERNAL: Get attribute name prefix.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. INTERNAL:
Returns
| |
| next | back to summary |
|---|---|
| public String next() Implements java. INTERNAL: Return the next attribute name token from attribute name.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. INTERNAL: Removal of attribute name tokens makes no sense.
| |