public interface ConfigKey
Modifier and Type | Field and Description |
---|---|
static SimpleKey |
EMPTY
Sentinal representing an empty key.
|
static char |
END_DELIM |
static char |
START_DELIM |
Modifier and Type | Method and Description |
---|---|
ConfigKey |
append(ConfigKey key)
Return a new key with the given key appended.
|
ConfigKey |
append(String... names)
Return a new key with the given segments appended.
|
SimpleKey |
head()
Return the first segment of this key.
|
boolean |
isChildOf(ConfigKey possibleParent)
Determine if this key is a child of the argument.
|
String |
name()
String representation of this key's name.
|
static ConfigKey |
of(String... parts)
Create a key from a series of names.
|
static ConfigKey |
parse(String str)
Parse a multi-segment key from a single string.
|
String |
propertyName()
String representation of this key's name in property format.
|
void |
replace(int position,
String name) |
ConfigKey |
subkey(int offset)
Return the subkey of this key from a given offset.
|
static final SimpleKey EMPTY
static final char START_DELIM
static final char END_DELIM
String name()
String propertyName()
SimpleKey head()
ConfigKey subkey(int offset)
offset
- The number of segments offset from the head to subkey.EMPTY
.ConfigKey append(String... names)
names
- The segments to append.ConfigKey append(ConfigKey key)
key
- The key to append.boolean isChildOf(ConfigKey possibleParent)
possibleParent
- The possible parent key.true
if this key is a child of the argument, otherwise false
.void replace(int position, String name)
static ConfigKey of(String... parts)
parts
- The segments.Copyright © 2019 JBoss by Red Hat. All rights reserved.