public abstract class AbstractPreferencesNode extends Object implements PreferencesNode
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected PreferencesNode |
parent |
protected String |
path |
protected Preferences |
preferences |
PATH_SEPARATOR
Constructor and Description |
---|
AbstractPreferencesNode(Preferences preferences,
PreferencesNode parent,
String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsNode(Class<?> clazz) |
boolean |
containsNode(String path) |
boolean |
isRoot() |
PreferencesNode |
merge(PreferencesNode other) |
String |
name() |
PreferencesNode |
node(Class<?> clazz) |
PreferencesNode |
node(String path) |
PreferencesNode |
parent() |
protected String[] |
parsePath(String path) |
String |
path() |
PreferencesNode |
removeNode(Class<?> clazz) |
PreferencesNode |
removeNode(String path) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
children, clear, containsKey, createChildNode, getAs, getAs, getAt, getAt, getChildNode, getConverted, getConverted, keys, putAt, remove, removeChildNode, storeChildNode
protected final Preferences preferences
protected PreferencesNode parent
protected final String name
protected String path
public AbstractPreferencesNode(@Nonnull Preferences preferences, @Nullable PreferencesNode parent, @Nonnull String name)
@Nonnull public String name()
name
in interface PreferencesNode
@Nonnull public String path()
path
in interface PreferencesNode
@Nullable public PreferencesNode parent()
parent
in interface PreferencesNode
public boolean isRoot()
isRoot
in interface PreferencesNode
@Nonnull public PreferencesNode merge(@Nonnull PreferencesNode other)
merge
in interface PreferencesNode
public boolean containsNode(@Nonnull Class<?> clazz)
containsNode
in interface PreferencesNode
public boolean containsNode(@Nonnull String path)
containsNode
in interface PreferencesNode
@Nullable public PreferencesNode node(@Nonnull Class<?> clazz)
node
in interface PreferencesNode
@Nullable public PreferencesNode node(@Nonnull String path)
node
in interface PreferencesNode
@Nullable public PreferencesNode removeNode(@Nonnull Class<?> clazz)
removeNode
in interface PreferencesNode
@Nullable public PreferencesNode removeNode(@Nonnull String path)
removeNode
in interface PreferencesNode