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,T>
, org.refcodes.structure.Keys<String,T>
, org.refcodes.structure.PathMap<String>
, org.refcodes.structure.PropertiesAccessorMixin
public class ProfilePropertiesProjection extends Object implements Properties
ProfilePropertiesProjection
applies the profiles as of
ProfileProperties.getRuntimeProfiles()
onto the encapsulated
Properties
(ProfileProperties
) and provides a view of them
Properties
(ProfileProperties
) from the profiles' point of
view e.g. as when profiles have been applied to them Properties
(ProfileProperties
).
In other words, the profiles are resolved and the result is provided as view:
Under the hood, the provided Properties
are decorated with a
ProfilePropertiesDecorator
which then is used to provide the profile
projection via ProfileProperties.toRuntimeProfile()
.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
Constructor | Description |
---|---|
ProfilePropertiesProjection(ProfileProperties aProperties) |
Uses the
ProfileProperties for the profile projection. |
ProfilePropertiesProjection(ProfileProperties aProperties,
String... aProfiles) |
Uses the
ProfileProperties for the profile projection. |
ProfilePropertiesProjection(Properties.PropertiesBuilder aProperties,
String... aProfiles) |
Wraps the
Properties.PropertiesBuilder with a profile projection. |
ProfilePropertiesProjection(Properties aProperties,
String... aProfiles) |
Wraps the
Properties with a profile projection. |
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 . |
boolean |
isEmpty() |
|
Set<String> |
keySet() |
|
Properties |
retrieveFrom(String aFromPath) |
|
Properties |
retrieveTo(String aToPath) |
|
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
public ProfilePropertiesProjection(Properties aProperties, String... aProfiles)
Properties
with a profile projection. The
Properties
are decorated with a
ProfilePropertiesDecorator
which provides the projected
Properties
from the wrapped Properties
with the given
profiles applied. See also
ProfileProperties.toRuntimeProfile(String...)
.aProperties
- The properties which are to be projected according to
the provided profiles. The evaluation is done as of
ProfileProperties.toRuntimeProfile(String...)
.aProfiles
- The profiles to be used when constructing the
projection.public ProfilePropertiesProjection(Properties.PropertiesBuilder aProperties, String... aProfiles)
Properties.PropertiesBuilder
with a profile projection. The
Properties.PropertiesBuilder
are decorated with a
ProfilePropertiesDecorator
which then is used to provide the
profile projection via
ProfileProperties.toRuntimeProfile(String...)
using the provided
profilesaProperties
- The properties which are to be projected according to
the therein set profiles. The evaluation is done as of
ProfileProperties.toRuntimeProfile(String...)
.aProfiles
- The profiles to be used when constructing the
projection.public ProfilePropertiesProjection(ProfileProperties aProperties)
ProfileProperties
for the profile projection. The
ProfileProperties
provide the profile projection via
ProfileProperties.toRuntimeProfile()
.aProperties
- The properties which provide the according profile
projections applying the therein set profiles. The evaluation is
done as of ProfileProperties.toRuntimeProfile(String...)
.public ProfilePropertiesProjection(ProfileProperties aProperties, String... aProfiles)
ProfileProperties
for the profile projection. The
ProfileProperties
provide the profile projection via
ProfileProperties.toRuntimeProfile(String...)
using the provided
profilesaProperties
- The properties which are to be projected according to
the therein set profiles. The evaluation is done as of
ProfileProperties.toRuntimeProfile(String...)
.aProfiles
- The profiles to be used when constructing the
projection.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<String>
retrieveFrom
in interface Properties
public Properties retrieveTo(String aToPath)
retrieveTo
in interface org.refcodes.structure.CanonicalMap
retrieveTo
in interface org.refcodes.structure.PathMap<String>
retrieveTo
in interface Properties
public Properties childrenOf(String aParentPath)
childrenOf
in interface org.refcodes.structure.CanonicalMap
childrenOf
in interface org.refcodes.structure.PathMap<String>
childrenOf
in interface Properties
Copyright © 2018. All rights reserved.