public class PropertiesBuilderImpl extends org.refcodes.structure.PathMapBuilderImpl<String> implements Properties.PropertiesBuilder
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Properties.MutableProperties, Properties.PropertiesBuilder
org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
org.refcodes.structure.PathMap.MutablePathMap<T>, org.refcodes.structure.PathMap.PathMapBuilder<T>
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
org.refcodes.mixin.TypeAccessor.TypeMutator<T>, org.refcodes.mixin.TypeAccessor.TypeProperty<T>
DEFAULT_COMMENT
Constructor and Description |
---|
PropertiesBuilderImpl()
Create an empty
Properties.PropertiesBuilder instance using the default path
delimiter "/" (Delimiter.PATH ) for the path declarations. |
PropertiesBuilderImpl(Map<?,?> aProperties)
Create a
Properties.PropertiesBuilder instance containing the elements of
the provided Map instance using the default path delimiter "/"
(Delimiter.PATH ) for the path declarations |
PropertiesBuilderImpl(Object aObj)
Create a
Properties.PropertiesBuilder 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. |
PropertiesBuilderImpl(Properties.PropertiesBuilder aProperties)
Create a
Properties.PropertiesBuilder instance containing the elements of
the provided Properties instance using the default path delimiter
"/" (Delimiter.PATH ) for the path declarations |
PropertiesBuilderImpl(Properties aProperties)
Create a
Properties.PropertiesBuilder instance containing the elements of
the provided Properties instance using the default path delimiter
"/" (Delimiter.PATH ) for the path declarations |
PropertiesBuilderImpl(org.refcodes.structure.Property... aProperties)
Create a
Properties.PropertiesBuilder instance containing the provided
Property instances' key/value-pairs. |
Modifier and Type | Method and Description |
---|---|
Properties |
childrenOf(String aParentPath) |
Properties |
retrieveFrom(String aFromPath) |
Properties |
retrieveTo(String aToPath) |
compute, computeIfAbsent, computeIfPresent, containsKey, get, getDelimiter, getOrDefault, getType, merge, put, putIfAbsent, remove, remove, replace, replace, toDataStructure
clear, clone, containsValue, entrySet, forEach, isEmpty, keySet, putAll, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
withInsert, withInsert, withInsert, withInsert, withInsertFrom, withInsertFrom, withInsertTo, withInsertTo, withPut, withPut, withPutBoolean, withPutByte, withPutDouble, withPutFloat, withPutInteger, withPutLong, withPutShort, withRemoveFrom
withInsert, withInsert, withInsertFrom, withInsertTo
withInsert, withInsert, withInsertFrom, withInsertTo
withPut
put, put, putBoolean, putBoolean, putByte, putByte, putDouble, putDouble, putFloat, putFloat, putInteger, putInteger, putLong, putLong, putShort, putShort
containsValue, delete, delete, insert, insert, insertFrom, insertTo, put, putAll, putAll, putAll
getType, retrieve, toMap, toProperties, toPropertyPath
insert, insert, insertFrom, insertTo, putAll, toDump, toSourceCode, toSourceCode
toInstance, toInstance, toType, toType
containsKey, 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, useShort
insert, insert, insert, insert, insertFrom, insertFrom, insertTo, insertTo, put, putArray, putArray, removeAll
directories, directories, entries, entries, fromExternalKey, getArray, getArray, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath, toRootPath
public PropertiesBuilderImpl()
Properties.PropertiesBuilder
instance using the default path
delimiter "/" (Delimiter.PATH
) for the path declarations.public PropertiesBuilderImpl(Object aObj)
Properties.PropertiesBuilder
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 PropertiesBuilderImpl(Properties aProperties)
Properties.PropertiesBuilder
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 PropertiesBuilderImpl(Properties.PropertiesBuilder aProperties)
Properties.PropertiesBuilder
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 PropertiesBuilderImpl(Map<?,?> aProperties)
Properties.PropertiesBuilder
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 PropertiesBuilderImpl(org.refcodes.structure.Property... aProperties)
Properties.PropertiesBuilder
instance containing the provided
Property
instances' key/value-pairs.aProperties
- the properties to be added.public Properties retrieveFrom(String aFromPath)
retrieveFrom
in interface Properties
retrieveFrom
in interface org.refcodes.structure.CanonicalMap
retrieveFrom
in interface org.refcodes.structure.PathMap<String>
retrieveFrom
in class org.refcodes.structure.PathMapBuilderImpl<String>
public Properties retrieveTo(String aToPath)
retrieveTo
in interface Properties
retrieveTo
in interface org.refcodes.structure.CanonicalMap
retrieveTo
in interface org.refcodes.structure.PathMap<String>
retrieveTo
in class org.refcodes.structure.PathMapBuilderImpl<String>
public Properties childrenOf(String aParentPath)
childrenOf
in interface Properties
childrenOf
in interface org.refcodes.structure.CanonicalMap
childrenOf
in interface org.refcodes.structure.PathMap<String>
childrenOf
in class org.refcodes.structure.PathMapBuilderImpl<String>
Copyright © 2018. All rights reserved.