public interface Properties
extends org.refcodes.structure.CanonicalMap
Properties are a specialization of the Dictionary.
Properties represent a collection of String key and String
value pairs as properties usually occur in pure text form, to be converted to
the required data types. For this reason, the Properties interface
provides additional conversion methods.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Properties.MutableProperties
The interface
Properties.MutableProperties defines "dirty" methods allowing
to modify ("mutate") the properties. |
static interface |
Properties.PropertiesBuilder
The interface
Properties.PropertiesBuilder defines builder functionality on
top of the properties . |
org.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 |
|---|---|
static String |
DEFAULT_COMMENT |
| Modifier and Type | Method and Description |
|---|---|
Properties |
childrenOf(String aParentPath) |
default boolean |
containsValue(Object value) |
default Class<String> |
getType() |
default Properties |
retrieve(String aFromPath,
String aToPath) |
Properties |
retrieveFrom(String aFromPath) |
Properties |
retrieveTo(String aToPath) |
default Map<String,String> |
toMap()
This method creates a
Map instance from this Properties
instance's elements (key/value-pairs) as of interoperability reasons. |
default Properties |
toProperties()
This method creates a
Properties instance from this
Properties instance's elements (key/value-pairs) as of
interoperability reasons. |
default String |
toPropertyPath(String aPath)
Converts the properties for saving; that when saved, them properties will
not start with a delimiter, making them (when there are no sub-paths for
the properties) look just like normal well known properties, enabling
interchangeability with other systems reading the properties.
|
toInstance, toInstance, toType, toTypedirectories, 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, 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, useShortstatic final String DEFAULT_COMMENT
default Class<String> getType()
getType in interface org.refcodes.mixin.TypeAccessor<String>default Properties toProperties()
Properties instance from this
Properties instance's elements (key/value-pairs) as of
interoperability reasons.Properties object from the herein contained
key/value-pairs .default boolean containsValue(Object value)
default Map<String,String> toMap()
Map instance from this Properties
instance's elements (key/value-pairs) as of interoperability reasons.default String toPropertyPath(String aPath)
aPath - The path to be normalized.Properties retrieveFrom(String aFromPath)
retrieveFrom in interface org.refcodes.structure.CanonicalMapretrieveFrom in interface org.refcodes.structure.PathMap<String>Properties retrieveTo(String aToPath)
retrieveTo in interface org.refcodes.structure.CanonicalMapretrieveTo in interface org.refcodes.structure.PathMap<String>Properties childrenOf(String aParentPath)
childrenOf in interface org.refcodes.structure.CanonicalMapchildrenOf in interface org.refcodes.structure.PathMap<String>default Properties retrieve(String aFromPath, String aToPath)
retrieve in interface org.refcodes.structure.CanonicalMapretrieve in interface org.refcodes.structure.PathMap<String>Copyright © 2018. All rights reserved.