Package org.refcodes.configuration
Interface StrictProperties
-
- All Superinterfaces:
org.refcodes.structure.CanonicalMap
,org.refcodes.structure.Containable
,org.refcodes.mixin.DelimiterAccessor
,org.refcodes.structure.Dictionary<java.lang.String,T>
,org.refcodes.mixin.Dumpable
,org.refcodes.structure.Keys<java.lang.String,T>
,org.refcodes.structure.PathMap<java.lang.String>
,Properties
,org.refcodes.structure.PropertiesAccessorMixin
,org.refcodes.mixin.TypeAccessor<java.lang.String>
- All Known Subinterfaces:
StrictProperties.MutableStrictProperties
,StrictProperties.StrictPropertiesBuilder
- All Known Implementing Classes:
StrictPropertiesDecorator
public interface StrictProperties extends Properties
TheStrictProperties
extends theProperties
with all the getters to throw aKeyNotFoundRuntimeException
instead of returning null in case the key was not found.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
StrictProperties.MutableStrictProperties
The Interface MutableStrictProperties.static interface
StrictProperties.StrictPropertiesBuilder
The Interface StrictPropertiesBuilder.-
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.Keys
org.refcodes.structure.Keys.MutableKeys<K extends java.lang.Object,V extends java.lang.Object>, org.refcodes.structure.Keys.MutableValues<K extends java.lang.Object,V extends java.lang.Object>
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.String
get(java.lang.Enum<?> aKey)
java.lang.String
get(java.lang.Object aKey)
default java.lang.Boolean
getBoolean(java.lang.Enum<?> aKey)
default java.lang.Boolean
getBoolean(java.lang.String aKey)
default java.lang.Byte
getByte(java.lang.Enum<?> aKey)
default java.lang.Byte
getByte(java.lang.String aKey)
default java.lang.Character
getCharacter(java.lang.Enum<?> aKey)
default java.lang.Character
getCharacter(java.lang.String aKey)
default java.lang.Double
getDouble(java.lang.Enum<?> aKey)
default java.lang.Double
getDouble(java.lang.String aKey)
default java.lang.Float
getFloat(java.lang.Enum<?> aKey)
default java.lang.Float
getFloat(java.lang.String aKey)
default java.lang.Integer
getInteger(java.lang.Enum<?> aKey)
default java.lang.Integer
getInteger(java.lang.String aKey)
default java.lang.Long
getLong(java.lang.Enum<?> aKey)
default java.lang.Long
getLong(java.lang.String aKey)
default java.lang.Short
getShort(java.lang.Enum<?> aKey)
default java.lang.Short
getShort(java.lang.String aKey)
-
Methods inherited from interface org.refcodes.structure.CanonicalMap
toInstance, toInstance, toType, toType
-
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, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath, toPath
-
Methods inherited from interface org.refcodes.configuration.Properties
containsValue, getDelimiter, getIndexed, getIndexed, getType, query, query, queryFrom, queryTo, retrieve, retrieveFrom, retrieveFrom, retrieveFrom, retrieveFrom, retrieveTo, retrieveTo, retrieveTo, retrieveTo, toMap, toProperties, toPropertyPath
-
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, getBoolean, getByte, getCharacter, getDouble, getFloat, getInteger, getLong, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
-
-
-
-
Method Detail
-
getCharacter
default java.lang.Character getCharacter(java.lang.String aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getCharacter
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getInteger
default java.lang.Integer getInteger(java.lang.String aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getInteger
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getLong
default java.lang.Long getLong(java.lang.String aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getLong
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getShort
default java.lang.Short getShort(java.lang.String aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getShort
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getByte
default java.lang.Byte getByte(java.lang.String aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getByte
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getDouble
default java.lang.Double getDouble(java.lang.String aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getDouble
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getFloat
default java.lang.Float getFloat(java.lang.String aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getFloat
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getBoolean
default java.lang.Boolean getBoolean(java.lang.String aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getBoolean
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
get
default java.lang.String get(java.lang.Enum<?> aKey) throws org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
get
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
org.refcodes.structure.KeyNotFoundRuntimeException
-
getCharacter
default java.lang.Character getCharacter(java.lang.Enum<?> aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getCharacter
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getInteger
default java.lang.Integer getInteger(java.lang.Enum<?> aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getInteger
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getShort
default java.lang.Short getShort(java.lang.Enum<?> aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getShort
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getByte
default java.lang.Byte getByte(java.lang.Enum<?> aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getByte
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getDouble
default java.lang.Double getDouble(java.lang.Enum<?> aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getDouble
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getFloat
default java.lang.Float getFloat(java.lang.Enum<?> aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getFloat
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getBoolean
default java.lang.Boolean getBoolean(java.lang.Enum<?> aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getBoolean
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
getLong
default java.lang.Long getLong(java.lang.Enum<?> aKey) throws java.lang.NumberFormatException, org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
getLong
in interfaceorg.refcodes.structure.PropertiesAccessorMixin
- Throws:
java.lang.NumberFormatException
org.refcodes.structure.KeyNotFoundRuntimeException
-
get
java.lang.String get(java.lang.Object aKey) throws org.refcodes.structure.KeyNotFoundRuntimeException
- Specified by:
get
in interfaceorg.refcodes.structure.Keys<java.lang.String,T extends java.lang.Object>
- Throws:
org.refcodes.structure.KeyNotFoundRuntimeException
-
-