Package org.refcodes.configuration
Interface Properties.MutableProperties
-
- All Superinterfaces:
org.refcodes.structure.CanonicalMap
,org.refcodes.structure.CanonicalMap.MutableCanonicalMap
,org.refcodes.structure.Clearable
,org.refcodes.structure.Containable
,org.refcodes.mixin.DelimiterAccessor
,org.refcodes.structure.Dictionary<java.lang.String,T>
,org.refcodes.structure.Dictionary.MutableDictionary<java.lang.String,T>
,org.refcodes.mixin.Dumpable
,org.refcodes.structure.Keys<java.lang.String,T>
,org.refcodes.structure.Keys.MutableKeys<java.lang.String,T>
,org.refcodes.structure.Keys.MutableValues<java.lang.String,T>
,java.util.Map<java.lang.String,T>
,org.refcodes.structure.PathMap<java.lang.String>
,org.refcodes.structure.PathMap.MutablePathMap<java.lang.String>
,Properties
,org.refcodes.structure.PropertiesAccessorMixin
,org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
,org.refcodes.mixin.TypeAccessor<java.lang.String>
- All Known Subinterfaces:
ProfileProperties.MutableProfileProperties
,ProfileProperties.ProfilePropertiesBuilder
,Properties.PropertiesBuilder
,ResourceProperties.MutableResoureProperties
,ResourceProperties.ResourcePropertiesBuilder
,ScheduledResourceProperties.ScheduledMuableResourceProperties
,ScheduledResourceProperties.ScheduledResourcePropertiesBuilder
,StrictProperties.MutableStrictProperties
,StrictProperties.StrictPropertiesBuilder
- All Known Implementing Classes:
AbstractPropertiesBuilderDecorator
,AbstractResourcePropertiesBuilder
,AbstractResourcePropertiesBuilderDecorator
,JavaPropertiesBuilder
,JsonPropertiesBuilder
,PolyglotPropertiesBuilder
,PropertiesBuilderImpl
,ScheduledResourcePropertiesBuilderDecorator
,TomlPropertiesBuilder
,XmlPropertiesBuilder
,YamlPropertiesBuilder
- Enclosing interface:
- Properties
public static interface Properties.MutableProperties extends Properties, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
The interfaceProperties.MutableProperties
defines "dirty" methods allowing to modify ("mutate") the properties.
-
-
Nested Class Summary
-
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.Dictionary.MutableDictionary
org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<K extends java.lang.Object,V extends java.lang.Object,B extends org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>>
-
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 java.util.Map
java.util.Map.Entry<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.configuration.Properties
Properties.MutableProperties, Properties.PropertiesBuilder
-
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 inherited from interface org.refcodes.configuration.Properties
DEFAULT_COMMENT
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
containsValue(java.lang.Object value)
default java.lang.String
delete(java.lang.String aKey)
default java.lang.String
delete(org.refcodes.structure.Property aProperty)
Removes a property identified by the key of the providedProperty
(the value of theProperty
is ignored).default Properties
getIndexed(int aIndex)
default Properties
getIndexed(java.lang.String aPath, int aIndex)
default void
insert(java.lang.String aToPath, Properties aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types.default void
insert(Properties aFrom)
Method to semantically emphasize that we support our own types.default void
insertFrom(Properties aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types.default void
insertTo(java.lang.String aToPath, Properties aFrom)
Method to semantically emphasize that we support our own types.default java.lang.String
put(org.refcodes.structure.Relation<java.lang.String,java.lang.String> aRelation)
default void
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> aProperties)
default void
putAll(java.util.Properties aProperties)
This method inserts all elements (key/value-pairs) found in the providedProperties
instances of interoperability reasons.default void
putAll(Properties aProperties)
This method inserts all elements (key/value-pairs) found in the providedProperties
instances of interoperability reasons.-
Methods inherited from interface org.refcodes.structure.CanonicalMap
toInstance, toInstance, toType, toType
-
Methods inherited from interface org.refcodes.structure.CanonicalMap.MutableCanonicalMap
insert, insert, insertFrom, insertTo, putAll, toDump, toSourceCode, toSourceCode
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, entry, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, of, of, of, of, of, of, of, of, of, of, of, ofEntries, put, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from interface org.refcodes.structure.PathMap
children, children, children, directories, directories, directories, directories, directories, fromExternalKey, get, get, getArray, getArray, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getIndexes, getIndexes, getInteger, getInteger, getLong, getLong, getRootPath, getShort, getShort, hasChildren, hasChildren, hasChildren, hasIndexed, hasIndexed, hasParentPath, isArray, isArray, isArray, isArray, isArray, isChild, isChild, isChild, isDirectory, isDirectory, isDirectory, isDirectory, isIndexed, isIndexed, isPath, isRecord, isRecord, isRecord, isRecord, isRootPath, keySet, paths, paths, paths, paths, paths, queryPaths, records, records, records, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath, toPath
-
Methods inherited from interface org.refcodes.structure.PathMap.MutablePathMap
insert, insert, insert, insert, insertFrom, insertFrom, insertTo, insertTo, put, putArray, putArray, remove, remove, removeAll, removeAll, removeFrom, removeFrom, removeFrom, removeFrom
-
Methods inherited from interface org.refcodes.configuration.Properties
getDelimiter, getType, query, query, queryFrom, queryTo, retrieve, retrieveFrom, retrieveFrom, retrieveFrom, retrieveFrom, retrieveTo, retrieveTo, retrieveTo, retrieveTo, toMap, toProperties, toPropertyPath
-
Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin
asArray, asArray, asArray, asArray, asArray, asArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asByteArray, asByteArray, asByteArray, asByteArray, asByteArray, asByteArray, asCharacterArray, asCharacterArray, asCharacterArray, asCharacterArray, asCharacterArray, asCharacterArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asIntegerArray, asIntegerArray, asIntegerArray, asIntegerArray, asIntegerArray, asIntegerArray, asLongArray, asLongArray, asLongArray, asLongArray, asLongArray, asLongArray, asShortArray, asShortArray, asShortArray, asShortArray, asShortArray, asShortArray, containsKey, get, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getShort, getShort, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
-
-
-
-
Method Detail
-
put
default java.lang.String put(org.refcodes.structure.Relation<java.lang.String,java.lang.String> aRelation)
- Specified by:
put
in interfaceorg.refcodes.structure.CanonicalMap.MutableCanonicalMap
- Specified by:
put
in interfaceorg.refcodes.structure.Dictionary.MutableDictionary<java.lang.String,T extends java.lang.Object>
- Specified by:
put
in interfaceorg.refcodes.structure.PathMap.MutablePathMap<java.lang.String>
-
delete
default java.lang.String delete(java.lang.String aKey)
- Specified by:
delete
in interfaceorg.refcodes.structure.CanonicalMap.MutableCanonicalMap
- Specified by:
delete
in interfaceorg.refcodes.structure.Keys.MutableKeys<java.lang.String,T extends java.lang.Object>
- Specified by:
delete
in interfaceorg.refcodes.structure.PathMap.MutablePathMap<java.lang.String>
-
delete
default java.lang.String delete(org.refcodes.structure.Property aProperty)
Removes a property identified by the key of the providedProperty
(the value of theProperty
is ignored).- Parameters:
aProperty
- TheProperty
which's key is to be removed.- Returns:
- The removed value of the key or null if there was not such a key.
-
containsValue
default boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfaceorg.refcodes.structure.CanonicalMap
- Specified by:
containsValue
in interfaceorg.refcodes.structure.CanonicalMap.MutableCanonicalMap
- Specified by:
containsValue
in interfaceorg.refcodes.structure.Keys<java.lang.String,T extends java.lang.Object>
- Specified by:
containsValue
in interfacejava.util.Map<java.lang.String,T extends java.lang.Object>
- Specified by:
containsValue
in interfaceProperties
-
putAll
default void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> aProperties)
- Specified by:
putAll
in interfaceorg.refcodes.structure.CanonicalMap.MutableCanonicalMap
- Specified by:
putAll
in interfacejava.util.Map<java.lang.String,T extends java.lang.Object>
-
putAll
default void putAll(Properties aProperties)
This method inserts all elements (key/value-pairs) found in the providedProperties
instances of interoperability reasons.- Parameters:
aProperties
- AProperties
containing the key/value pairs to be inserted.
-
putAll
default void putAll(java.util.Properties aProperties)
This method inserts all elements (key/value-pairs) found in the providedProperties
instances of interoperability reasons.- Specified by:
putAll
in interfaceorg.refcodes.structure.CanonicalMap.MutableCanonicalMap
- Parameters:
aProperties
- AProperties
containing the key/value-pairs to be inserted.
-
insert
default void insert(Properties aFrom)
Method to semantically emphasize that we support our own types. Actually delegates toPathMap.MutablePathMap.insert(Object)
.- Parameters:
aFrom
- TheProperties
which is to be inspected with the therein contained values being added with their according determined paths.
-
insertFrom
default void insertFrom(Properties aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types. Actually delegates toPathMap.MutablePathMap.insertFrom(Object, String)
.- Parameters:
aFrom
- TheProperties
which is to be inspected with the therein contained values being added with their according determined paths.aFromPath
- The path from where to start adding elements of the provided object.
-
insertTo
default void insertTo(java.lang.String aToPath, Properties aFrom)
Method to semantically emphasize that we support our own types. Actually delegates toPathMap.MutablePathMap.insertTo(String, Object)
.- Parameters:
aToPath
- The sub-path where to insert the object's introspected values to.aFrom
- TheProperties
which is to be inspected with the therein contained values being added with their according determined paths.
-
insert
default void insert(java.lang.String aToPath, Properties aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types. Actually delegates toPathMap.MutablePathMap.insert(String, Object, String)
.- Parameters:
aToPath
- The sub-path where to insert the object's introspected values to.aFrom
- TheProperties
which is to be inspected with the therein contained values being added with their according determined paths.aFromPath
- The path from where to start adding elements of the provided object.
-
getIndexed
default Properties getIndexed(int aIndex)
- Specified by:
getIndexed
in interfaceorg.refcodes.structure.CanonicalMap
- Specified by:
getIndexed
in interfaceorg.refcodes.structure.PathMap<java.lang.String>
- Specified by:
getIndexed
in interfaceProperties
-
getIndexed
default Properties getIndexed(java.lang.String aPath, int aIndex)
- Specified by:
getIndexed
in interfaceorg.refcodes.structure.CanonicalMap
- Specified by:
getIndexed
in interfaceorg.refcodes.structure.PathMap<java.lang.String>
- Specified by:
getIndexed
in interfaceProperties
-
-