Package org.refcodes.configuration
Interface Properties
-
- All Superinterfaces:
org.refcodes.structure.CanonicalMap
,org.refcodes.structure.Containable
,org.refcodes.mixin.DelimiterAccessor
,org.refcodes.structure.Dictionary<java.lang.String,java.lang.String>
,org.refcodes.mixin.Dumpable
,org.refcodes.structure.Keys<java.lang.String,java.lang.String>
,org.refcodes.structure.PathMap<java.lang.String>
,org.refcodes.structure.PropertiesAccessorMixin
,org.refcodes.mixin.TypeAccessor<java.lang.String>
- All Known Subinterfaces:
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
- All Known Implementing Classes:
AbstractPropertiesBuilderDecorator
,AbstractPropertiesDecorator
,AbstractResourcePropertiesBuilder
,AbstractResourcePropertiesBuilderDecorator
,AbstractResourcePropertiesDecorator
,ArgsProperties
,EnvironmentProperties
,JavaProperties
,JavaPropertiesBuilder
,JsonProperties
,JsonPropertiesBuilder
,NormalizedPropertiesDecorator
,PolyglotProperties
,PolyglotPropertiesBuilder
,ProfilePropertiesDecorator
,ProfilePropertiesProjection
,PropertiesBuilderImpl
,PropertiesImpl
,PropertiesPrecedenceBuilderComposite
,PropertiesPrecedenceComposite
,ScheduledResourcePropertiesBuilderDecorator
,ScheduledResourcePropertiesDecorator
,StrictPropertiesDecorator
,SystemProperties
,TomlProperties
,TomlPropertiesBuilder
,XmlProperties
,XmlPropertiesBuilder
,YamlProperties
,YamlPropertiesBuilder
public interface Properties extends org.refcodes.structure.CanonicalMap
TheProperties
are a specialization of theDictionary
. Properties represent a collection ofString
key andString
value pairs as properties usually occur in pure text form, to be converted to the required data types. For this reason, theProperties
interface provides additional conversion methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Properties.MutableProperties
The interfaceProperties.MutableProperties
defines "dirty" methods allowing to modify ("mutate") the properties.static interface
Properties.PropertiesBuilder
The interfaceProperties.PropertiesBuilder
defines builder functionality on top of the properties .-
Nested classes/interfaces inherited from interface org.refcodes.structure.CanonicalMap
org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.DelimiterAccessor
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Dictionary
org.refcodes.structure.Dictionary.MutableDictionary<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Keys
org.refcodes.structure.Keys.MutableKeys<K extends java.lang.Object,V extends java.lang.Object>, org.refcodes.structure.Keys.MutableValues<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.PathMap
org.refcodes.structure.PathMap.MutablePathMap<T extends java.lang.Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.PropertiesAccessorMixin
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends java.lang.Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_COMMENT
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Properties
childrenOf(java.lang.String aParentPath)
default boolean
containsValue(java.lang.Object value)
default char
getDelimiter()
Returns the default path delimiter as ofDelimiter.PATH
.default java.lang.Class<java.lang.String>
getType()
default Properties
retrieve(java.lang.String aFromPath, java.lang.String aToPath)
Properties
retrieveFrom(java.lang.String aFromPath)
Properties
retrieveTo(java.lang.String aToPath)
default java.util.Map<java.lang.String,java.lang.String>
toMap()
This method creates aMap
instance from thisProperties
instance's elements (key/value-pairs) as of interoperability reasons.default java.util.Properties
toProperties()
This method creates aProperties
instance from thisProperties
instance's elements (key/value-pairs) as of interoperability reasons.default java.lang.String
toPropertyPath(java.lang.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.-
Methods inherited from interface org.refcodes.structure.CanonicalMap
toInstance, toInstance, toType, toType
-
Methods inherited from interface org.refcodes.structure.Keys
containsKey, get, get, keySet, use, values
-
Methods inherited from interface org.refcodes.structure.PathMap
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
-
Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin
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
-
-
-
-
Method Detail
-
getDelimiter
default char getDelimiter()
Returns the default path delimiter as ofDelimiter.PATH
.- Specified by:
getDelimiter
in interfaceorg.refcodes.mixin.DelimiterAccessor
-
getType
default java.lang.Class<java.lang.String> getType()
- Specified by:
getType
in interfaceorg.refcodes.mixin.TypeAccessor<java.lang.String>
-
toProperties
default java.util.Properties toProperties()
This method creates aProperties
instance from thisProperties
instance's elements (key/value-pairs) as of interoperability reasons.- Returns:
- A
Properties
object from the herein contained key/value-pairs .
-
containsValue
default boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfaceorg.refcodes.structure.CanonicalMap
- Specified by:
containsValue
in interfaceorg.refcodes.structure.Keys<java.lang.String,java.lang.String>
-
toMap
default java.util.Map<java.lang.String,java.lang.String> toMap()
This method creates aMap
instance from thisProperties
instance's elements (key/value-pairs) as of interoperability reasons.- Specified by:
toMap
in interfaceorg.refcodes.structure.PathMap<java.lang.String>
- Returns:
- A
Map
object from the herein contained key/value-pairs .
-
toPropertyPath
default java.lang.String toPropertyPath(java.lang.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.- Parameters:
aPath
- The path to be normalized.- Returns:
- The normalized path; afterwards it does not start with a delimiter any more.
-
retrieveFrom
Properties retrieveFrom(java.lang.String aFromPath)
- Specified by:
retrieveFrom
in interfaceorg.refcodes.structure.CanonicalMap
- Specified by:
retrieveFrom
in interfaceorg.refcodes.structure.PathMap<java.lang.String>
-
retrieveTo
Properties retrieveTo(java.lang.String aToPath)
- Specified by:
retrieveTo
in interfaceorg.refcodes.structure.CanonicalMap
- Specified by:
retrieveTo
in interfaceorg.refcodes.structure.PathMap<java.lang.String>
-
childrenOf
Properties childrenOf(java.lang.String aParentPath)
- Specified by:
childrenOf
in interfaceorg.refcodes.structure.CanonicalMap
- Specified by:
childrenOf
in interfaceorg.refcodes.structure.PathMap<java.lang.String>
-
retrieve
default Properties retrieve(java.lang.String aFromPath, java.lang.String aToPath)
- Specified by:
retrieve
in interfaceorg.refcodes.structure.CanonicalMap
- Specified by:
retrieve
in interfaceorg.refcodes.structure.PathMap<java.lang.String>
-
-