Package org.refcodes.configuration
Class AbstractPropertiesBuilderDecorator<T extends Properties.PropertiesBuilder>
- java.lang.Object
-
- org.refcodes.configuration.AbstractPropertiesDecorator<T>
-
- org.refcodes.configuration.AbstractPropertiesBuilderDecorator<T>
-
- All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.String>
,Properties
,Properties.MutableProperties
,Properties.PropertiesBuilder
,org.refcodes.mixin.DelimiterAccessor
,org.refcodes.mixin.Dumpable
,org.refcodes.mixin.TypeAccessor<java.lang.String>
,org.refcodes.structure.CanonicalMap
,org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
,org.refcodes.structure.CanonicalMap.MutableCanonicalMap
,org.refcodes.structure.Clearable
,org.refcodes.structure.Containable
,org.refcodes.structure.Dictionary<java.lang.String,java.lang.String>
,org.refcodes.structure.Dictionary.MutableDictionary<java.lang.String,java.lang.String>
,org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<java.lang.String,java.lang.String,org.refcodes.structure.PathMap.PathMapBuilder<java.lang.String>>
,org.refcodes.structure.Keys<java.lang.String,java.lang.String>
,org.refcodes.structure.Keys.MutableKeys<java.lang.String,java.lang.String>
,org.refcodes.structure.Keys.MutableValues<java.lang.String,java.lang.String>
,org.refcodes.structure.PathMap<java.lang.String>
,org.refcodes.structure.PathMap.MutablePathMap<java.lang.String>
,org.refcodes.structure.PathMap.PathMapBuilder<java.lang.String>
,org.refcodes.structure.PropertiesAccessorMixin
,org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder>
,org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin
,org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
- Direct Known Subclasses:
AbstractResourcePropertiesBuilderDecorator
public class AbstractPropertiesBuilderDecorator<T extends Properties.PropertiesBuilder> extends AbstractPropertiesDecorator<T> implements Properties.PropertiesBuilder
-
-
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.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPropertiesBuilderDecorator()
Make sure to set the getProperties() member variable!AbstractPropertiesBuilderDecorator(T aProperties)
Decorates the providedResourceProperties
with additional behavior or functionality.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Properties.PropertiesBuilder
childrenOf(java.lang.String aParentPath)
void
clear()
boolean
containsValue(java.lang.Object aValue)
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>>
entrySet()
java.lang.String
put(java.lang.String aKey, java.lang.String aValue)
void
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> aProperties)
java.lang.String
remove(java.lang.Object aKey)
Properties.PropertiesBuilder
retrieveFrom(java.lang.String aFromPath)
Properties.PropertiesBuilder
retrieveTo(java.lang.String aToPath)
-
Methods inherited from class org.refcodes.configuration.AbstractPropertiesDecorator
containsKey, get, getDelimiter, getProperties, isEmpty, keySet, setProperties, size, toDataStructure, values
-
Methods inherited from interface org.refcodes.structure.CanonicalMap
toInstance, toInstance, toType, toType
-
Methods inherited from interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
withInsert, withInsert, withInsertFrom, withInsertTo
-
Methods inherited from interface org.refcodes.structure.CanonicalMap.MutableCanonicalMap
insert, insert, insertFrom, insertTo, putAll, toDump, toSourceCode, toSourceCode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.refcodes.structure.PathMap
directories, directories, entries, entries, fromExternalKey, get, get, getArray, getArray, getIndexes, getIndexes, getRootPath, hasIndexed, hasIndexed, hasParentPath, isArray, isArray, isDirectory, isEntry, isIndexed, isIndexed, isPath, isRecord, isRootPath, keySet, paths, paths, 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, removeAll, removeAll
-
Methods inherited from interface org.refcodes.structure.PathMap.PathMapBuilder
withInsert, withInsert, withInsertFrom, withInsertTo
-
Methods inherited from interface org.refcodes.configuration.Properties
getDelimiter, getType, toMap, toProperties, toPropertyPath
-
Methods inherited from interface org.refcodes.configuration.Properties.MutableProperties
delete, delete, insert, insert, insertFrom, insertTo, put, putAll, putAll
-
Methods inherited from interface org.refcodes.configuration.Properties.PropertiesBuilder
getIndexed, getIndexed, retrieve, withInsert, withInsert, withInsert, withInsert, withInsertFrom, withInsertFrom, withInsertTo, withInsertTo, withPut, withPut, withPutBoolean, withPutByte, withPutDouble, withPutFloat, withPutInteger, withPutLong, withPutShort, withRemoveFrom
-
Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin
containsKey, get, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
-
-
-
-
Constructor Detail
-
AbstractPropertiesBuilderDecorator
protected AbstractPropertiesBuilderDecorator()
Make sure to set the getProperties() member variable!
-
AbstractPropertiesBuilderDecorator
public AbstractPropertiesBuilderDecorator(T aProperties)
Decorates the providedResourceProperties
with additional behavior or functionality. Changes applied to the providedResourceProperties
affect the decorator.- Parameters:
aProperties
- TheResourceProperties
to be decorated.
-
-
Method Detail
-
containsValue
public boolean containsValue(java.lang.Object aValue)
- 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,java.lang.String>
- Specified by:
containsValue
in interfacejava.util.Map<java.lang.String,java.lang.String>
- Specified by:
containsValue
in interfaceProperties
- Specified by:
containsValue
in interfaceProperties.MutableProperties
-
put
public java.lang.String put(java.lang.String aKey, java.lang.String aValue)
- Specified by:
put
in interfaceorg.refcodes.structure.Keys.MutableValues<java.lang.String,java.lang.String>
- Specified by:
put
in interfacejava.util.Map<java.lang.String,java.lang.String>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.refcodes.structure.Clearable
- Specified by:
clear
in interfacejava.util.Map<java.lang.String,java.lang.String>
-
putAll
public 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,java.lang.String>
- Specified by:
putAll
in interfaceProperties.MutableProperties
-
remove
public java.lang.String remove(java.lang.Object aKey)
- Specified by:
remove
in interfacejava.util.Map<java.lang.String,java.lang.String>
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<java.lang.String,java.lang.String>
-
retrieveFrom
public Properties.PropertiesBuilder retrieveFrom(java.lang.String aFromPath)
- Specified by:
retrieveFrom
in interfaceorg.refcodes.structure.CanonicalMap
- Specified by:
retrieveFrom
in interfaceorg.refcodes.structure.PathMap<T extends Properties.PropertiesBuilder>
- Specified by:
retrieveFrom
in interfaceProperties
- Specified by:
retrieveFrom
in interfaceProperties.MutableProperties
- Specified by:
retrieveFrom
in interfaceProperties.PropertiesBuilder
- Overrides:
retrieveFrom
in classAbstractPropertiesDecorator<T extends Properties.PropertiesBuilder>
-
retrieveTo
public Properties.PropertiesBuilder retrieveTo(java.lang.String aToPath)
- Specified by:
retrieveTo
in interfaceorg.refcodes.structure.CanonicalMap
- Specified by:
retrieveTo
in interfaceorg.refcodes.structure.PathMap<T extends Properties.PropertiesBuilder>
- Specified by:
retrieveTo
in interfaceProperties
- Specified by:
retrieveTo
in interfaceProperties.MutableProperties
- Specified by:
retrieveTo
in interfaceProperties.PropertiesBuilder
- Overrides:
retrieveTo
in classAbstractPropertiesDecorator<T extends Properties.PropertiesBuilder>
-
childrenOf
public Properties.PropertiesBuilder childrenOf(java.lang.String aParentPath)
- Specified by:
childrenOf
in interfaceorg.refcodes.structure.CanonicalMap
- Specified by:
childrenOf
in interfaceorg.refcodes.structure.PathMap<T extends Properties.PropertiesBuilder>
- Specified by:
childrenOf
in interfaceProperties
- Specified by:
childrenOf
in interfaceProperties.MutableProperties
- Specified by:
childrenOf
in interfaceProperties.PropertiesBuilder
- Overrides:
childrenOf
in classAbstractPropertiesDecorator<T extends Properties.PropertiesBuilder>
-
-