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.component.Resetable
,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.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
TheRuntimePropertiesImpl
composite represent command line properties, system properties as well as environment variables (in that order) and resource properties. TheRuntimePropertiesImpl
are actually constructed fromArgsParserProperties
,SystemProperties
,EnvironmentProperties
andResourceProperties
instances (in that precedence). Add theResourceProperties
via the following methodsRuntimeProperties.withFile(File)
,RuntimeProperties.withFilePath(String)
,RuntimeProperties.withUrl(URL)
orRuntimeProperties.withInputStream(InputStream)
. Obfuscation may be applied to the properties as of theObfuscationProperties
andObfuscationProperties.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.properties.ext.runtime.RuntimeProperties
DELIMITERS
-
-
Constructor Summary
Constructors Constructor Description RuntimePropertiesImpl()
Constructs 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
errorLn(String aLine)
List<? extends org.refcodes.cli.Operand<?>>
evalArgs(String[] aArgs)
List<? extends org.refcodes.cli.Operand<?>>
evalArgs(String aToPath, String[] aArgs)
List<? extends org.refcodes.cli.Operand<?>>
evalArgs(String aToPath, List<String> aArgs)
List<? extends org.refcodes.cli.Operand<?>>
evalArgs(List<String> aArgs)
String
get(Object aKey)
ArgsParserProperties
getArgsParserProperties()
TheArgsParserProperties
are those properties derived from the command line arguments (as of thegetArgsSyntax()
).org.refcodes.cli.ArgsSyntax
getArgsSyntax()
String
getBannerBorderEscapeCode()
String
getBannerEscapeCode()
String
getCommandEscapeCode()
String
getCopyrightNote()
char
getDelimiter()
String
getDescription()
String
getDescriptionEscapeCode()
List<org.refcodes.cli.Example>
getExamples()
String
getLicenseNote()
String
getLineSeparatorEscapeCode()
String
getName()
String
getOptionEscapeCode()
String
getParamEscapeCode()
protected org.refcodes.properties.Properties
getProperties()
String
getResetEscapeCode()
char
getSeparatorLnChar()
org.refcodes.textual.TextBoxGrid
getTextBoxGrid()
String
getTitle()
boolean
isEmpty()
boolean
isEscapeCodesEnabled()
Set<String>
keySet()
void
printBanner()
void
printCopyrightNote()
void
printDescription()
void
printExamples()
void
printHelp()
void
printLicenseNote()
void
printLn()
void
printLn(String aLine)
void
printOptions()
void
printSeparatorLn()
void
printSynopsis()
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
setName(String aName)
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
setSecret(String aSecret)
void
setSeparatorLnChar(char aSeparatorChar)
void
setStandardOut(PrintStream aStandardOut)
void
setSyntaxNotation(org.refcodes.cli.SyntaxNotation aSyntaxNotation)
void
setTextBoxGrid(org.refcodes.textual.TextBoxGrid aTextBoxGrid)
void
setTitle(String aTitle)
int
size()
Object
toDataStructure(String aFromPath)
org.refcodes.properties.Properties
toRuntimeProfile(String... aProfiles)
String
toSerialized()
Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilder
instance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)
method.String
toSerialized(char aDelimiter)
Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilder
instance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)
method.String
toSerialized(String aComment, char aDelimiter)
Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilder
instance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)
method.Collection<String>
values()
RuntimeProperties
withEvalArgs(String[] aArgs)
RuntimeProperties
withFile(File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)
RuntimeProperties
withFilePath(Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)
RuntimeProperties
withInputStream(InputStream aInputStream, char... aDelimiters)
RuntimeProperties
withProperties(org.refcodes.properties.Properties aProperties)
A hook for you to provideProperties
programmatically.RuntimeProperties
withUrl(URL aUrl, char... aDelimiters)
-
Methods inherited from class org.refcodes.properties.AbstractPropertiesDecorator
getAnnotator, setProperties
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.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.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, 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.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
-
-
-
-
Constructor Detail
-
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
public 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. 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
public 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. 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
public RuntimePropertiesImpl(String aSecret)
Constructs aRuntimeProperties
instance with a custom secret for obfuscation.- Parameters:
aSecret
- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
public 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. 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
public RuntimePropertiesImpl(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:
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
public RuntimePropertiesImpl(org.refcodes.cli.Option<?> aRootOption, String aSecret)
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 Detail
-
getExamples
public List<org.refcodes.cli.Example> 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
public String getLineSeparatorEscapeCode()
- Specified by:
getLineSeparatorEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setLineSeparatorEscapeCode
public void setLineSeparatorEscapeCode(String aLineSeparatorEscCode)
- Specified by:
setLineSeparatorEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
getBannerEscapeCode
public String getBannerEscapeCode()
- Specified by:
getBannerEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
getBannerBorderEscapeCode
public String getBannerBorderEscapeCode()
- Specified by:
getBannerBorderEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setBannerEscapeCode
public void setBannerEscapeCode(String aBannerEscCode)
- Specified by:
setBannerEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setBannerBorderEscapeCode
public void setBannerBorderEscapeCode(String aBannerBorderEscCode)
- Specified by:
setBannerBorderEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
getDescriptionEscapeCode
public String getDescriptionEscapeCode()
- Specified by:
getDescriptionEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setDescriptionEscapeCode
public void setDescriptionEscapeCode(String aParamDescriptionEscCode)
- Specified by:
setDescriptionEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
getCommandEscapeCode
public String getCommandEscapeCode()
- Specified by:
getCommandEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setCommandEscapeCode
public void setCommandEscapeCode(String aCommandEscCode)
- 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
public String getResetEscapeCode()
- Specified by:
getResetEscapeCode
in interfaceorg.refcodes.mixin.ResetEscapeCodeAccessor
-
setResetEscapeCode
public void setResetEscapeCode(String aResetEscCode)
- Specified by:
setResetEscapeCode
in interfaceorg.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeMutator
-
getParamEscapeCode
public String getParamEscapeCode()
- Specified by:
getParamEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setParamEscapeCode
public void setParamEscapeCode(String aParamEscCode)
- Specified by:
setParamEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
getOptionEscapeCode
public String getOptionEscapeCode()
- Specified by:
getOptionEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
setOptionEscapeCode
public void setOptionEscapeCode(String aOptEscCode)
- Specified by:
setOptionEscapeCode
in interfaceorg.refcodes.cli.ArgsParser
-
getCopyrightNote
public String getCopyrightNote()
- Specified by:
getCopyrightNote
in interfaceorg.refcodes.cli.ArgsParser
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceorg.refcodes.cli.ArgsParser
- Specified by:
getDescription
in interfaceorg.refcodes.mixin.DescriptionAccessor
-
getLicenseNote
public String 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
public void setSecret(String aSecret)
- 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
public RuntimeProperties withProperties(org.refcodes.properties.Properties aProperties)
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
public RuntimeProperties withUrl(URL aUrl, char... aDelimiters) throws IOException, ParseException
- Specified by:
withUrl
in interfaceorg.refcodes.properties.ResourceLoaderMixin<RuntimeProperties>
- Throws:
IOException
ParseException
-
withEvalArgs
public RuntimeProperties withEvalArgs(String[] aArgs) throws org.refcodes.cli.ArgsSyntaxException
- 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
public void errorLn(String aLine)
- 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
public ArgsParserProperties getArgsParserProperties()
TheArgsParserProperties
are those properties derived from the command line arguments (as of thegetArgsSyntax()
).- Specified by:
getArgsParserProperties
in interfaceArgsParserPropertiesAccessor
-
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
public void printLn(String aLine)
- 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.component.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
public void setCopyrightNote(String aCopyrightNote)
- Specified by:
setCopyrightNote
in interfaceorg.refcodes.cli.ArgsParser
-
setDescription
public void setDescription(String aDescription)
- Specified by:
setDescription
in interfaceorg.refcodes.mixin.DescriptionAccessor.DescriptionMutator
-
setErrorOut
public void setErrorOut(PrintStream aErrorOut)
- Specified by:
setErrorOut
in interfaceorg.refcodes.cli.ArgsParser
-
setLicenseNote
public void setLicenseNote(String aLicenseNote)
- Specified by:
setLicenseNote
in interfaceorg.refcodes.cli.ArgsParser
-
setLineBreak
public void setLineBreak(String aLineBreak)
- Specified by:
setLineBreak
in interfaceorg.refcodes.cli.ArgsParser
-
setMaxConsoleWidth
public void setMaxConsoleWidth(int aMaxConsoleWidth)
- Specified by:
setMaxConsoleWidth
in interfaceorg.refcodes.cli.ArgsParser
-
setName
public void setName(String aName)
- Specified by:
setName
in interfaceorg.refcodes.mixin.NameAccessor.NameMutator
-
setSeparatorLnChar
public void setSeparatorLnChar(char aSeparatorChar)
- Specified by:
setSeparatorLnChar
in interfaceorg.refcodes.cli.ArgsParser
-
setStandardOut
public void setStandardOut(PrintStream aStandardOut)
- 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
public void setTitle(String aTitle)
- 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
public boolean containsKey(Object aKey)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceorg.refcodes.mixin.EmptyAccessor
- Overrides:
isEmpty
in classorg.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
-
values
public Collection<String> values()
-
retrieveFrom
public org.refcodes.properties.Properties retrieveFrom(String aFromPath)
- 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
public org.refcodes.properties.Properties retrieveTo(String aToPath)
- 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
public String getTitle()
- Specified by:
getTitle
in interfaceorg.refcodes.mixin.TitleAccessor
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.refcodes.mixin.NameAccessor
-
toDataStructure
public Object toDataStructure(String aFromPath)
- Specified by:
toDataStructure
in interfaceorg.refcodes.struct.PathMap<String>
- Overrides:
toDataStructure
in classorg.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
-
toSerialized
public String 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
public String toSerialized(char aDelimiter)
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
public String toSerialized(String aComment, char aDelimiter)
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
public org.refcodes.properties.Properties toRuntimeProfile(String... aProfiles)
- 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
protected void addProperties(URL aUrl, char... aDelimiters) throws IOException, ParseException
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.
-
-