Class RuntimePropertiesImpl
java.lang.Object
org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
org.refcodes.properties.ext.runtime.RuntimePropertiesImpl
- All Implemented Interfaces:
org.refcodes.cli.ArgsParser
,org.refcodes.cli.ArgsParserMixin<org.refcodes.cli.ArgsParser>
,org.refcodes.cli.RootConditionAccessor
,org.refcodes.cli.RootConditionAccessor.RootConditionBuilder<RuntimeProperties>
,org.refcodes.cli.RootConditionAccessor.RootConditionMutator
,org.refcodes.mixin.AnnotatorAccessor
,org.refcodes.mixin.DelimiterAccessor
,org.refcodes.mixin.DescriptionAccessor
,org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<org.refcodes.cli.ArgsParser>
,org.refcodes.mixin.DescriptionAccessor.DescriptionMutator
,org.refcodes.mixin.DescriptionAccessor.DescriptionProperty
,org.refcodes.mixin.Dumpable
,org.refcodes.mixin.EmptyAccessor
,org.refcodes.mixin.EscapeCodesStatusAccessor
,org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusBuilder<org.refcodes.cli.ArgsParser>
,org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusMutator
,org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusProperty
,org.refcodes.mixin.NameAccessor
,org.refcodes.mixin.NameAccessor.NameBuilder<org.refcodes.cli.ArgsParser>
,org.refcodes.mixin.NameAccessor.NameMutator
,org.refcodes.mixin.NameAccessor.NameProperty
,org.refcodes.mixin.Resetable
,org.refcodes.mixin.ResetEscapeCodeAccessor
,org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeBuilder<org.refcodes.cli.ArgsParser>
,org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeMutator
,org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeProperty
,org.refcodes.mixin.SecretAccessor.SecretBuilder<RuntimeProperties>
,org.refcodes.mixin.SecretAccessor.SecretMutator
,org.refcodes.mixin.TitleAccessor
,org.refcodes.mixin.TitleAccessor.TitleBuilder<org.refcodes.cli.ArgsParser>
,org.refcodes.mixin.TitleAccessor.TitleMutator
,org.refcodes.mixin.TitleAccessor.TitleProperty
,org.refcodes.mixin.TypeAccessor<String>
,ArgsParserProperties
,ArgsParserPropertiesAccessor
,RuntimeProperties
,org.refcodes.properties.ProfileProperties
,org.refcodes.properties.Properties
,org.refcodes.properties.ResourceLoaderMixin<RuntimeProperties>
,org.refcodes.properties.ResourceProperties
,org.refcodes.struct.CanonicalMap
,org.refcodes.struct.Containable
,org.refcodes.struct.Dictionary<String,
,String> org.refcodes.struct.InterOperableMap<String>
,org.refcodes.struct.Keys<String,
,String> org.refcodes.struct.PathMap<String>
,org.refcodes.textual.TextBoxGridAccessor
,org.refcodes.textual.TextBoxGridAccessor.TextBoxGridBuilder<org.refcodes.cli.ArgsParser>
,org.refcodes.textual.TextBoxGridAccessor.TextBoxGridMutator
,org.refcodes.textual.TextBoxGridAccessor.TextBoxGridProperty
public class RuntimePropertiesImpl
extends org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
implements RuntimeProperties
The
RuntimePropertiesImpl
composite represent command line
properties, system properties as well as environment variables (in that
order) and resource properties. The RuntimePropertiesImpl
are
actually constructed from ArgsParserProperties
,
SystemProperties
, EnvironmentProperties
and
ResourceProperties
instances (in that precedence). Add the
ResourceProperties
via the following methods RuntimeProperties.withFile(File)
,
RuntimeProperties.withFilePath(String)
, RuntimeProperties.withUrl(URL)
or
RuntimeProperties.withInputStream(InputStream)
. Obfuscation may be applied to the
properties as of the ObfuscationProperties
and
ObfuscationProperties.ObfuscationPropertiesBuilder
types.-
Nested Class Summary
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.properties.ext.cli.ArgsParserPropertiesAccessor
ArgsParserPropertiesAccessor.ArgsParserPropertiesBuilder<B extends ArgsParserPropertiesAccessor.ArgsParserPropertiesBuilder<B>>, ArgsParserPropertiesAccessor.ArgsParserPropertiesMutator, ArgsParserPropertiesAccessor.ArgsParserPropertiesProperty
Nested classes/interfaces inherited from interface org.refcodes.struct.CanonicalMap
org.refcodes.struct.CanonicalMap.CanonicalMapBuilder, org.refcodes.struct.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.mixin.DescriptionAccessor
org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B extends org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B>>, org.refcodes.mixin.DescriptionAccessor.DescriptionMutator, org.refcodes.mixin.DescriptionAccessor.DescriptionProperty
Nested classes/interfaces inherited from interface org.refcodes.struct.Dictionary
org.refcodes.struct.Dictionary.MutableDictionary<K extends Object,
V extends Object> Nested classes/interfaces inherited from interface org.refcodes.mixin.EmptyAccessor
org.refcodes.mixin.EmptyAccessor.EmptyMutator, org.refcodes.mixin.EmptyAccessor.EmptyProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.EscapeCodesStatusAccessor
org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusBuilder<B extends org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusBuilder<B>>, org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusMutator, org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusProperty
Nested classes/interfaces inherited from interface org.refcodes.struct.InterOperableMap
org.refcodes.struct.InterOperableMap.InterOperableMapBuilder<T extends Object>, org.refcodes.struct.InterOperableMap.MutableInterOperableMap<T extends Object>
Nested classes/interfaces inherited from interface org.refcodes.struct.Keys
org.refcodes.struct.Keys.MutableKeys<K extends Object,
V extends Object>, org.refcodes.struct.Keys.MutableValues<K extends Object, V extends Object> Nested classes/interfaces inherited from interface org.refcodes.mixin.NameAccessor
org.refcodes.mixin.NameAccessor.NameBuilder<B extends org.refcodes.mixin.NameAccessor.NameBuilder<B>>, org.refcodes.mixin.NameAccessor.NameMutator, org.refcodes.mixin.NameAccessor.NameProperty
Nested classes/interfaces inherited from interface org.refcodes.struct.PathMap
org.refcodes.struct.PathMap.MutablePathMap<T extends Object>, org.refcodes.struct.PathMap.PathMapBuilder<T extends Object>
Nested classes/interfaces inherited from interface org.refcodes.properties.ProfileProperties
org.refcodes.properties.ProfileProperties.MutableProfileProperties, org.refcodes.properties.ProfileProperties.ProfilePropertiesBuilder
Nested classes/interfaces inherited from interface org.refcodes.properties.Properties
org.refcodes.properties.Properties.MutableProperties, org.refcodes.properties.Properties.PropertiesBuilder
Nested classes/interfaces inherited from interface org.refcodes.mixin.ResetEscapeCodeAccessor
org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeBuilder<B extends org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeBuilder<B>>, org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeMutator, org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeProperty
Nested classes/interfaces inherited from interface org.refcodes.properties.ResourceProperties
org.refcodes.properties.ResourceProperties.MutableResoureProperties, org.refcodes.properties.ResourceProperties.ResourcePropertiesBuilder
Nested classes/interfaces inherited from interface org.refcodes.cli.RootConditionAccessor
org.refcodes.cli.RootConditionAccessor.RootConditionBuilder<B extends org.refcodes.cli.RootConditionAccessor.RootConditionBuilder<B>>, org.refcodes.cli.RootConditionAccessor.RootConditionMutator, org.refcodes.cli.RootConditionAccessor.RootConditionProperty
Nested classes/interfaces inherited from interface org.refcodes.textual.TextBoxGridAccessor
org.refcodes.textual.TextBoxGridAccessor.TextBoxGridBuilder<B extends org.refcodes.textual.TextBoxGridAccessor.TextBoxGridBuilder<?>>, org.refcodes.textual.TextBoxGridAccessor.TextBoxGridMutator, org.refcodes.textual.TextBoxGridAccessor.TextBoxGridProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.TitleAccessor
org.refcodes.mixin.TitleAccessor.TitleBuilder<B extends org.refcodes.mixin.TitleAccessor.TitleBuilder<B>>, org.refcodes.mixin.TitleAccessor.TitleMutator, org.refcodes.mixin.TitleAccessor.TitleProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.TypeAccessor
org.refcodes.mixin.TypeAccessor.TypeBuilder<T extends Object,
B extends org.refcodes.mixin.TypeAccessor.TypeBuilder<T, B>>, org.refcodes.mixin.TypeAccessor.TypeMutator<T extends Object>, org.refcodes.mixin.TypeAccessor.TypeProperty<T extends Object> -
Field Summary
Fields inherited from interface org.refcodes.struct.PathMap
ANNOTATOR, DELIMITER
Fields inherited from interface org.refcodes.properties.Properties
DEFAULT_COMMENT
Fields inherited from interface org.refcodes.properties.ext.runtime.RuntimeProperties
DELIMITERS
-
Constructor Summary
ConstructorDescriptionConstructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments.RuntimePropertiesImpl
(String aSecret) Constructs aRuntimeProperties
instance with a custom secret for obfuscation.RuntimePropertiesImpl
(String[] aArgs) Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments: As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done.RuntimePropertiesImpl
(String[] aArgs, String aSecret) Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments: As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done.RuntimePropertiesImpl
(String[] aArgs, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments: As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done.RuntimePropertiesImpl
(org.refcodes.cli.ArgsSyntax aRootArgsSyntax) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments.RuntimePropertiesImpl
(org.refcodes.cli.ArgsSyntax aRootArgsSyntax, String aSecret) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments.RuntimePropertiesImpl
(org.refcodes.cli.ArgsSyntax aRootArgsSyntax, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments.RuntimePropertiesImpl
(org.refcodes.cli.Option<?> aRootOption) Constructs aRuntimeProperties
instance with the givenOption
used to parse command line arguments.RuntimePropertiesImpl
(org.refcodes.cli.Option<?> aRootOption, String aSecret) Constructs aRuntimeProperties
instance with the givenOption
used to parse command line arguments.RuntimePropertiesImpl
(org.refcodes.cli.Option<?> aRootOption, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs aRuntimeProperties
instance with the givenOption
used to parse command line arguments.RuntimePropertiesImpl
(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory) Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments.RuntimePropertiesImpl
(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String aSecret) Constructs aRuntimeProperties
instance with a custom secret for obfuscation.RuntimePropertiesImpl
(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String[] aArgs) Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments: As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done.RuntimePropertiesImpl
(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String[] aArgs, String aSecret) Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments: As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done.RuntimePropertiesImpl
(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String[] aArgs, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments: As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done.RuntimePropertiesImpl
(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.ArgsSyntax aRootArgsSyntax) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments.RuntimePropertiesImpl
(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.ArgsSyntax aRootArgsSyntax, String aSecret) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments.RuntimePropertiesImpl
(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.ArgsSyntax aRootArgsSyntax, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments.RuntimePropertiesImpl
(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Option<?> aRootOption) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments.RuntimePropertiesImpl
(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Option<?> aRootOption, String aSecret) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments.RuntimePropertiesImpl
(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Option<?> aRootOption, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs aRuntimeProperties
instance with the givenOption
used to parse command line arguments.RuntimePropertiesImpl
(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs theRuntimeProperties
with the given obfuscation modeRuntimePropertiesImpl
(org.refcodes.runtime.SystemContext aObfuscationMode) Constructs theRuntimeProperties
with the given obfuscation mode -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExample
(org.refcodes.cli.Example aExampleUsage) protected void
addProperties
(File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) Reads theResourceProperties.ResourcePropertiesBuilder
from the given data sink.protected void
addProperties
(InputStream aInputStream, char[] aDelimiters) Reads theResourceProperties
from the given data sink.protected void
addProperties
(Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) Reads theResourceProperties.ResourcePropertiesBuilder
from the given data sink.protected void
addProperties
(URL aUrl, char... aDelimiters) Reads theResourceProperties
from the given data sink.protected void
addProperties
(org.refcodes.properties.Properties aProperties) boolean
containsKey
(Object aKey) void
List<? extends org.refcodes.cli.Operand<?>>
List<? extends org.refcodes.cli.Operand<?>>
List<? extends org.refcodes.cli.Operand<?>>
List<? extends org.refcodes.cli.Operand<?>>
TheArgsParserProperties
are those properties derived from the command line arguments (as of thegetArgsSyntax()
).org.refcodes.cli.ArgsSyntax
char
List<org.refcodes.cli.Example>
getName()
protected org.refcodes.properties.Properties
char
org.refcodes.textual.TextBoxGrid
getTitle()
boolean
isEmpty()
boolean
keySet()
void
void
void
void
void
void
void
void
printLn()
void
void
void
void
org.refcodes.properties.Properties
reload()
org.refcodes.properties.Properties
reload
(org.refcodes.properties.ReloadMode aReloadMode) void
reset()
org.refcodes.properties.Properties
retrieveFrom
(String aFromPath) org.refcodes.properties.Properties
retrieveTo
(String aToPath) void
setBannerBorderEscapeCode
(String aBannerBorderEscCode) void
setBannerEscapeCode
(String aBannerEscCode) void
setBannerFont
(org.refcodes.textual.Font aBannerFont) void
setBannerFontPalette
(char[] aColorPalette) void
setCommandEscapeCode
(String aCommandEscCode) void
setConsoleWidth
(int aConsoleWidth) void
setCopyrightNote
(String aCopyrightNote) void
setDescription
(String aDescription) void
setDescriptionEscapeCode
(String aParamDescriptionEscCode) void
setErrorOut
(PrintStream aErrorOut) void
setEscapeCodesEnabled
(boolean isEscCodeEnabled) void
setLicenseNote
(String aLicenseNote) void
setLineBreak
(String aLineBreak) void
setLineSeparatorEscapeCode
(String aLineSeparatorEscCode) void
setMaxConsoleWidth
(int aMaxConsoleWidth) void
void
setObfuscationMode
(org.refcodes.runtime.SystemContext aObfuscationMode) Specifies the obfuscation mode to be used.void
setOptionEscapeCode
(String aOptEscCode) void
setParamEscapeCode
(String aParamEscCode) void
setResetEscapeCode
(String aResetEscCode) void
setRootArgsSyntax
(org.refcodes.cli.ArgsSyntax aRootArgsSyntax) void
setRootOption
(org.refcodes.cli.Option<?> aRootOption) void
void
setSeparatorLnChar
(char aSeparatorChar) void
setStandardOut
(PrintStream aStandardOut) void
setSyntaxNotation
(org.refcodes.cli.SyntaxNotation aSyntaxNotation) void
setTextBoxGrid
(org.refcodes.textual.TextBoxGrid aTextBoxGrid) void
int
size()
toDataStructure
(String aFromPath) org.refcodes.properties.Properties
toRuntimeProfile
(String... aProfiles) Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilder
instance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)
method.toSerialized
(char aDelimiter) Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilder
instance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)
method.toSerialized
(String aComment, char aDelimiter) Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilder
instance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)
method.values()
withEvalArgs
(String[] aArgs) withFilePath
(Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) withInputStream
(InputStream aInputStream, char... aDelimiters) withProperties
(org.refcodes.properties.Properties aProperties) A hook for you to provideProperties
programmatically.Methods inherited from class org.refcodes.properties.AbstractPropertiesDecorator
getAnnotator, setProperties, toDump, toDump, toPrintable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.cli.ArgsParser
addExample, printBody
Methods inherited from interface org.refcodes.struct.CanonicalMap
asArray, asArray, asArray, asArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asByteArray, asByteArray, asByteArray, asByteArray, asCharArray, asCharArray, asCharArray, asCharArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asIntArray, asIntArray, asIntArray, asIntArray, asLongArray, asLongArray, asLongArray, asLongArray, asShortArray, asShortArray, asShortArray, asShortArray, queryBetween, toMap, toProperties
Methods inherited from interface org.refcodes.mixin.DescriptionAccessor.DescriptionProperty
letDescription
Methods inherited from interface org.refcodes.mixin.Dumpable
toDump, toDump
Methods inherited from interface org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusProperty
letEscapeCodesEnabled
Methods inherited from interface org.refcodes.struct.InterOperableMap
getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBooleanOr, getBooleanOr, getBooleanOr, getBooleanOr, getBooleanOr, getByte, getByte, getByte, getByte, getByte, getByteOr, getByteOr, getByteOr, getByteOr, getByteOr, getChar, getChar, getChar, getChar, getChar, getCharOr, getCharOr, getCharOr, getCharOr, getCharOr, getClass, getClass, getClass, getClass, getClass, getClassOr, getClassOr, getClassOr, getClassOr, getClassOr, getDouble, getDouble, getDouble, getDouble, getDouble, getDoubleOr, getDoubleOr, getDoubleOr, getDoubleOr, getDoubleOr, getEnum, getEnum, getEnum, getEnum, getEnum, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getFloat, getFloat, getFloat, getFloat, getFloat, getFloatOr, getFloatOr, getFloatOr, getFloatOr, getFloatOr, getInt, getInt, getInt, getInt, getInt, getIntOr, getIntOr, getIntOr, getIntOr, getIntOr, getLong, getLong, getLong, getLong, getLong, getLongOr, getLongOr, getLongOr, getLongOr, getLongOr, getShort, getShort, getShort, getShort, getShort, getShortOr, getShortOr, getShortOr, getShortOr, getShortOr, getString, getString, getString, getString, getString, getStringOr, getStringOr, getStringOr, getStringOr, getStringOr
Methods inherited from interface org.refcodes.struct.Keys
getOr, use
Methods inherited from interface org.refcodes.mixin.NameAccessor.NameProperty
letName
Methods inherited from interface org.refcodes.struct.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, getArrayOr, getArrayOr, getArrayOr, getArrayOr, getArrayOr, 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, hasSubDirs, hasSubDirs, hasSubDirs, hasSubDirs, hasValue, hasValue, hasValue, hasValue, hasValue, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, isArray, isArray, isArray, isArray, isArray, isArray, isChild, isChild, isChild, isChild, isDir, isDir, isDir, isDir, isDir, isEqualTo, isIndexDir, isIndexDir, isIndexDir, isIndexDir, isIndexDir, isLeaf, isLeaf, isLeaf, isLeaf, isLeaf, isRootPath, keySet, keySet, keySet, keySet, 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, queryPaths, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, toDataStructure, toExternalPath, toInstance, toInstance, toLeaf, toMap, toNormalizedPath, toParentPath, toPath, toPath, toPath, toPath, toPathElements, toPathList, toPathStack, toPrintable, toPropertyPath, toType, toType, toType, toType, toType, toType, toType, toType
Methods inherited from interface org.refcodes.properties.ProfileProperties
getRuntimeProfiles, getRuntimeProfilesPath, toRuntimeProfile
Methods inherited from interface org.refcodes.properties.Properties
containsValue, getAnnotator, getDir, getDir, getDir, getDir, getDir, getDirAt, getDirAt, getDirAt, getDirAt, getDirAt, getDirAt, getDirs, getDirs, getDirs, getDirs, getDirs, getType, query, query, query, query, query, queryBetween, queryBetween, queryBetween, queryBetween, queryBetween, queryFrom, queryFrom, queryFrom, queryFrom, queryFrom, queryFrom, queryTo, queryTo, queryTo, queryTo, queryTo, queryTo, retrieveBetween, retrieveBetween, retrieveBetween, retrieveBetween, retrieveBetween, retrieveFrom, retrieveFrom, retrieveFrom, retrieveFrom, retrieveTo, retrieveTo, retrieveTo, retrieveTo
Methods inherited from interface org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeProperty
letResetEscapeCode
Methods inherited from interface org.refcodes.properties.ResourceLoaderMixin
withFile, withFilePath, withFilePath, withFilePath
Methods inherited from interface org.refcodes.properties.ResourceProperties
toSerialized
Methods inherited from interface org.refcodes.properties.ext.runtime.RuntimeProperties
withBannerBorderEscapeCode, withBannerEscapeCode, withBannerFont, withBannerFontPalette, withCommandEscapeCode, withConsoleWidth, withCopyrightNote, withDescription, withDescriptionEscapeCode, withErrorOut, withEscapeCodesEnabled, withEvalArgs, withEvalArgs, withEvalArgs, withExample, withExample, withExamples, withExamples, withFile, withFile, withFilePath, withFilePath, withInputStream, withLicenseNote, withLineBreak, withLineSeparatorEscapeCode, withMaxConsoleWidth, withName, withObfuscationMode, withOptionEscapeCode, withParamEscapeCode, withResetEscapeCode, withRootArgsSyntax, withRootOption, withSecret, withSeparatorLnChar, withStandardOut, withSyntaxNotation, withTextBoxGrid, withTitle, withUrl
Methods inherited from interface org.refcodes.textual.TextBoxGridAccessor.TextBoxGridProperty
letTextBoxGrid
Methods inherited from interface org.refcodes.mixin.TitleAccessor.TitleProperty
letTitle
-
Constructor Details
-
RuntimePropertiesImpl
public RuntimePropertiesImpl()Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments. As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments when invokingwithEvalArgs(String[])
. -
RuntimePropertiesImpl
Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments: As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments.- Parameters:
aArgs
- The command line arguments to be evaluated.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.cli.ArgsSyntax aRootArgsSyntax) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments.- Parameters:
aRootArgsSyntax
- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[])
.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.cli.Option<?> aRootOption) Constructs aRuntimeProperties
instance with the givenOption
used to parse command line arguments.- Parameters:
aRootOption
- The root option being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[])
.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.runtime.SystemContext aObfuscationMode) Constructs theRuntimeProperties
with the given obfuscation mode- Parameters:
aObfuscationMode
- TheSystemContext
specifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments: As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments. Also constructs theRuntimeProperties
with the given obfuscation mode- Parameters:
aArgs
- The command line arguments to be evaluated.aObfuscationMode
- TheSystemContext
specifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.cli.ArgsSyntax aRootArgsSyntax, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments. Also constructs theRuntimeProperties
with the given obfuscation mode.- Parameters:
aRootArgsSyntax
- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[])
.aObfuscationMode
- TheSystemContext
specifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.cli.Option<?> aRootOption, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs aRuntimeProperties
instance with the givenOption
used to parse command line arguments. Also constructs theRuntimeProperties
with the given obfuscation mode.- Parameters:
aRootOption
- The root option being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[])
.aObfuscationMode
- TheSystemContext
specifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
Constructs aRuntimeProperties
instance with a custom secret for obfuscation.- Parameters:
aSecret
- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments: As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments. Also constructs aRuntimeProperties
instance with a custom secret for obfuscation.- Parameters:
aArgs
- The command line arguments to be evaluated.aSecret
- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments. Also constructs aRuntimeProperties
instance with a custom secret for obfuscation.- Parameters:
aRootArgsSyntax
- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[])
.aSecret
- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
Constructs aRuntimeProperties
instance with the givenOption
used to parse command line arguments. Also constructs aRuntimeProperties
instance with a custom secret for obfuscation.- Parameters:
aRootOption
- The root option being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[])
.aSecret
- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory) Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments. As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments when invokingwithEvalArgs(String[])
.- Parameters:
aPropertiesBuilderFactory
- The factory to use when constructingResourceProperties
instances.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String[] aArgs) Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments: As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments.- Parameters:
aPropertiesBuilderFactory
- The factory to use when constructingResourceProperties
instances.aArgs
- The command line arguments to be evaluated.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Option<?> aRootOption) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments.- Parameters:
aPropertiesBuilderFactory
- The factory to use when constructingResourceProperties
instances.aRootOption
- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[])
.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.ArgsSyntax aRootArgsSyntax) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments.- Parameters:
aPropertiesBuilderFactory
- The factory to use when constructingResourceProperties
instances.aRootArgsSyntax
- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[])
.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs theRuntimeProperties
with the given obfuscation mode- Parameters:
aPropertiesBuilderFactory
- The factory to use when constructingResourceProperties
instances.aObfuscationMode
- TheSystemContext
specifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String[] aArgs, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments: As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments. Also constructs theRuntimeProperties
with the given obfuscation mode- Parameters:
aPropertiesBuilderFactory
- The factory to use when constructingResourceProperties
instances.aArgs
- The command line arguments to be evaluated.aObfuscationMode
- TheSystemContext
specifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Option<?> aRootOption, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs aRuntimeProperties
instance with the givenOption
used to parse command line arguments. Also constructs theRuntimeProperties
with the given obfuscation mode.- Parameters:
aPropertiesBuilderFactory
- The factory to use when constructingResourceProperties
instances.aRootOption
- The root option being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[])
.aObfuscationMode
- TheSystemContext
specifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.ArgsSyntax aRootArgsSyntax, org.refcodes.runtime.SystemContext aObfuscationMode) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments. Also constructs theRuntimeProperties
with the given obfuscation mode.- Parameters:
aPropertiesBuilderFactory
- The factory to use when constructingResourceProperties
instances.aRootArgsSyntax
- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[])
.aObfuscationMode
- TheSystemContext
specifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String aSecret) Constructs aRuntimeProperties
instance with a custom secret for obfuscation.- Parameters:
aPropertiesBuilderFactory
- The factory to use when constructingResourceProperties
instances.aSecret
- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String[] aArgs, String aSecret) Constructs aRuntimeProperties
instance with noArgsSyntax
for parsing command line arguments: As no syntax notation is required by the constructor (no rootArgsSyntax
), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments. Also constructs aRuntimeProperties
instance with a custom secret for obfuscation.- Parameters:
aPropertiesBuilderFactory
- The factory to use when constructingResourceProperties
instances.aArgs
- The command line arguments to be evaluated.aSecret
- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Option<?> aRootOption, String aSecret) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments. Also constructs aRuntimeProperties
instance with a custom secret for obfuscation.- Parameters:
aPropertiesBuilderFactory
- The factory to use when constructingResourceProperties
instances.aRootOption
- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[])
.aSecret
- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.ArgsSyntax aRootArgsSyntax, String aSecret) Constructs aRuntimeProperties
instance with the givenArgsSyntax
used to parse command line arguments. Also constructs aRuntimeProperties
instance with a custom secret for obfuscation.- Parameters:
aPropertiesBuilderFactory
- The factory to use when constructingResourceProperties
instances.aRootArgsSyntax
- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[])
.aSecret
- The secret to be used when encountering upon obfuscated properties.
-
-
Method Details
-
getExamples
- Specified by:
getExamples
in interfaceorg.refcodes.cli.ArgsParser
-
addExample
public void addExample(org.refcodes.cli.Example aExampleUsage) - Specified by:
addExample
in interfaceorg.refcodes.cli.ArgsParser
-
printExamples
public void printExamples()- Specified by:
printExamples
in interfaceorg.refcodes.cli.ArgsParser
-
getLineSeparatorEscapeCode
- Specified by:
getLineSeparatorEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setLineSeparatorEscapeCode
- Specified by:
setLineSeparatorEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
getBannerEscapeCode
- Specified by:
getBannerEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
getBannerBorderEscapeCode
- Specified by:
getBannerBorderEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setBannerEscapeCode
- Specified by:
setBannerEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setBannerBorderEscapeCode
- Specified by:
setBannerBorderEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
getDescriptionEscapeCode
- Specified by:
getDescriptionEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setDescriptionEscapeCode
- Specified by:
setDescriptionEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
getCommandEscapeCode
- Specified by:
getCommandEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setCommandEscapeCode
- Specified by:
setCommandEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
isEscapeCodesEnabled
public boolean isEscapeCodesEnabled()- Specified by:
isEscapeCodesEnabled
in interfaceorg.refcodes.mixin.EscapeCodesStatusAccessor
-
setEscapeCodesEnabled
public void setEscapeCodesEnabled(boolean isEscCodeEnabled) - Specified by:
setEscapeCodesEnabled
in interfaceorg.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusMutator
-
getResetEscapeCode
- Specified by:
getResetEscapeCode
in interfaceorg.refcodes.mixin.ResetEscapeCodeAccessor
-
setResetEscapeCode
- Specified by:
setResetEscapeCode
in interfaceorg.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeMutator
-
getParamEscapeCode
- Specified by:
getParamEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setParamEscapeCode
- Specified by:
setParamEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
getOptionEscapeCode
- Specified by:
getOptionEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setOptionEscapeCode
- Specified by:
setOptionEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
getCopyrightNote
- Specified by:
getCopyrightNote
in interfaceorg.refcodes.cli.ArgsParser
-
getDescription
- Specified by:
getDescription
in interfaceorg.refcodes.cli.ArgsParser
- Specified by:
getDescription
in interfaceorg.refcodes.mixin.DescriptionAccessor
-
getLicenseNote
- Specified by:
getLicenseNote
in interfaceorg.refcodes.cli.ArgsParser
-
setRootArgsSyntax
public void setRootArgsSyntax(org.refcodes.cli.ArgsSyntax aRootArgsSyntax) - Specified by:
setRootArgsSyntax
in interfaceorg.refcodes.cli.RootConditionAccessor.RootConditionMutator
-
setRootOption
public void setRootOption(org.refcodes.cli.Option<?> aRootOption) - Specified by:
setRootOption
in interfaceorg.refcodes.cli.RootConditionAccessor.RootConditionMutator
-
setSecret
- Specified by:
setSecret
in interfaceorg.refcodes.mixin.SecretAccessor.SecretMutator
-
setObfuscationMode
public void setObfuscationMode(org.refcodes.runtime.SystemContext aObfuscationMode) Specifies the obfuscation mode to be used.- Specified by:
setObfuscationMode
in interfaceRuntimeProperties
- Parameters:
aObfuscationMode
- TheSystemContext
specifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
getSeparatorLnChar
public char getSeparatorLnChar()- Specified by:
getSeparatorLnChar
in interfaceorg.refcodes.cli.ArgsParser
-
getTextBoxGrid
public org.refcodes.textual.TextBoxGrid getTextBoxGrid()- Specified by:
getTextBoxGrid
in interfaceorg.refcodes.textual.TextBoxGridAccessor
-
setTextBoxGrid
public void setTextBoxGrid(org.refcodes.textual.TextBoxGrid aTextBoxGrid) - Specified by:
setTextBoxGrid
in interfaceorg.refcodes.textual.TextBoxGridAccessor.TextBoxGridMutator
-
withProperties
A hook for you to provideProperties
programmatically. The later you addProperties
, the lower their precedence.- Specified by:
withProperties
in interfaceRuntimeProperties
- Parameters:
aProperties
- TheProperties
to be added.- Returns:
- This instance as of the builder pattern to apply method chaining.
-
addProperties
protected void addProperties(org.refcodes.properties.Properties aProperties) -
withFile
public RuntimeProperties withFile(File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException - Specified by:
withFile
in interfaceorg.refcodes.properties.ResourceLoaderMixin<RuntimeProperties>
- Throws:
IOException
ParseException
-
withInputStream
public RuntimeProperties withInputStream(InputStream aInputStream, char... aDelimiters) throws IOException, ParseException - Specified by:
withInputStream
in interfaceorg.refcodes.properties.ResourceLoaderMixin<RuntimeProperties>
- Throws:
IOException
ParseException
-
withFilePath
public RuntimeProperties withFilePath(Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException - Specified by:
withFilePath
in interfaceorg.refcodes.properties.ResourceLoaderMixin<RuntimeProperties>
- Throws:
IOException
ParseException
-
withUrl
- Specified by:
withUrl
in interfaceorg.refcodes.properties.ResourceLoaderMixin<RuntimeProperties>
- Throws:
IOException
ParseException
-
withEvalArgs
- Specified by:
withEvalArgs
in interfaceorg.refcodes.cli.ArgsParser
- Specified by:
withEvalArgs
in interfaceorg.refcodes.cli.ArgsParserMixin<org.refcodes.cli.ArgsParser>
- Specified by:
withEvalArgs
in interfaceArgsParserProperties
- Specified by:
withEvalArgs
in interfaceRuntimeProperties
- Throws:
org.refcodes.cli.ArgsSyntaxException
-
errorLn
- Specified by:
errorLn
in interfaceorg.refcodes.cli.ArgsParser
-
evalArgs
public List<? extends org.refcodes.cli.Operand<?>> evalArgs(List<String> aArgs) throws org.refcodes.cli.ArgsSyntaxException - Specified by:
evalArgs
in interfaceorg.refcodes.cli.ArgsParser
- Specified by:
evalArgs
in interfaceArgsParserProperties
- Throws:
org.refcodes.cli.ArgsSyntaxException
-
evalArgs
public List<? extends org.refcodes.cli.Operand<?>> evalArgs(String aToPath, List<String> aArgs) throws org.refcodes.cli.ArgsSyntaxException - Specified by:
evalArgs
in interfaceArgsParserProperties
- Throws:
org.refcodes.cli.ArgsSyntaxException
-
evalArgs
public List<? extends org.refcodes.cli.Operand<?>> evalArgs(String aToPath, String[] aArgs) throws org.refcodes.cli.ArgsSyntaxException - Specified by:
evalArgs
in interfaceArgsParserProperties
- Throws:
org.refcodes.cli.ArgsSyntaxException
-
evalArgs
public List<? extends org.refcodes.cli.Operand<?>> evalArgs(String[] aArgs) throws org.refcodes.cli.ArgsSyntaxException - Specified by:
evalArgs
in interfaceorg.refcodes.cli.ArgsParser
- Specified by:
evalArgs
in interfaceArgsParserProperties
- Throws:
org.refcodes.cli.ArgsSyntaxException
-
getArgsSyntax
public org.refcodes.cli.ArgsSyntax getArgsSyntax()- Specified by:
getArgsSyntax
in interfaceorg.refcodes.cli.ArgsParser
- Specified by:
getArgsSyntax
in interfaceorg.refcodes.cli.RootConditionAccessor
-
getArgsParserProperties
TheArgsParserProperties
are those properties derived from the command line arguments (as of thegetArgsSyntax()
).- Specified by:
getArgsParserProperties
in interfaceArgsParserPropertiesAccessor
-
printHeader
public void printHeader()- Specified by:
printHeader
in interfaceorg.refcodes.cli.ArgsParser
-
printBanner
public void printBanner()- Specified by:
printBanner
in interfaceorg.refcodes.cli.ArgsParser
-
printCopyrightNote
public void printCopyrightNote()- Specified by:
printCopyrightNote
in interfaceorg.refcodes.cli.ArgsParser
-
printDescription
public void printDescription()- Specified by:
printDescription
in interfaceorg.refcodes.cli.ArgsParser
-
printHelp
public void printHelp()- Specified by:
printHelp
in interfaceorg.refcodes.cli.ArgsParser
-
printLicenseNote
public void printLicenseNote()- Specified by:
printLicenseNote
in interfaceorg.refcodes.cli.ArgsParser
-
printLn
public void printLn()- Specified by:
printLn
in interfaceorg.refcodes.cli.ArgsParser
-
printLn
- Specified by:
printLn
in interfaceorg.refcodes.cli.ArgsParser
-
printOptions
public void printOptions()- Specified by:
printOptions
in interfaceorg.refcodes.cli.ArgsParser
-
printSeparatorLn
public void printSeparatorLn()- Specified by:
printSeparatorLn
in interfaceorg.refcodes.cli.ArgsParser
-
printSynopsis
public void printSynopsis()- Specified by:
printSynopsis
in interfaceorg.refcodes.cli.ArgsParser
-
reset
public void reset()- Specified by:
reset
in interfaceorg.refcodes.mixin.Resetable
-
setBannerFont
public void setBannerFont(org.refcodes.textual.Font aBannerFont) - Specified by:
setBannerFont
in interfaceorg.refcodes.cli.ArgsParser
-
setBannerFontPalette
public void setBannerFontPalette(char[] aColorPalette) - Specified by:
setBannerFontPalette
in interfaceorg.refcodes.cli.ArgsParser
-
setConsoleWidth
public void setConsoleWidth(int aConsoleWidth) - Specified by:
setConsoleWidth
in interfaceorg.refcodes.cli.ArgsParser
-
setCopyrightNote
- Specified by:
setCopyrightNote
in interfaceorg.refcodes.cli.ArgsParser
-
setDescription
- Specified by:
setDescription
in interfaceorg.refcodes.mixin.DescriptionAccessor.DescriptionMutator
-
setErrorOut
- Specified by:
setErrorOut
in interfaceorg.refcodes.cli.ArgsParser
-
setLicenseNote
- Specified by:
setLicenseNote
in interfaceorg.refcodes.cli.ArgsParser
-
setLineBreak
- Specified by:
setLineBreak
in interfaceorg.refcodes.cli.ArgsParser
-
setMaxConsoleWidth
public void setMaxConsoleWidth(int aMaxConsoleWidth) - Specified by:
setMaxConsoleWidth
in interfaceorg.refcodes.cli.ArgsParser
-
setName
- Specified by:
setName
in interfaceorg.refcodes.mixin.NameAccessor.NameMutator
-
setSeparatorLnChar
public void setSeparatorLnChar(char aSeparatorChar) - Specified by:
setSeparatorLnChar
in interfaceorg.refcodes.cli.ArgsParser
-
setStandardOut
- Specified by:
setStandardOut
in interfaceorg.refcodes.cli.ArgsParser
-
setSyntaxNotation
public void setSyntaxNotation(org.refcodes.cli.SyntaxNotation aSyntaxNotation) - Specified by:
setSyntaxNotation
in interfaceorg.refcodes.cli.ArgsParser
-
setTitle
- Specified by:
setTitle
in interfaceorg.refcodes.mixin.TitleAccessor.TitleMutator
-
reload
public org.refcodes.properties.Properties reload() throws IOException, IllegalStateException, ParseException- Specified by:
reload
in interfaceorg.refcodes.properties.ResourceProperties
- Throws:
IOException
IllegalStateException
ParseException
-
reload
public org.refcodes.properties.Properties reload(org.refcodes.properties.ReloadMode aReloadMode) throws IOException, IllegalStateException, ParseException - Specified by:
reload
in interfaceorg.refcodes.properties.ResourceProperties
- Throws:
IOException
IllegalStateException
ParseException
-
getDelimiter
public char getDelimiter()- Specified by:
getDelimiter
in interfaceorg.refcodes.mixin.DelimiterAccessor
- Specified by:
getDelimiter
in interfaceorg.refcodes.properties.Properties
- Overrides:
getDelimiter
in classorg.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
-
size
public int size()- Specified by:
size
in interfaceorg.refcodes.struct.Containable
- Overrides:
size
in classorg.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
-
containsKey
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceorg.refcodes.mixin.EmptyAccessor
- Overrides:
isEmpty
in classorg.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
-
get
-
keySet
-
values
-
retrieveFrom
- Specified by:
retrieveFrom
in interfaceorg.refcodes.struct.CanonicalMap
- Specified by:
retrieveFrom
in interfaceorg.refcodes.struct.PathMap<String>
- Specified by:
retrieveFrom
in interfaceorg.refcodes.properties.Properties
- Overrides:
retrieveFrom
in classorg.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
-
retrieveTo
- Specified by:
retrieveTo
in interfaceorg.refcodes.struct.CanonicalMap
- Specified by:
retrieveTo
in interfaceorg.refcodes.struct.PathMap<String>
- Specified by:
retrieveTo
in interfaceorg.refcodes.properties.Properties
- Overrides:
retrieveTo
in classorg.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
-
getTitle
- Specified by:
getTitle
in interfaceorg.refcodes.mixin.TitleAccessor
-
getName
- Specified by:
getName
in interfaceorg.refcodes.mixin.NameAccessor
-
toDataStructure
- Specified by:
toDataStructure
in interfaceorg.refcodes.struct.PathMap<String>
- Overrides:
toDataStructure
in classorg.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
-
toSerialized
Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilder
instance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)
method. The behavior of this method is implementation specific. See the javadoc of the implementation in question (such astoSerialized()
) for implementation details.- Specified by:
toSerialized
in interfaceorg.refcodes.properties.ResourceProperties
- Specified by:
toSerialized
in interfaceRuntimeProperties
-
toSerialized
Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilder
instance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)
method. The behavior of this method is implementation specific. See the javadoc of the implementation in question (such astoSerialized()
) for implementation details.- Specified by:
toSerialized
in interfaceorg.refcodes.properties.ResourceProperties
- Specified by:
toSerialized
in interfaceRuntimeProperties
-
toSerialized
Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilder
instance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)
method.- Specified by:
toSerialized
in interfaceorg.refcodes.properties.ResourceProperties
-
toRuntimeProfile
- Specified by:
toRuntimeProfile
in interfaceorg.refcodes.properties.ProfileProperties
-
getProperties
protected org.refcodes.properties.Properties getProperties()- Overrides:
getProperties
in classorg.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
-
addProperties
protected void addProperties(File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException Reads theResourceProperties.ResourcePropertiesBuilder
from the given data sink.- Parameters:
aFile
- The data sink from which to read theResourceProperties.ResourcePropertiesBuilder
.aConfigLocator
- TheConfigLocator
specifying where to seek for properties.aDelimiters
- The delimiters in the properties file to identity a path delimiter.- Throws:
IOException
- Thrown in case there were problems reading the data sink.ParseException
- Thrown in case there were problems parsing the data from the data sink.
-
addProperties
protected void addProperties(InputStream aInputStream, char[] aDelimiters) throws IOException, ParseException Reads theResourceProperties
from the given data sink.- Parameters:
aInputStream
- The data sink from which to read theResourceProperties
.aDelimiters
- The delimiters in the properties file to identity a path delimiter.- Throws:
IOException
- Thrown in case there were problems reading the data sink.ParseException
- Thrown in case there were problems parsing the data from the data sink.
-
addProperties
protected void addProperties(Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException Reads theResourceProperties.ResourcePropertiesBuilder
from the given data sink.- Parameters:
aResourceClass
- The class which's class loader is to take care of loading the properties (from inside a JAR).aFilePath
- The data sink from which to read theResourceProperties.ResourcePropertiesBuilder
.aConfigLocator
- TheConfigLocator
specifying where to seek for properties.aDelimiters
- The delimiters in the properties file to identity a path delimiter.- Throws:
IOException
- Thrown in case there were problems reading the data sink.ParseException
- Thrown in case there were problems parsing the data from the data sink.
-
addProperties
Reads theResourceProperties
from the given data sink.- Parameters:
aUrl
- The data sink from which to read theResourceProperties
.aDelimiters
- The delimiters in the properties file to identity a path delimiter.- Throws:
IOException
- Thrown in case there were problems reading the data sink.ParseException
- Thrown in case there were problems parsing the data from the data sink.
-