T
- The actual (sub-) type of the Properties
to be decorated.Properties
, org.refcodes.mixin.DelimiterAccessor
, org.refcodes.mixin.Dumpable
, org.refcodes.mixin.TypeAccessor<String>
, org.refcodes.structure.CanonicalMap
, org.refcodes.structure.Containable
, org.refcodes.structure.Dictionary<String,String>
, org.refcodes.structure.Keys<String,String>
, org.refcodes.structure.PathMap<String>
, org.refcodes.structure.PropertiesAccessorMixin
AbstractPropertiesBuilderDecorator
, AbstractResourcePropertiesDecorator
, NormalizedPropertiesDecorator
, ProfilePropertiesDecorator
, StrictPropertiesDecorator
public abstract class AbstractPropertiesDecorator<T extends Properties> extends Object implements Properties
Properties
and delegates method calls to them
Properties
.org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
org.refcodes.structure.Dictionary.MutableDictionary<K extends Object,V extends Object>
org.refcodes.structure.Keys.MutableKeys<K extends Object,V extends Object>, org.refcodes.structure.Keys.MutableValues<K extends Object,V extends Object>
org.refcodes.structure.PathMap.MutablePathMap<T extends Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends Object>
Properties.MutableProperties, Properties.PropertiesBuilder
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
DEFAULT_COMMENT
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractPropertiesDecorator() |
Make sure to set the _properties member variable!
|
|
AbstractPropertiesDecorator(T aProperties) |
Decorates the provided
Properties with additional behavior or
functionality. |
Modifier and Type | Method | Description |
---|---|---|
Properties |
childrenOf(String aParentPath) |
|
boolean |
containsKey(Object aKey) |
|
String |
get(Object aKey) |
|
char |
getDelimiter() |
Returns the default path delimiter as of
Delimiter.PATH . |
protected T |
getProperties() |
Delegate hook, this method is used to retrieve the properties to which to
delegate method calls to.
|
boolean |
isEmpty() |
|
Set<String> |
keySet() |
|
Properties |
retrieveFrom(String aFromPath) |
|
Properties |
retrieveTo(String aToPath) |
|
protected void |
setProperties(T aProperties) |
Hook to set the properties.
|
int |
size() |
|
Object |
toDataStructure(String aFromPath) |
|
Collection<String> |
values() |
toInstance, toInstance, toType, toType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
directories, directories, entries, entries, fromExternalKey, getArray, getArray, getRootPath, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath
containsValue, getType, retrieve, toMap, toProperties, toPropertyPath
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
protected AbstractPropertiesDecorator()
public AbstractPropertiesDecorator(T aProperties)
Properties
with additional behavior or
functionality. Changes applied to the provided Properties
affect
the decorator.aProperties
- The Properties
to be decorated.public char getDelimiter()
Delimiter.PATH
.
getDelimiter
in interface org.refcodes.mixin.DelimiterAccessor
getDelimiter
in interface Properties
public int size()
size
in interface org.refcodes.structure.Containable
public boolean containsKey(Object aKey)
public boolean isEmpty()
isEmpty
in interface org.refcodes.structure.Containable
public Collection<String> values()
public Properties retrieveFrom(String aFromPath)
retrieveFrom
in interface org.refcodes.structure.CanonicalMap
retrieveFrom
in interface org.refcodes.structure.PathMap<T extends Properties>
retrieveFrom
in interface Properties
public Properties retrieveTo(String aToPath)
retrieveTo
in interface org.refcodes.structure.CanonicalMap
retrieveTo
in interface org.refcodes.structure.PathMap<T extends Properties>
retrieveTo
in interface Properties
public Properties childrenOf(String aParentPath)
childrenOf
in interface org.refcodes.structure.CanonicalMap
childrenOf
in interface org.refcodes.structure.PathMap<T extends Properties>
childrenOf
in interface Properties
public Object toDataStructure(String aFromPath)
toDataStructure
in interface org.refcodes.structure.PathMap<T extends Properties>
protected T getProperties()
protected void setProperties(T aProperties)
aProperties
- The properties to which method calls are delegated to.Copyright © 2018. All rights reserved.