Package org.refcodes.structure
Interface CanonicalMap
-
- All Superinterfaces:
org.refcodes.mixin.AnnotatorAccessor,Containable,org.refcodes.mixin.DelimiterAccessor,Dictionary<java.lang.String,T>,org.refcodes.mixin.Dumpable,Keys<java.lang.String,T>,PathMap<java.lang.String>,PropertiesAccessorMixin,org.refcodes.mixin.TypeAccessor<java.lang.String>
- All Known Subinterfaces:
CanonicalMap.CanonicalMapBuilder,CanonicalMap.MutableCanonicalMap
- All Known Implementing Classes:
CanonicalMapBuilderImpl,CanonicalMapImpl
public interface CanonicalMap extends PathMap<java.lang.String>, PropertiesAccessorMixin
TheCanonicalMapis an "intermediate" type adding type and Data-Structure related functionality to any implementing class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCanonicalMap.CanonicalMapBuilderThe Interface CanonicalMapBuilder.static interfaceCanonicalMap.MutableCanonicalMapThe Interface MutableCanonicalMap.-
Nested classes/interfaces inherited from interface org.refcodes.mixin.AnnotatorAccessor
org.refcodes.mixin.AnnotatorAccessor.AnnotatorBuilder<B extends org.refcodes.mixin.AnnotatorAccessor.AnnotatorBuilder<B>>, org.refcodes.mixin.AnnotatorAccessor.AnnotatorMutator, org.refcodes.mixin.AnnotatorAccessor.AnnotatorProperty
-
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.Keys
Keys.MutableKeys<K,V>, Keys.MutableValues<K,V>
-
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 Modifier and Type Field Description static java.lang.StringDEFAULT_COMMENT
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleancontainsValue(java.lang.Object value)This method is defined for the sake ofMapconformity.default java.lang.BooleangetBoolean(java.lang.Object... aPathElements)Returns theBooleanvalue of the property referred to by the path elements.default java.lang.BooleangetBoolean(java.lang.String... aPathElements)Returns theBooleanvalue of the property referred to by the path elements.default java.lang.BooleangetBooleanOr(java.lang.Object[] aPathElements, java.lang.Boolean aDefaultValue)Returns theBooleanvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.BooleangetBooleanOr(java.lang.String[] aPathElements, java.lang.Boolean aDefaultValue)Returns theBooleanvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.BytegetByte(java.lang.Object... aPathElements)Returns theBytevalue of the property referred to by the path elements.default java.lang.BytegetByte(java.lang.String... aPathElements)Returns theBytevalue of the property referred to by the path elements.default java.lang.BytegetByteOr(java.lang.Object[] aPathElements, java.lang.Byte aDefaultValue)Returns theBytevalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.BytegetByteOr(java.lang.String[] aPathElements, java.lang.Byte aDefaultValue)Returns theBytevalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.CharactergetCharacter(java.lang.Object... aPathElements)Returns theCharactervalue of the property referred to by the path elements.default java.lang.CharactergetCharacter(java.lang.String... aPathElements)Returns theCharactervalue of the property referred to by the key.default java.lang.CharactergetCharacterOr(java.lang.Object[] aPathElements, java.lang.Character aDefaultValue)Returns theCharactervalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.CharactergetCharacterOr(java.lang.String[] aPathElements, java.lang.Character aDefaultValue)Returns theCharactervalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default CanonicalMapgetDirAt(int aIndex)An indexed directory represents all elements which begin with a path which's last path element represents an index.default CanonicalMapgetDirAt(java.lang.String aPath, int aIndex)An indexed directory represents all elements which begin with a path which's last path element represents an index.default java.lang.DoublegetDouble(java.lang.Object... aPathElements)Returns theDoublevalue of the property referred to by the path elements.default java.lang.DoublegetDouble(java.lang.String... aPathElements)Returns theDoublevalue of the property referred to by the path elements.default java.lang.DoublegetDoubleOr(java.lang.Object[] aPathElements, java.lang.Double aDefaultValue)Returns theDoublevalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.DoublegetDoubleOr(java.lang.String[] aPathElements, java.lang.Double aDefaultValue)Returns theDoublevalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.FloatgetFloat(java.lang.Object... aPathElements)Returns theFloatvalue of the property referred to by the path elements.default java.lang.FloatgetFloat(java.lang.String... aPathElements)Returns theFloatvalue of the property referred to by the path elements.default java.lang.FloatgetFloatOr(java.lang.Object[] aPathElements, java.lang.Float aDefaultValue)Returns theFloatvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.FloatgetFloatOr(java.lang.String[] aPathElements, java.lang.Float aDefaultValue)Returns theFloatvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.IntegergetInteger(java.lang.Object... aPathElements)Returns theIntegervalue of the property referred to by the path elements.default java.lang.IntegergetInteger(java.lang.String... aPathElements)Returns theIntegervalue of the property referred to by the path elements.default java.lang.IntegergetIntegerOr(java.lang.Object[] aPathElements, java.lang.Integer aDefaultValue)Returns theIntegervalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.IntegergetIntegerOr(java.lang.String[] aPathElements, java.lang.Integer aDefaultValue)Returns theIntegervalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.LonggetLong(java.lang.Object... aPathElements)Returns theLongvalue of the property referred to by the path elements.default java.lang.LonggetLong(java.lang.String... aPathElements)Returns theLongvalue of the property referred to by the path elements.default java.lang.LonggetLongOr(java.lang.Object[] aPathElements, java.lang.Long aDefaultValue)Returns theLongvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.LonggetLongOr(java.lang.String[] aPathElements, java.lang.Long aDefaultValue)Returns theLongvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.ShortgetShort(java.lang.Object... aPathElements)Returns theShortvalue of the property referred to by the path elements.default java.lang.ShortgetShort(java.lang.String... aPathElements)Returns theShortvalue of the property referred to by the path elements.default java.lang.ShortgetShortOr(java.lang.Object[] aPathElements, java.lang.Short aDefaultValue)Returns theShortvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default java.lang.ShortgetShortOr(java.lang.String[] aPathElements, java.lang.Short aDefaultValue)Returns theShortvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path.default CanonicalMapquery(java.lang.Object... aQueryElements)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapquery(java.lang.String aPathQuery)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapquery(java.lang.String... aQueryElements)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapquery(java.util.Collection<?> aQueryElements)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryBetween(java.lang.Object[] aFromPath, java.lang.Object[] aPathQuery, java.lang.Object[] aToPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryBetween(java.lang.Object aFromPath, java.lang.Object aPathQuery, java.lang.Object aToPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryBetween(java.lang.String[] aFromPath, java.lang.String[] aPathQuery, java.lang.String[] aToPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryBetween(java.lang.String aFromPath, java.lang.String aPathQuery, java.lang.String aToPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryBetween(java.util.Collection<?> aFromPath, java.util.Collection<?> aPathQuery, java.util.Collection<?> aToPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryFrom(java.lang.Object[] aPathQuery, java.lang.Object[] aFromPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryFrom(java.lang.Object aPathQuery, java.lang.Object aFromPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryFrom(java.lang.String[] aPathQuery, java.lang.String[] aFromPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryFrom(java.lang.String aPathQuery, java.lang.String aFromPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryFrom(java.util.Collection<?> aPathQuery, java.util.Collection<?> aFromPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryTo(java.lang.Object[] aPathQuery, java.lang.String aToPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryTo(java.lang.Object aPathQuery, java.lang.String aToPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryTo(java.lang.String[] aPathQuery, java.lang.String aToPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryTo(java.lang.String aPathQuery, java.lang.String aToPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapqueryTo(java.util.Collection<?> aPathQuery, java.lang.String aToPath)Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?'default CanonicalMapretrieveBetween(java.lang.Object[] aFromPath, java.lang.Object[] aToPath)default CanonicalMapretrieveBetween(java.lang.Object aFromPath, java.lang.Object aToPath)default CanonicalMapretrieveBetween(java.lang.String[] aFromPath, java.lang.String[] aToPath)default CanonicalMapretrieveBetween(java.lang.String aFromPath, java.lang.String aToPath)default CanonicalMapretrieveBetween(java.util.Collection<?> aFromPath, java.util.Collection<?> aToPath)default CanonicalMapretrieveFrom(java.lang.Object aParentPath)Gets the children elements of the provided parent's path, excluding the parent's path.default CanonicalMapretrieveFrom(java.lang.Object... aPathElements)Gets the children elements of the provided parent's path elements, excluding the parent's path.CanonicalMapretrieveFrom(java.lang.String aFromPath)default CanonicalMapretrieveFrom(java.lang.String... aPathElements)Gets the children elements of the provided parent's path elements, excluding the parent's path.default CanonicalMapretrieveFrom(java.util.Collection<?> aPathElements)Gets the children elements of the provided parent's path elements, excluding the parent's path.default CanonicalMapretrieveTo(java.lang.Object aToPath)default CanonicalMapretrieveTo(java.lang.Object... aToPathElements)CanonicalMapretrieveTo(java.lang.String aToPath)default CanonicalMapretrieveTo(java.lang.String... aToPathElements)default CanonicalMapretrieveTo(java.util.Collection<?> aToPathElements)default <T> voidtoInstance(java.lang.String aFromPath, T aInstance)Updates the instance with thisCanonicalMap's data.default <T> voidtoInstance(T aInstance)Updates the instance with thisCanonicalMap's data.default java.util.Map<java.lang.String,java.lang.String>toMap()This method creates aMapinstance from thisCanonicalMapinstance's elements (key/value-pairs) as of interoperability reasons.default java.util.PropertiestoProperties()This method creates aPropertiesinstance from thisPropertiesinstance's elements (key/value-pairs) as of interoperability reasons.default <T> TtoType(java.lang.Class<T> aType)Creates an instance of the given type filled with thisCanonicalMap's data.default <T> TtoType(java.lang.String aFromPath, java.lang.Class<T> aType)Creates an instance of the given type filled with thisCanonicalMap's data.-
Methods inherited from interface org.refcodes.structure.Containable
isEmpty, size
-
Methods inherited from interface org.refcodes.structure.Keys
containsKey, get, getOr, keySet, use, values
-
Methods inherited from interface org.refcodes.structure.PathMap
children, children, children, children, children, children, containsKey, containsKey, containsKey, dirs, dirs, dirs, dirs, dirs, dirs, findPaths, fromExternalPath, get, get, get, getArray, getArray, getArray, getArray, getArray, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayIndexes, getDirAt, getDirAt, getDirAt, getDirAt, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getRootPath, getValueAt, getValueAt, getValueAt, getValueAt, getValueAt, getValueAt, hasChildren, hasChildren, hasChildren, hasChildren, hasChildren, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasParentPath, hasPath, hasPath, hasPath, hasPath, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, isArray, isArray, isArray, isArray, isArray, isArray, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isChild, isChild, isChild, isChild, isDir, isDir, isDir, isDir, isDir, isDirIndex, isDirIndex, isDirIndex, isDirIndex, isDirIndex, isEqualTo, isLeaf, isLeaf, isLeaf, isLeaf, isLeaf, isRootPath, keySet, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, leaves, leaves, leaves, leaves, leaves, leaves, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, paths, paths, paths, paths, paths, paths, queryPaths, queryPaths, queryPaths, queryPaths, queryPaths, sortedKeys, toDataStructure, toDataStructure, toExternalPath, toLeaf, toMap, toNormalizedPath, toParentPath, toPath, toPath, toPath, toPathElements, toPathList, toPathStack, toPropertyPath
-
Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin
asArray, asArray, asArray, asArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asByteArray, asByteArray, asByteArray, asByteArray, asCharacterArray, asCharacterArray, asCharacterArray, asCharacterArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asIntegerArray, asIntegerArray, asIntegerArray, asIntegerArray, asLongArray, asLongArray, asLongArray, asLongArray, asShortArray, asShortArray, asShortArray, asShortArray, getBoolean, getBoolean, getBooleanOr, getBooleanOr, getByte, getByte, getByteOr, getByteOr, getCharacter, getCharacter, getCharacterOr, getCharacterOr, getDouble, getDouble, getDoubleOr, getDoubleOr, getFloat, getFloat, getFloatOr, getFloatOr, getInteger, getInteger, getIntegerOr, getIntegerOr, getLong, getLong, getLongOr, getLongOr, getShort, getShort, getShortOr, getShortOr
-
-
-
-
Method Detail
-
containsValue
default boolean containsValue(java.lang.Object value)
This method is defined for the sake ofMapconformity. Tests whether the provided value has a key assigned.- Specified by:
containsValuein interfaceKeys<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.
-
getBoolean
default java.lang.Boolean getBoolean(java.lang.Object... aPathElements) throws java.lang.NumberFormatExceptionReturns theBooleanvalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Booleanrepresentation of the key'sStringvalue of false if there is no such key. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getBoolean
default java.lang.Boolean getBoolean(java.lang.String... aPathElements) throws java.lang.NumberFormatExceptionReturns theBooleanvalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Booleanrepresentation of the key'sStringvalue of false if there is no such key. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getBooleanOr
default java.lang.Boolean getBooleanOr(java.lang.Object[] aPathElements, java.lang.Boolean aDefaultValue) throws java.lang.NumberFormatExceptionReturns theBooleanvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Booleanrepresentation of the key'sStringvalue of false if there is no such key. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getBooleanOr
default java.lang.Boolean getBooleanOr(java.lang.String[] aPathElements, java.lang.Boolean aDefaultValue) throws java.lang.NumberFormatExceptionReturns theBooleanvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Booleanrepresentation of the key'sStringvalue of false if there is no such key. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getByte
default java.lang.Byte getByte(java.lang.Object... aPathElements) throws java.lang.NumberFormatExceptionReturns theBytevalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Byterepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getByte
default java.lang.Byte getByte(java.lang.String... aPathElements) throws java.lang.NumberFormatExceptionReturns theBytevalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Byterepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getByteOr
default java.lang.Byte getByteOr(java.lang.Object[] aPathElements, java.lang.Byte aDefaultValue) throws java.lang.NumberFormatExceptionReturns theBytevalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Byterepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getByteOr
default java.lang.Byte getByteOr(java.lang.String[] aPathElements, java.lang.Byte aDefaultValue) throws java.lang.NumberFormatExceptionReturns theBytevalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Byterepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getCharacter
default java.lang.Character getCharacter(java.lang.Object... aPathElements) throws java.lang.NumberFormatExceptionReturns theCharactervalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Characterrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getCharacter
default java.lang.Character getCharacter(java.lang.String... aPathElements) throws java.lang.NumberFormatExceptionReturns theCharactervalue of the property referred to by the key. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Characterrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getCharacterOr
default java.lang.Character getCharacterOr(java.lang.Object[] aPathElements, java.lang.Character aDefaultValue) throws java.lang.NumberFormatExceptionReturns theCharactervalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Characterrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getCharacterOr
default java.lang.Character getCharacterOr(java.lang.String[] aPathElements, java.lang.Character aDefaultValue) throws java.lang.NumberFormatExceptionReturns theCharactervalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Characterrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getDirAt
default CanonicalMap getDirAt(int aIndex)
An indexed directory represents all elements which begin with a path which's last path element represents an index. There may by many sub-paths for the same indexed path which are all are included by the according directory. Returns the elements of the given index below the path of the root "array" path. Given the following paths and index = 1:/0/0aaa /0/0bbb /0/0bbb /1/1aaa /1/1bbb /1/1bbbYou will get a result containing all the elements which's keys begin with "/1/". The keys of the result will exclude the path "prefix" "/1".
-
getDirAt
default CanonicalMap getDirAt(java.lang.String aPath, int aIndex)
An indexed directory represents all elements which begin with a path which's last path element represents an index. There may by many sub-paths for the same indexed path which are all are included by the according directory. Returns the elements of the given index below the path of the path "array" path. Given the following paths and index = 1 with a queried path "/root/child":/root/child/0/0aaa /root/child/0/0bbb /root/child/0/0bbb /root/child/1/1aaa /root/child/1/1bbb /root/child/1/1bbbYou will get a result containing all the elements which's keys begin with "/root/child/1/".The keys of the result will exclude the path "prefix" "/root/child/1".
-
getDouble
default java.lang.Double getDouble(java.lang.Object... aPathElements) throws java.lang.NumberFormatExceptionReturns theDoublevalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Doublerepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getDouble
default java.lang.Double getDouble(java.lang.String... aPathElements) throws java.lang.NumberFormatExceptionReturns theDoublevalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Doublerepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getDoubleOr
default java.lang.Double getDoubleOr(java.lang.Object[] aPathElements, java.lang.Double aDefaultValue) throws java.lang.NumberFormatExceptionReturns theDoublevalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Doublerepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getDoubleOr
default java.lang.Double getDoubleOr(java.lang.String[] aPathElements, java.lang.Double aDefaultValue) throws java.lang.NumberFormatExceptionReturns theDoublevalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Doublerepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getFloat
default java.lang.Float getFloat(java.lang.Object... aPathElements) throws java.lang.NumberFormatExceptionReturns theFloatvalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Floatrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getFloat
default java.lang.Float getFloat(java.lang.String... aPathElements) throws java.lang.NumberFormatExceptionReturns theFloatvalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Floatrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getFloatOr
default java.lang.Float getFloatOr(java.lang.Object[] aPathElements, java.lang.Float aDefaultValue) throws java.lang.NumberFormatExceptionReturns theFloatvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Floatrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getFloatOr
default java.lang.Float getFloatOr(java.lang.String[] aPathElements, java.lang.Float aDefaultValue) throws java.lang.NumberFormatExceptionReturns theFloatvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Floatrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getInteger
default java.lang.Integer getInteger(java.lang.Object... aPathElements) throws java.lang.NumberFormatExceptionReturns theIntegervalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Integerrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getInteger
default java.lang.Integer getInteger(java.lang.String... aPathElements) throws java.lang.NumberFormatExceptionReturns theIntegervalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Integerrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getIntegerOr
default java.lang.Integer getIntegerOr(java.lang.Object[] aPathElements, java.lang.Integer aDefaultValue) throws java.lang.NumberFormatExceptionReturns theIntegervalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Integerrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getIntegerOr
default java.lang.Integer getIntegerOr(java.lang.String[] aPathElements, java.lang.Integer aDefaultValue) throws java.lang.NumberFormatExceptionReturns theIntegervalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Integerrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getLong
default java.lang.Long getLong(java.lang.Object... aPathElements) throws java.lang.NumberFormatExceptionReturns theLongvalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Longrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getLong
default java.lang.Long getLong(java.lang.String... aPathElements) throws java.lang.NumberFormatExceptionReturns theLongvalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Longrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getLongOr
default java.lang.Long getLongOr(java.lang.Object[] aPathElements, java.lang.Long aDefaultValue) throws java.lang.NumberFormatExceptionReturns theLongvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Longrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getLongOr
default java.lang.Long getLongOr(java.lang.String[] aPathElements, java.lang.Long aDefaultValue) throws java.lang.NumberFormatExceptionReturns theLongvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Longrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getShort
default java.lang.Short getShort(java.lang.Object... aPathElements) throws java.lang.NumberFormatExceptionReturns theShortvalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Shortrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getShort
default java.lang.Short getShort(java.lang.String... aPathElements) throws java.lang.NumberFormatExceptionReturns theShortvalue of the property referred to by the path elements. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.- Returns:
- The
Shortrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getShortOr
default java.lang.Short getShortOr(java.lang.Object[] aPathElements, java.lang.Short aDefaultValue) throws java.lang.NumberFormatExceptionReturns theShortvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Shortrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
getShortOr
default java.lang.Short getShortOr(java.lang.String[] aPathElements, java.lang.Short aDefaultValue) throws java.lang.NumberFormatExceptionReturns theShortvalue of the property referred to by the path represented by the given path elements or the provided default value if there is no such value for the given path. As property keys and values are of typeString, theStringvalue is converted accordingly.- Parameters:
aPathElements- The key for which to retrieve the value.aDefaultValue- The default value in case there is no such value for the given key.- Returns:
- The
Shortrepresentation of the key'sStringvalue. - Throws:
java.lang.NumberFormatException- thrown in case conversion fails.
-
query
default CanonicalMap query(java.util.Collection<?> aQueryElements)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.
-
query
default CanonicalMap query(java.lang.Object... aQueryElements)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.
-
query
default CanonicalMap query(java.lang.String aPathQuery)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.
-
query
default CanonicalMap query(java.lang.String... aQueryElements)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.
-
queryBetween
default CanonicalMap queryBetween(java.util.Collection<?> aFromPath, java.util.Collection<?> aPathQuery, java.util.Collection<?> aToPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.- Specified by:
queryBetweenin interfacePathMap<java.lang.String>- Parameters:
aFromPath- The path from where to start querying and extracting the paths.aPathQuery- The path query including your wildcards.aToPath- The path where to relocate the result to.- Returns:
- The result contains the matching paths (with respect to the from-path and the to-path) with the according values.
-
queryBetween
default CanonicalMap queryBetween(java.lang.Object aFromPath, java.lang.Object aPathQuery, java.lang.Object aToPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.- Specified by:
queryBetweenin interfacePathMap<java.lang.String>- Parameters:
aFromPath- The path from where to start querying and extracting the paths.aPathQuery- The path query including your wildcards.aToPath- The path where to relocate the result to.- Returns:
- The result contains the matching paths (with respect to the from-path and the to-path) with the according values.
-
queryBetween
default CanonicalMap queryBetween(java.lang.Object[] aFromPath, java.lang.Object[] aPathQuery, java.lang.Object[] aToPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.- Specified by:
queryBetweenin interfacePathMap<java.lang.String>- Parameters:
aFromPath- The path from where to start querying and extracting the paths.aPathQuery- The path query including your wildcards.aToPath- The path where to relocate the result to.- Returns:
- The result contains the matching paths (with respect to the from-path and the to-path) with the according values.
-
queryBetween
default CanonicalMap queryBetween(java.lang.String aFromPath, java.lang.String aPathQuery, java.lang.String aToPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.- Specified by:
queryBetweenin interfacePathMap<java.lang.String>- Parameters:
aFromPath- The path from where to start querying and extracting the paths.aPathQuery- The path query including your wildcards.aToPath- The path where to relocate the result to.- Returns:
- The result contains the matching paths (with respect to the from-path and the to-path) with the according values.
-
queryBetween
default CanonicalMap queryBetween(java.lang.String[] aFromPath, java.lang.String[] aPathQuery, java.lang.String[] aToPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.- Specified by:
queryBetweenin interfacePathMap<java.lang.String>- Parameters:
aFromPath- The path from where to start querying and extracting the paths.aPathQuery- The path query including your wildcards.aToPath- The path where to relocate the result to.- Returns:
- The result contains the matching paths (with respect to the from-path and the to-path) with the according values.
-
queryFrom
default CanonicalMap queryFrom(java.util.Collection<?> aPathQuery, java.util.Collection<?> aFromPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.- Specified by:
queryFromin interfacePathMap<java.lang.String>- Parameters:
aPathQuery- The path query including your wildcards.aFromPath- The path from where to start querying and extracting the paths.- Returns:
- The result contains the matching paths (with respect to the from-path) with the according values.
-
queryFrom
default CanonicalMap queryFrom(java.lang.Object aPathQuery, java.lang.Object aFromPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.- Specified by:
queryFromin interfacePathMap<java.lang.String>- Parameters:
aPathQuery- The path query including your wildcards.aFromPath- The path from where to start querying and extracting the paths.- Returns:
- The result contains the matching paths (with respect to the from-path) with the according values.
-
queryFrom
default CanonicalMap queryFrom(java.lang.Object[] aPathQuery, java.lang.Object[] aFromPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.- Specified by:
queryFromin interfacePathMap<java.lang.String>- Parameters:
aPathQuery- The path query including your wildcards.aFromPath- The path from where to start querying and extracting the paths.- Returns:
- The result contains the matching paths (with respect to the from-path) with the according values.
-
queryFrom
default CanonicalMap queryFrom(java.lang.String aPathQuery, java.lang.String aFromPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.- Specified by:
queryFromin interfacePathMap<java.lang.String>- Parameters:
aPathQuery- The path query including your wildcards.aFromPath- The path from where to start querying and extracting the paths.- Returns:
- The result contains the matching paths (with respect to the from-path) with the according values.
-
queryFrom
default CanonicalMap queryFrom(java.lang.String[] aPathQuery, java.lang.String[] aFromPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.- Specified by:
queryFromin interfacePathMap<java.lang.String>- Parameters:
aPathQuery- The path query including your wildcards.aFromPath- The path from where to start querying and extracting the paths.- Returns:
- The result contains the matching paths (with respect to the from-path) with the according values.
-
queryTo
default CanonicalMap queryTo(java.util.Collection<?> aPathQuery, java.lang.String aToPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.
-
queryTo
default CanonicalMap queryTo(java.lang.Object aPathQuery, java.lang.String aToPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.
-
queryTo
default CanonicalMap queryTo(java.lang.Object[] aPathQuery, java.lang.String aToPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.
-
queryTo
default CanonicalMap queryTo(java.lang.String aPathQuery, java.lang.String aToPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.
-
queryTo
default CanonicalMap queryTo(java.lang.String[] aPathQuery, java.lang.String aToPath)
Queries the keys of the instance using thePathMatcher' matching patterns, similar to the wildcards '*', '?' and '**' known when querying folders of a filesystem: ThePathMatcherapplies the following rules from the ANT path pattern to the query provided: A single asterisk ("*") matches zero or more characters within a path name. A double asterisk ("**") matches zero or more characters across directory levels. A question mark ("?") matches exactly one character within a path name. The single asterisk ("*"), the double asterisk ("**") and the question mark ("?") we refer to as wildcards.
-
retrieveBetween
default CanonicalMap retrieveBetween(java.util.Collection<?> aFromPath, java.util.Collection<?> aToPath)
Extracts a newPathMapfrom the elements of thisPathMapfound below the "from-path". The sub-paths will be relocated to the provided "to-path".- Specified by:
retrieveBetweenin interfacePathMap<java.lang.String>- Parameters:
aFromPath- The path from where to start extracting the paths.aToPath- The path where to relocate the extracted paths to.- Returns:
- The
PathMapwith the elements below the provided path "from-path" relocated to the given "to-path".
-
retrieveBetween
default CanonicalMap retrieveBetween(java.lang.Object aFromPath, java.lang.Object aToPath)
Extracts a newPathMapfrom the elements of thisPathMapfound below the "from-path". The sub-paths will be relocated to the provided "to-path".- Specified by:
retrieveBetweenin interfacePathMap<java.lang.String>- Parameters:
aFromPath- The path from where to start extracting the paths.aToPath- The path where to relocate the extracted paths to.- Returns:
- The
PathMapwith the elements below the provided path "from-path" relocated to the given "to-path".
-
retrieveBetween
default CanonicalMap retrieveBetween(java.lang.Object[] aFromPath, java.lang.Object[] aToPath)
Extracts a newPathMapfrom the elements of thisPathMapfound below the "from-path". The sub-paths will be relocated to the provided "to-path".- Specified by:
retrieveBetweenin interfacePathMap<java.lang.String>- Parameters:
aFromPath- The path from where to start extracting the paths.aToPath- The path where to relocate the extracted paths to.- Returns:
- The
PathMapwith the elements below the provided path "from-path" relocated to the given "to-path".
-
retrieveBetween
default CanonicalMap retrieveBetween(java.lang.String aFromPath, java.lang.String aToPath)
Extracts a newPathMapfrom the elements of thisPathMapfound below the "from-path". The sub-paths will be relocated to the provided "to-path".- Specified by:
retrieveBetweenin interfacePathMap<java.lang.String>- Parameters:
aFromPath- The path from where to start extracting the paths.aToPath- The path where to relocate the extracted paths to.- Returns:
- The
PathMapwith the elements below the provided path "from-path" relocated to the given "to-path".
-
retrieveBetween
default CanonicalMap retrieveBetween(java.lang.String[] aFromPath, java.lang.String[] aToPath)
Extracts a newPathMapfrom the elements of thisPathMapfound below the "from-path". The sub-paths will be relocated to the provided "to-path".- Specified by:
retrieveBetweenin interfacePathMap<java.lang.String>- Parameters:
aFromPath- The path from where to start extracting the paths.aToPath- The path where to relocate the extracted paths to.- Returns:
- The
PathMapwith the elements below the provided path "from-path" relocated to the given "to-path".
-
retrieveFrom
default CanonicalMap retrieveFrom(java.util.Collection<?> aPathElements)
Gets the children elements of the provided parent's path elements, excluding the parent's path.- Specified by:
retrieveFromin interfacePathMap<java.lang.String>- Parameters:
aPathElements- The path elements from where to retrieve the children.- Returns:
- The children of the given parent's path.
-
retrieveFrom
default CanonicalMap retrieveFrom(java.lang.Object aParentPath)
Gets the children elements of the provided parent's path, excluding the parent's path.- Specified by:
retrieveFromin interfacePathMap<java.lang.String>- Parameters:
aParentPath- The path from where to retrieve the children.- Returns:
- The children of the given parent's path.
-
retrieveFrom
default CanonicalMap retrieveFrom(java.lang.Object... aPathElements)
Gets the children elements of the provided parent's path elements, excluding the parent's path.- Specified by:
retrieveFromin interfacePathMap<java.lang.String>- Parameters:
aPathElements- The path elements from where to retrieve the children.- Returns:
- The children of the given parent's path.
-
retrieveFrom
CanonicalMap retrieveFrom(java.lang.String aFromPath)
Extracts a newPathMapfrom the elements of thisPathMapfound below the "from-path". The sub-paths will be the root paths for the newPathMap. Given we have a value for path "/dog/cat" in thePathMapand we callPathMap.retrieveFrom(String)with "/dog", then the resultingPathMapwill contain the path "/cat" for that value.- Specified by:
retrieveFromin interfacePathMap<java.lang.String>- Parameters:
aFromPath- The path from where to start extracting the paths.- Returns:
- The
PathMapwith the elements below the provided path which are root elements in the newPathMap.
-
retrieveFrom
default CanonicalMap retrieveFrom(java.lang.String... aPathElements)
Gets the children elements of the provided parent's path elements, excluding the parent's path.- Specified by:
retrieveFromin interfacePathMap<java.lang.String>- Parameters:
aPathElements- The path elements from where to retrieve the children.- Returns:
- The children of the given parent's path.
-
retrieveTo
default CanonicalMap retrieveTo(java.util.Collection<?> aToPathElements)
Extracts a newPathMapfrom thisPathMap's elements with the paths relocated to the provided "to-path". Given we have a value for path "/dog/cat" in thePathMapand we callPathMap.retrieveTo(String)with "/animals", then the resultingPathMapwill contain the path "/animals/dog/cat" for that value.- Specified by:
retrieveToin interfacePathMap<java.lang.String>- Parameters:
aToPathElements- The path elements representing the path where to relocate the paths of thisPathMapto.- Returns:
- The
PathMapwith the elements from the providedPathMapwith accordingly relocated paths.
-
retrieveTo
default CanonicalMap retrieveTo(java.lang.Object aToPath)
Extracts a newPathMapfrom thisPathMap's elements with the paths relocated to the provided "to-path". Given we have a value for path "/dog/cat" in thePathMapand we callPathMap.retrieveTo(String)with "/animals", then the resultingPathMapwill contain the path "/animals/dog/cat" for that value.- Specified by:
retrieveToin interfacePathMap<java.lang.String>- Parameters:
aToPath- The path where to relocate the paths of thisPathMapto.- Returns:
- The
PathMapwith the elements from the providedPathMapwith accordingly relocated paths.
-
retrieveTo
default CanonicalMap retrieveTo(java.lang.Object... aToPathElements)
Extracts a newPathMapfrom thisPathMap's elements with the paths relocated to the provided "to-path". Given we have a value for path "/dog/cat" in thePathMapand we callPathMap.retrieveTo(String)with "/animals", then the resultingPathMapwill contain the path "/animals/dog/cat" for that value.- Specified by:
retrieveToin interfacePathMap<java.lang.String>- Parameters:
aToPathElements- The path elements representing the path where to relocate the paths of thisPathMapto.- Returns:
- The
PathMapwith the elements from the providedPathMapwith accordingly relocated paths.
-
retrieveTo
CanonicalMap retrieveTo(java.lang.String aToPath)
Extracts a newPathMapfrom thisPathMap's elements with the paths relocated to the provided "to-path". Given we have a value for path "/dog/cat" in thePathMapand we callPathMap.retrieveTo(String)with "/animals", then the resultingPathMapwill contain the path "/animals/dog/cat" for that value.- Specified by:
retrieveToin interfacePathMap<java.lang.String>- Parameters:
aToPath- The path where to relocate the paths of thisPathMapto.- Returns:
- The
PathMapwith the elements from the providedPathMapwith accordingly relocated paths.
-
retrieveTo
default CanonicalMap retrieveTo(java.lang.String... aToPathElements)
Extracts a newPathMapfrom thisPathMap's elements with the paths relocated to the provided "to-path". Given we have a value for path "/dog/cat" in thePathMapand we callPathMap.retrieveTo(String)with "/animals", then the resultingPathMapwill contain the path "/animals/dog/cat" for that value.- Specified by:
retrieveToin interfacePathMap<java.lang.String>- Parameters:
aToPathElements- The path elements representing the path where to relocate the paths of thisPathMapto.- Returns:
- The
PathMapwith the elements from the providedPathMapwith accordingly relocated paths.
-
toInstance
default <T> void toInstance(java.lang.String aFromPath, T aInstance)Updates the instance with thisCanonicalMap's data. Instances inside the instance may not be updated!- Type Parameters:
T- the generic type if which to create an instance.- Parameters:
aFromPath- The path representing the root from which to take the data for the instance.aInstance- The instance to be updated with the herein contained data.
-
toInstance
default <T> void toInstance(T aInstance)
Updates the instance with thisCanonicalMap's data. Instances inside the instance may not be updated!- Type Parameters:
T- the generic type if which to create an instance.- Parameters:
aInstance- The instance to be updated with the herein contained data.
-
toType
default <T> T toType(java.lang.Class<T> aType)
Creates an instance of the given type filled with thisCanonicalMap's data.- Type Parameters:
T- the generic type if which to create an instance.- Parameters:
aType- the type if the instance to be filled with the herein contained data.- Returns:
- the instance initialized with the herein contained data.
-
toType
default <T> T toType(java.lang.String aFromPath, java.lang.Class<T> aType)Creates an instance of the given type filled with thisCanonicalMap's data.- Type Parameters:
T- the generic type if which to create an instance.- Parameters:
aFromPath- The path representing the root from which to take the data for the instance.aType- the type if the instance to be filled with the herein contained data.- Returns:
- the instance initialized with the herein contained data.
-
toProperties
default java.util.Properties toProperties()
This method creates aPropertiesinstance from thisPropertiesinstance's elements (key/value-pairs) as of interoperability reasons.- Returns:
- A
Propertiesobject from the herein contained key/value-pairs .
-
toMap
default java.util.Map<java.lang.String,java.lang.String> toMap()
This method creates aMapinstance from thisCanonicalMapinstance's elements (key/value-pairs) as of interoperability reasons.
-
-