public class PropertiesImpl extends Object implements Properties
Properties.MutableProperties, Properties.PropertiesBuilderorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMaporg.refcodes.structure.PathMap.MutablePathMap<T>, org.refcodes.structure.PathMap.PathMapBuilder<T>org.refcodes.structure.Dictionary.MutableDictionary<K,V>org.refcodes.structure.Keys.MutableKeys<K,V>, org.refcodes.structure.Keys.MutableValues<K,V>org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterPropertyorg.refcodes.mixin.TypeAccessor.TypeMutator<T>, org.refcodes.mixin.TypeAccessor.TypeProperty<T>org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin| Modifier and Type | Field and Description |
|---|---|
protected Properties.PropertiesBuilder |
_properties |
DEFAULT_COMMENT| Modifier | Constructor and Description |
|---|---|
protected |
PropertiesImpl() |
|
PropertiesImpl(Map<?,?> aProperties)
Create a
Properties instance containing the elements of the
provided Map instance using the default path delimiter "/"
(Delimiter.PATH) for the path declarations |
|
PropertiesImpl(Object aObj)
Create a
Properties instance containing the elements as of
MutablePathMap#insert(Object) using the default path delimiter
"/" (Delimiter.PATH) for the path declarations:
"Inspects the given object and adds all elements found in the given
object. |
|
PropertiesImpl(Properties aProperties)
Create a
Properties instance containing the elements of the
provided Properties instance using the default path delimiter "/"
(Delimiter.PATH) for the path declarations |
|
PropertiesImpl(org.refcodes.structure.Property... aProperties)
Create a
Properties instance containing the provided
Property instances' key/value-pairs. |
| Modifier and Type | Method and Description |
|---|---|
Properties |
childrenOf(String aParentPath) |
boolean |
containsKey(Object aKey) |
String |
get(Object aKey) |
char |
getDelimiter() |
Class<String> |
getType() |
boolean |
isEmpty() |
Set<String> |
keySet() |
Properties |
retrieveFrom(String aFromPath) |
Properties |
retrieveTo(String aToPath) |
int |
size() |
Object |
toDataStructure(String aPath) |
Collection<String> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsValue, retrieve, toMap, toProperties, toPropertyPathtoInstance, toInstance, toType, toTypedirectories, directories, entries, entries, fromExternalKey, getArray, getArray, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath, toRootPathcontainsKey, get, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShortprotected Properties.PropertiesBuilder _properties
protected PropertiesImpl()
public PropertiesImpl(Object aObj)
Properties instance containing the elements as of
MutablePathMap#insert(Object) using the default path delimiter
"/" (Delimiter.PATH) for the path declarations:
"Inspects the given object and adds all elements found in the given
object. Elements of type Map, Collection and arrays are
identified and handled as of their type: The path for each value in a
Map is appended with its according key. The path for each value
in a Collection or array is appended with its according index of
occurrence (in case of a List or an array, its actual index). In
case of reflection, the path for each member is appended with its
according mamber's name. All elements (e.g. the members and values) are
inspected recursively which results in the according paths of the
terminating values."aObj - The object from which the elements are to be added.public PropertiesImpl(Properties aProperties)
Properties instance containing the elements of the
provided Properties instance using the default path delimiter "/"
(Delimiter.PATH) for the path declarationsaProperties - the properties to be added.public PropertiesImpl(Map<?,?> aProperties)
Properties instance containing the elements of the
provided Map instance using the default path delimiter "/"
(Delimiter.PATH) for the path declarationsaProperties - the properties to be added.public PropertiesImpl(org.refcodes.structure.Property... aProperties)
Properties instance containing the provided
Property instances' key/value-pairs.aProperties - the properties to be added.public boolean containsKey(Object aKey)
public Collection<String> values()
public int size()
size in interface org.refcodes.structure.Containablepublic boolean isEmpty()
isEmpty in interface org.refcodes.structure.Containablepublic Properties retrieveFrom(String aFromPath)
retrieveFrom in interface PropertiesretrieveFrom in interface org.refcodes.structure.CanonicalMapretrieveFrom in interface org.refcodes.structure.PathMap<String>public Properties retrieveTo(String aToPath)
retrieveTo in interface PropertiesretrieveTo in interface org.refcodes.structure.CanonicalMapretrieveTo in interface org.refcodes.structure.PathMap<String>public Properties childrenOf(String aParentPath)
childrenOf in interface PropertieschildrenOf in interface org.refcodes.structure.CanonicalMapchildrenOf in interface org.refcodes.structure.PathMap<String>public char getDelimiter()
getDelimiter in interface org.refcodes.mixin.DelimiterAccessorpublic Class<String> getType()
getType in interface PropertiesgetType in interface org.refcodes.mixin.TypeAccessor<String>Copyright © 2018. All rights reserved.