org.refcodes.structure.CanonicalMap
, org.refcodes.structure.Containable
, org.refcodes.mixin.DelimiterAccessor
, org.refcodes.structure.Dictionary<String,T>
, org.refcodes.mixin.Dumpable
, org.refcodes.structure.Keys<String,T>
, org.refcodes.structure.PathMap<String>
, org.refcodes.structure.PropertiesAccessorMixin
, org.refcodes.mixin.TypeAccessor<String>
ProfileProperties
, ProfileProperties.MutableProfileProperties
, ProfileProperties.ProfilePropertiesBuilder
, Properties.MutableProperties
, Properties.PropertiesBuilder
, PropertiesPrecedence
, PropertiesPrecedence.MutablePropertiesPrecedence
, PropertiesPrecedence.PropertiesPrecedenceBuilder
, ResourceProperties
, ResourceProperties.MutableResoureProperties
, ResourceProperties.ResourcePropertiesBuilder
, ScheduledResourceProperties
, ScheduledResourceProperties.ScheduledMuableResourceProperties
, ScheduledResourceProperties.ScheduledResourcePropertiesBuilder
, StrictProperties
, StrictProperties.MutableStrictProperties
, StrictProperties.StrictPropertiesBuilder
AbstractPropertiesBuilderDecorator
, AbstractPropertiesDecorator
, AbstractResourcePropertiesBuilder
, AbstractResourcePropertiesBuilderDecorator
, AbstractResourcePropertiesDecorator
, ArgsProperties
, EnvironmentProperties
, JavaProperties
, JavaPropertiesBuilder
, JsonProperties
, JsonPropertiesBuilder
, NormalizedPropertiesDecorator
, ProfilePropertiesDecorator
, ProfilePropertiesProjection
, PropertiesBuilderImpl
, PropertiesImpl
, PropertiesPrecedenceBuilderComposite
, PropertiesPrecedenceComposite
, ScheduledResourcePropertiesBuilderDecorator
, ScheduledResourcePropertiesDecorator
, StrictPropertiesDecorator
, SystemProperties
, TomlProperties
, TomlPropertiesBuilder
, XmlProperties
, XmlPropertiesBuilder
, YamlProperties
, YamlPropertiesBuilder
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 | 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.MutableCanonicalMap
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.structure.Dictionary.MutableDictionary<K extends Object,V extends Object>
org.refcodes.structure.Keys.MutableKeys<K extends Object,V extends Object>, org.refcodes.structure.Keys.MutableValues<K extends Object,V extends Object>
org.refcodes.structure.PathMap.MutablePathMap<T extends Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends Object>
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
Modifier and Type | Field | Description |
---|---|---|
static String |
DEFAULT_COMMENT |
Modifier and Type | Method | Description |
---|---|---|
Properties |
childrenOf(String aParentPath) |
|
default boolean |
containsValue(Object value) |
|
default char |
getDelimiter() |
Returns the default path delimiter as of
Delimiter.PATH . |
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, toType
containsKey, get, get, keySet, use, values
directories, directories, entries, entries, fromExternalKey, getArray, getArray, getRootPath, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath
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
static final String DEFAULT_COMMENT
default char getDelimiter()
Delimiter.PATH
.
getDelimiter
in interface org.refcodes.mixin.DelimiterAccessor
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.CanonicalMap
retrieveFrom
in interface org.refcodes.structure.PathMap<String>
Properties retrieveTo(String aToPath)
retrieveTo
in interface org.refcodes.structure.CanonicalMap
retrieveTo
in interface org.refcodes.structure.PathMap<String>
Properties childrenOf(String aParentPath)
childrenOf
in interface org.refcodes.structure.CanonicalMap
childrenOf
in interface org.refcodes.structure.PathMap<String>
default Properties retrieve(String aFromPath, String aToPath)
retrieve
in interface org.refcodes.structure.CanonicalMap
retrieve
in interface org.refcodes.structure.PathMap<String>
Copyright © 2018. All rights reserved.