public class KeyParser extends Object
| Constructor and Description |
|---|
KeyParser(String source)
Construct a
KeyParser for the specified string. |
KeyParser(String source,
int offset,
int size)
Construct a
KeyParser for a substring of the specified
string. |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Return the current index for parsing.
|
boolean |
parseKey(Key key)
Parse a key value from the string or substring from which this
KeyParser was constructed, modifying the supplied
Key to contain the result. |
KeyFilter |
parseKeyFilter()
Parse and returns a
KeyFilter from the string or substring
from which this KeyParser was constructed. |
public KeyParser(String source)
KeyParser for the specified string.source - The string to be parsed.public KeyParser(String source, int offset, int size)
KeyParser for a substring of the specified
string.source - The stringoffset - Offset of the first character of the substring to parsesize - Size of the substringpublic boolean parseKey(Key key)
KeyParser was constructed, modifying the supplied
Key to contain the result.true if the key value was parsed successfully.
false if the string or substring was invalid as a string representation
of a Key.public KeyFilter parseKeyFilter()
KeyFilter from the string or substring
from which this KeyParser was constructed.KeyFilter or null if the string or
substring was invalid as a string
representation of a KeyFilter.public int getIndex()
Copyright © 2025 Open Identity Platform Community. All rights reserved.