Package org.refcodes.structure
Interface CanonicalMap.MutableCanonicalMap
-
- All Superinterfaces:
CanonicalMap
,Clearable
,Containable
,org.refcodes.mixin.DelimiterAccessor
,Dictionary<java.lang.String,T>
,Dictionary.MutableDictionary<java.lang.String,T>
,org.refcodes.mixin.Dumpable
,Keys<java.lang.String,T>
,Keys.MutableKeys<java.lang.String,T>
,Keys.MutableValues<java.lang.String,T>
,java.util.Map<java.lang.String,T>
,PathMap<java.lang.String>
,PathMap.MutablePathMap<java.lang.String>
,PropertiesAccessorMixin
,PropertiesAccessorMixin.PropertiesMutatorMixin
,org.refcodes.mixin.TypeAccessor<java.lang.String>
- All Known Subinterfaces:
CanonicalMap.CanonicalMapBuilder
- All Known Implementing Classes:
CanonicalMapBuilderImpl
- Enclosing interface:
- CanonicalMap
public static interface CanonicalMap.MutableCanonicalMap extends CanonicalMap, PathMap.MutablePathMap<java.lang.String>, PropertiesAccessorMixin.PropertiesMutatorMixin, java.util.Map<java.lang.String,java.lang.String>
The Interface MutableCanonicalMap.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.structure.CanonicalMap
CanonicalMap.CanonicalMapBuilder, 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
Dictionary.MutableDictionary<K,V>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Dictionary.MutableDictionary
Dictionary.MutableDictionary.DictionaryBuilder<K,V,B extends Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Keys
Keys.MutableKeys<K,V>, Keys.MutableValues<K,V>
-
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
PathMap.MutablePathMap<T>, PathMap.PathMapBuilder<T>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.PropertiesAccessorMixin
PropertiesAccessorMixin.PropertiesBuilderMixin<T>, PropertiesAccessorMixin.PropertiesMixin, PropertiesAccessorMixin.PropertiesMutatorMixin
-
-
Field Summary
-
Fields inherited from interface org.refcodes.structure.CanonicalMap
DEFAULT_COMMENT
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
containsValue(java.lang.Object value)
This method is defined for the sake ofMap
conformity.default java.lang.String
delete(java.lang.String aKey)
Removes an element identified by the given key.default void
insert(java.lang.String aToPath, CanonicalMap aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types.default void
insert(CanonicalMap aFrom)
Method to semantically emphasize that we support our own types.default void
insertFrom(CanonicalMap aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types.default void
insertTo(java.lang.String aToPath, CanonicalMap aFrom)
Method to semantically emphasize that we support our own types.default java.lang.String
put(Relation<java.lang.String,java.lang.String> aRelation)
Adds the given element related to the given key.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(CanonicalMap aProperties)
This method inserts all elements (key/value-pairs) found in the providedCanonicalMap
instances of interoperability reasons.default java.util.Map<java.lang.String,java.lang.String>
toDump(java.util.Map<java.lang.String,java.lang.String> aDump)
default java.lang.String
toSourceCode()
Beta, don't know whether to keep this or not: Creates a class (aString
text to be copy'n'pasted) with getters and setters for the herein contained paths and their values.default java.lang.String
toSourceCode(java.lang.String aClassName, java.lang.String aPackage)
Beta, don't know whether to keep this or not: Creates a class (aString
text to be copy'n'pasted) with getters and setters for the herein contained paths and their values.-
Methods inherited from interface org.refcodes.structure.CanonicalMap
getIndexed, getIndexed, query, query, queryFrom, queryTo, retrieve, retrieveFrom, retrieveFrom, retrieveFrom, retrieveTo, retrieveTo, retrieveTo, retrieveTo, toInstance, toInstance, toType, toType
-
Methods inherited from interface org.refcodes.structure.Containable
isEmpty, size
-
Methods inherited from interface org.refcodes.structure.Keys.MutableValues
put
-
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, retrieveFrom, toDataStructure, toDataStructure, toExternalKey, toMap, 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.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
-
Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
put, put, putBoolean, putBoolean, putByte, putByte, putDouble, putDouble, putFloat, putFloat, putInteger, putInteger, putLong, putLong, putShort, putShort
-
-
-
-
Method Detail
-
put
default java.lang.String put(Relation<java.lang.String,java.lang.String> aRelation)
Adds the given element related to the given key.- Specified by:
put
in interfaceDictionary.MutableDictionary<java.lang.String,T>
- Specified by:
put
in interfacePathMap.MutablePathMap<java.lang.String>
- Parameters:
aRelation
- the relation- Returns:
- The value being replaced by the provided value or null if none value has been replaced.
-
delete
default java.lang.String delete(java.lang.String aKey)
Removes an element identified by the given key.- Specified by:
delete
in interfaceKeys.MutableKeys<java.lang.String,T>
- Specified by:
delete
in interfacePathMap.MutablePathMap<java.lang.String>
- Parameters:
aKey
- The key which's element is to be removed.- Returns:
- The value being removed.
-
containsValue
default boolean containsValue(java.lang.Object value)
This method is defined for the sake ofMap
conformity. Tests whether the provided value has a key assigned.- Specified by:
containsValue
in interfaceCanonicalMap
- Specified by:
containsValue
in interfaceKeys<java.lang.String,T>
- Specified by:
containsValue
in interfacejava.util.Map<java.lang.String,T>
- Parameters:
value
- The value to test if a key references this value.- Returns:
- True in case the given value is referenced by a key.
-
putAll
default void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> aProperties)
- Specified by:
putAll
in interfacejava.util.Map<java.lang.String,T>
-
putAll
default void putAll(CanonicalMap aProperties)
This method inserts all elements (key/value-pairs) found in the providedCanonicalMap
instances of interoperability reasons.- Parameters:
aProperties
- ACanonicalMap
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.- Parameters:
aProperties
- AProperties
containing the key/value-pairs to be inserted.
-
toSourceCode
default java.lang.String toSourceCode()
Beta, don't know whether to keep this or not: Creates a class (aString
text to be copy'n'pasted) with getters and setters for the herein contained paths and their values.- Returns:
- The text representing the source code to be copy'n'pasted.
-
toSourceCode
default java.lang.String toSourceCode(java.lang.String aClassName, java.lang.String aPackage)
Beta, don't know whether to keep this or not: Creates a class (aString
text to be copy'n'pasted) with getters and setters for the herein contained paths and their values.- Parameters:
aClassName
- The class name for the class to be generated.aPackage
- The package to which the class is to belong.- Returns:
- The text representing the source code to be copy'n'pasted.
-
toDump
default java.util.Map<java.lang.String,java.lang.String> toDump(java.util.Map<java.lang.String,java.lang.String> aDump)
- Specified by:
toDump
in interfaceorg.refcodes.mixin.Dumpable
-
insert
default void insert(CanonicalMap aFrom)
Method to semantically emphasize that we support our own types. Actually delegates toPathMap.MutablePathMap.insert(Object)
.- Parameters:
aFrom
- TheCanonicalMap
which is to be inspected with the therein contained values being added with their according determined paths.
-
insertFrom
default void insertFrom(CanonicalMap aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types. Actually delegates toPathMap.MutablePathMap.insertFrom(Object, String)
.- Parameters:
aFrom
- TheCanonicalMap
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, CanonicalMap 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
- TheCanonicalMap
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, CanonicalMap 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
- TheCanonicalMap
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.
-
-