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.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, 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.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.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

    Constructors
    Constructor Description
    RuntimePropertiesImpl()
    Constructs a RuntimeProperties instance with no Condition for parsing command line arguments.
    RuntimePropertiesImpl​(String aSecret)
    Constructs a RuntimeProperties instance with a custom secret for obfuscation.
    RuntimePropertiesImpl​(String[] aArgs)
    Constructs a RuntimeProperties instance with no Condition for parsing command line arguments: As no syntax notation is required by the constructor (no root Condition), no syntax validation is done.
    RuntimePropertiesImpl​(String[] aArgs, String aSecret)
    Constructs a RuntimeProperties instance with no Condition for parsing command line arguments: As no syntax notation is required by the constructor (no root Condition), no syntax validation is done.
    RuntimePropertiesImpl​(String[] aArgs, org.refcodes.runtime.SystemContext aObfuscationMode)
    Constructs a RuntimeProperties instance with no Condition for parsing command line arguments: As no syntax notation is required by the constructor (no root Condition), no syntax validation is done.
    RuntimePropertiesImpl​(org.refcodes.cli.Condition aRootCondition)
    Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments.
    RuntimePropertiesImpl​(org.refcodes.cli.Condition aRootCondition, String aSecret)
    Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments.
    RuntimePropertiesImpl​(org.refcodes.cli.Condition aRootCondition, org.refcodes.runtime.SystemContext aObfuscationMode)
    Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments.
    RuntimePropertiesImpl​(org.refcodes.cli.Option<?> aRootOption)
    Constructs a RuntimeProperties instance with the given Option used to parse command line arguments.
    RuntimePropertiesImpl​(org.refcodes.cli.Option<?> aRootOption, String aSecret)
    Constructs a RuntimeProperties instance with the given Option used to parse command line arguments.
    RuntimePropertiesImpl​(org.refcodes.cli.Option<?> aRootOption, org.refcodes.runtime.SystemContext aObfuscationMode)
    Constructs a RuntimeProperties instance with the given Option used to parse command line arguments.
    RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory)
    Constructs a RuntimeProperties instance with no Condition for parsing command line arguments.
    RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String aSecret)
    Constructs a RuntimeProperties instance with a custom secret for obfuscation.
    RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String[] aArgs)
    Constructs a RuntimeProperties instance with no Condition for parsing command line arguments: As no syntax notation is required by the constructor (no root Condition), no syntax validation is done.
    RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String[] aArgs, String aSecret)
    Constructs a RuntimeProperties instance with no Condition for parsing command line arguments: As no syntax notation is required by the constructor (no root Condition), no syntax validation is done.
    RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String[] aArgs, org.refcodes.runtime.SystemContext aObfuscationMode)
    Constructs a RuntimeProperties instance with no Condition for parsing command line arguments: As no syntax notation is required by the constructor (no root Condition), no syntax validation is done.
    RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Condition aRootCondition)
    Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments.
    RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Condition aRootCondition, String aSecret)
    Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments.
    RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Condition aRootCondition, org.refcodes.runtime.SystemContext aObfuscationMode)
    Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments.
    RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Option<?> aRootOption)
    Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments.
    RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Option<?> aRootOption, String aSecret)
    Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments.
    RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Option<?> aRootOption, org.refcodes.runtime.SystemContext aObfuscationMode)
    Constructs a RuntimeProperties instance with the given Option used to parse command line arguments.
    RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.runtime.SystemContext aObfuscationMode)
    Constructs the RuntimeProperties with the given obfuscation mode
    RuntimePropertiesImpl​(org.refcodes.runtime.SystemContext aObfuscationMode)
    Constructs the RuntimeProperties with the given obfuscation mode
  • Method Summary

    Modifier and Type Method Description
    void addExampleUsage​(String aDescription, org.refcodes.cli.Operand<?>... aOperands)
    protected void addProperties​(File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)
    Reads the ResourceProperties.ResourcePropertiesBuilder from the given data sink.
    protected void addProperties​(InputStream aInputStream, char[] aDelimiters)
    Reads the ResourceProperties from the given data sink.
    protected void addProperties​(Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)
    Reads the ResourceProperties.ResourcePropertiesBuilder from the given data sink.
    protected void addProperties​(URL aUrl, char... aDelimiters)
    Reads the ResourceProperties 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)
    String getBannerBorderEscapeCode()
    String getBannerEscapeCode()
    String getCopyrightNote()
    char getDelimiter()
    String getDescription()
    String getDescriptionEscapeCode()
    List<org.refcodes.cli.ExampleUsage> getExampleUsages()
    String getLicenseNote()
    String getLineSeparatorEscapeCode()
    String getName()
    String getParameterEscapeCode()
    protected org.refcodes.properties.Properties getProperties()  
    String getResetEscapeCode()
    org.refcodes.cli.Condition getRootCondition()
    char getSeparatorLnChar()
    org.refcodes.textual.TextBoxGrid getTextBoxGrid()
    String getTitle()
    boolean isEmpty()
    boolean isEscapeCodesEnabled()
    Set<String> keySet()
    void printBanner()
    void printCopyrightNote()
    void printDescription()
    void printExampleUsages()
    void printHelp()
    void printLicenseNote()
    void printLn()
    void printLn​(String aLine)
    void printOptions()
    void printSeparatorLn()
    void printUsage()
    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 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 setParameterEscapeCode​(String aParamEscCode)
    void setResetEscapeCode​(String aResetEscCode)
    void setRootCondition​(org.refcodes.cli.Condition aRootCondition)
    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)
    void setUsageLabel​(String aUsageLabel)
    int size()
    Object toDataStructure​(String aFromPath)
    org.refcodes.properties.Properties toRuntimeProfile​(String... aProfiles)
    String toSerialized()
    Returns the serialized format as of the ResourceProperties.ResourcePropertiesBuilder instance being produced upon invocation of the PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties) method.
    String toSerialized​(char aDelimiter)
    Returns the serialized format as of the ResourceProperties.ResourcePropertiesBuilder instance being produced upon invocation of the PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties) method.
    String toSerialized​(String aComment, char aDelimiter)
    Returns the serialized format as of the ResourceProperties.ResourcePropertiesBuilder instance being produced upon invocation of the PolyglotPropertiesBuilder.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 provide Properties 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.cli.ArgsParser

    printBody, withBannerBorderEscapeCode, withBannerEscapeCode, withDescriptionEscapeCode, withLineSeparatorEscapeCode, withTextBoxGrid

    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, toPrintable

    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, 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, 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.textual.TextBoxGridAccessor.TextBoxGridProperty

    letTextBoxGrid

    Methods inherited from interface org.refcodes.mixin.TitleAccessor.TitleProperty

    letTitle
  • Constructor Details

    • RuntimePropertiesImpl

      public RuntimePropertiesImpl()
      Constructs a RuntimeProperties instance with no Condition for parsing command line arguments. As no syntax notation is required by the constructor (no root Condition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments when invoking withEvalArgs(String[]).
    • RuntimePropertiesImpl

      public RuntimePropertiesImpl​(String[] aArgs)
      Constructs a RuntimeProperties instance with no Condition for parsing command line arguments: As no syntax notation is required by the constructor (no root Condition), 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.Condition aRootCondition)
      Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments.
      Parameters:
      aRootCondition - The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments via evalArgs(String[]).
    • RuntimePropertiesImpl

      public RuntimePropertiesImpl​(org.refcodes.cli.Option<?> aRootOption)
      Constructs a RuntimeProperties instance with the given Option 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 via evalArgs(String[]).
    • RuntimePropertiesImpl

      public RuntimePropertiesImpl​(org.refcodes.runtime.SystemContext aObfuscationMode)
      Constructs the RuntimeProperties with the given obfuscation mode
      Parameters:
      aObfuscationMode - The SystemContext 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 a RuntimeProperties instance with no Condition for parsing command line arguments: As no syntax notation is required by the constructor (no root Condition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments. Also constructs the RuntimeProperties with the given obfuscation mode
      Parameters:
      aArgs - The command line arguments to be evaluated.
      aObfuscationMode - The SystemContext 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.Condition aRootCondition, org.refcodes.runtime.SystemContext aObfuscationMode)
      Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments. Also constructs the RuntimeProperties with the given obfuscation mode.
      Parameters:
      aRootCondition - The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments via evalArgs(String[]).
      aObfuscationMode - The SystemContext 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 a RuntimeProperties instance with the given Option used to parse command line arguments. Also constructs the RuntimeProperties 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 via evalArgs(String[]).
      aObfuscationMode - The SystemContext 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 a RuntimeProperties 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 a RuntimeProperties instance with no Condition for parsing command line arguments: As no syntax notation is required by the constructor (no root Condition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments. Also constructs a RuntimeProperties 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.Condition aRootCondition, String aSecret)
      Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments. Also constructs a RuntimeProperties instance with a custom secret for obfuscation.
      Parameters:
      aRootCondition - The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments via evalArgs(String[]).
      aSecret - The secret to be used when encountering upon obfuscated properties.
    • RuntimePropertiesImpl

      public RuntimePropertiesImpl​(org.refcodes.cli.Option<?> aRootOption, String aSecret)
      Constructs a RuntimeProperties instance with the given Option used to parse command line arguments. Also constructs a RuntimeProperties 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 via evalArgs(String[]).
      aSecret - The secret to be used when encountering upon obfuscated properties.
    • RuntimePropertiesImpl

      public RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory)
      Constructs a RuntimeProperties instance with no Condition for parsing command line arguments. As no syntax notation is required by the constructor (no root Condition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments when invoking withEvalArgs(String[]).
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties instances.
    • RuntimePropertiesImpl

      public RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String[] aArgs)
      Constructs a RuntimeProperties instance with no Condition for parsing command line arguments: As no syntax notation is required by the constructor (no root Condition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments.
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties instances.
      aArgs - The command line arguments to be evaluated.
    • RuntimePropertiesImpl

      public RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Option<?> aRootOption)
      Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments.
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties instances.
      aRootOption - The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments via evalArgs(String[]).
    • RuntimePropertiesImpl

      public RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Condition aRootCondition)
      Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments.
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties instances.
      aRootCondition - The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments via evalArgs(String[]).
    • RuntimePropertiesImpl

      public RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.runtime.SystemContext aObfuscationMode)
      Constructs the RuntimeProperties with the given obfuscation mode
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties instances.
      aObfuscationMode - The SystemContext 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 a RuntimeProperties instance with no Condition for parsing command line arguments: As no syntax notation is required by the constructor (no root Condition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments. Also constructs the RuntimeProperties with the given obfuscation mode
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties instances.
      aArgs - The command line arguments to be evaluated.
      aObfuscationMode - The SystemContext 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 a RuntimeProperties instance with the given Option used to parse command line arguments. Also constructs the RuntimeProperties with the given obfuscation mode.
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties instances.
      aRootOption - The root option being the node from which parsing the command line arguments starts. Parse the command line arguments via evalArgs(String[]).
      aObfuscationMode - The SystemContext 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.Condition aRootCondition, org.refcodes.runtime.SystemContext aObfuscationMode)
      Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments. Also constructs the RuntimeProperties with the given obfuscation mode.
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties instances.
      aRootCondition - The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments via evalArgs(String[]).
      aObfuscationMode - The SystemContext 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 a RuntimeProperties instance with a custom secret for obfuscation.
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties 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 a RuntimeProperties instance with no Condition for parsing command line arguments: As no syntax notation is required by the constructor (no root Condition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments. Also constructs a RuntimeProperties instance with a custom secret for obfuscation.
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties 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 a RuntimeProperties instance with the given Condition used to parse command line arguments. Also constructs a RuntimeProperties instance with a custom secret for obfuscation.
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties instances.
      aRootOption - The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments via evalArgs(String[]).
      aSecret - The secret to be used when encountering upon obfuscated properties.
    • RuntimePropertiesImpl

      public RuntimePropertiesImpl​(org.refcodes.properties.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.cli.Condition aRootCondition, String aSecret)
      Constructs a RuntimeProperties instance with the given Condition used to parse command line arguments. Also constructs a RuntimeProperties instance with a custom secret for obfuscation.
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties instances.
      aRootCondition - The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments via evalArgs(String[]).
      aSecret - The secret to be used when encountering upon obfuscated properties.
  • Method Details

    • getExampleUsages

      public List<org.refcodes.cli.ExampleUsage> getExampleUsages()
      Specified by:
      getExampleUsages in interface org.refcodes.cli.ArgsParser
    • addExampleUsage

      public void addExampleUsage​(String aDescription, org.refcodes.cli.Operand<?>... aOperands)
      Specified by:
      addExampleUsage in interface org.refcodes.cli.ArgsParser
    • printExampleUsages

      public void printExampleUsages()
      Specified by:
      printExampleUsages in interface org.refcodes.cli.ArgsParser
    • getLineSeparatorEscapeCode

      public String getLineSeparatorEscapeCode()
      Specified by:
      getLineSeparatorEscapeCode in interface org.refcodes.cli.ArgsParser
    • setLineSeparatorEscapeCode

      public void setLineSeparatorEscapeCode​(String aLineSeparatorEscCode)
      Specified by:
      setLineSeparatorEscapeCode in interface org.refcodes.cli.ArgsParser
    • getBannerEscapeCode

      public String getBannerEscapeCode()
      Specified by:
      getBannerEscapeCode in interface org.refcodes.cli.ArgsParser
    • getBannerBorderEscapeCode

      public String getBannerBorderEscapeCode()
      Specified by:
      getBannerBorderEscapeCode in interface org.refcodes.cli.ArgsParser
    • setBannerEscapeCode

      public void setBannerEscapeCode​(String aBannerEscCode)
      Specified by:
      setBannerEscapeCode in interface org.refcodes.cli.ArgsParser
    • setBannerBorderEscapeCode

      public void setBannerBorderEscapeCode​(String aBannerBorderEscCode)
      Specified by:
      setBannerBorderEscapeCode in interface org.refcodes.cli.ArgsParser
    • getDescriptionEscapeCode

      public String getDescriptionEscapeCode()
      Specified by:
      getDescriptionEscapeCode in interface org.refcodes.cli.ArgsParser
    • setDescriptionEscapeCode

      public void setDescriptionEscapeCode​(String aParamDescriptionEscCode)
      Specified by:
      setDescriptionEscapeCode in interface org.refcodes.cli.ArgsParser
    • isEscapeCodesEnabled

      public boolean isEscapeCodesEnabled()
      Specified by:
      isEscapeCodesEnabled in interface org.refcodes.mixin.EscapeCodesStatusAccessor
    • setEscapeCodesEnabled

      public void setEscapeCodesEnabled​(boolean isEscCodeEnabled)
      Specified by:
      setEscapeCodesEnabled in interface org.refcodes.mixin.EscapeCodesStatusAccessor.EscapeCodeStatusMutator
    • getResetEscapeCode

      public String getResetEscapeCode()
      Specified by:
      getResetEscapeCode in interface org.refcodes.mixin.ResetEscapeCodeAccessor
    • setResetEscapeCode

      public void setResetEscapeCode​(String aResetEscCode)
      Specified by:
      setResetEscapeCode in interface org.refcodes.mixin.ResetEscapeCodeAccessor.ResetEscapeCodeMutator
    • getParameterEscapeCode

      public String getParameterEscapeCode()
      Specified by:
      getParameterEscapeCode in interface org.refcodes.cli.ArgsParser
    • setParameterEscapeCode

      public void setParameterEscapeCode​(String aParamEscCode)
      Specified by:
      setParameterEscapeCode in interface org.refcodes.cli.ArgsParser
    • getCopyrightNote

      public String getCopyrightNote()
      Specified by:
      getCopyrightNote in interface org.refcodes.cli.ArgsParser
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.refcodes.cli.ArgsParser
      Specified by:
      getDescription in interface org.refcodes.mixin.DescriptionAccessor
    • getLicenseNote

      public String getLicenseNote()
      Specified by:
      getLicenseNote in interface org.refcodes.cli.ArgsParser
    • setRootCondition

      public void setRootCondition​(org.refcodes.cli.Condition aRootCondition)
      Specified by:
      setRootCondition in interface org.refcodes.cli.RootConditionAccessor.RootConditionMutator
    • setRootOption

      public void setRootOption​(org.refcodes.cli.Option<?> aRootOption)
      Specified by:
      setRootOption in interface org.refcodes.cli.RootConditionAccessor.RootConditionMutator
    • setSecret

      public void setSecret​(String aSecret)
      Specified by:
      setSecret in interface org.refcodes.mixin.SecretAccessor.SecretMutator
    • setObfuscationMode

      public void setObfuscationMode​(org.refcodes.runtime.SystemContext aObfuscationMode)
      Specifies the obfuscation mode to be used.
      Specified by:
      setObfuscationMode in interface RuntimeProperties
      Parameters:
      aObfuscationMode - The SystemContext 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 interface org.refcodes.cli.ArgsParser
    • getTextBoxGrid

      public org.refcodes.textual.TextBoxGrid getTextBoxGrid()
      Specified by:
      getTextBoxGrid in interface org.refcodes.textual.TextBoxGridAccessor
    • setTextBoxGrid

      public void setTextBoxGrid​(org.refcodes.textual.TextBoxGrid aTextBoxGrid)
      Specified by:
      setTextBoxGrid in interface org.refcodes.textual.TextBoxGridAccessor.TextBoxGridMutator
    • withProperties

      public RuntimeProperties withProperties​(org.refcodes.properties.Properties aProperties)
      A hook for you to provide Properties programmatically. The later you add Properties, the lower their precedence.
      Specified by:
      withProperties in interface RuntimeProperties
      Parameters:
      aProperties - The Properties 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 interface org.refcodes.properties.ResourceLoaderMixin<RuntimeProperties>
      Throws:
      IOException
      ParseException
    • withInputStream

      public RuntimeProperties withInputStream​(InputStream aInputStream, char... aDelimiters) throws IOException, ParseException
      Specified by:
      withInputStream in interface org.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 interface org.refcodes.properties.ResourceLoaderMixin<RuntimeProperties>
      Throws:
      IOException
      ParseException
    • withUrl

      public RuntimeProperties withUrl​(URL aUrl, char... aDelimiters) throws IOException, ParseException
      Specified by:
      withUrl in interface org.refcodes.properties.ResourceLoaderMixin<RuntimeProperties>
      Throws:
      IOException
      ParseException
    • withEvalArgs

      public RuntimeProperties withEvalArgs​(String[] aArgs) throws org.refcodes.cli.UnknownArgsException, org.refcodes.cli.AmbiguousArgsException, org.refcodes.cli.SuperfluousArgsException, org.refcodes.cli.ParseArgsException
      Specified by:
      withEvalArgs in interface org.refcodes.cli.ArgsParser
      Specified by:
      withEvalArgs in interface org.refcodes.cli.ArgsParserMixin<org.refcodes.cli.ArgsParser>
      Specified by:
      withEvalArgs in interface ArgsParserProperties
      Specified by:
      withEvalArgs in interface RuntimeProperties
      Throws:
      org.refcodes.cli.UnknownArgsException
      org.refcodes.cli.AmbiguousArgsException
      org.refcodes.cli.SuperfluousArgsException
      org.refcodes.cli.ParseArgsException
    • errorLn

      public void errorLn​(String aLine)
      Specified by:
      errorLn in interface org.refcodes.cli.ArgsParser
    • evalArgs

      public List<? extends org.refcodes.cli.Operand<?>> evalArgs​(List<String> aArgs) throws org.refcodes.cli.UnknownArgsException, org.refcodes.cli.AmbiguousArgsException, org.refcodes.cli.SuperfluousArgsException, org.refcodes.cli.ParseArgsException
      Specified by:
      evalArgs in interface org.refcodes.cli.ArgsParser
      Specified by:
      evalArgs in interface ArgsParserProperties
      Throws:
      org.refcodes.cli.UnknownArgsException
      org.refcodes.cli.AmbiguousArgsException
      org.refcodes.cli.SuperfluousArgsException
      org.refcodes.cli.ParseArgsException
    • evalArgs

      public List<? extends org.refcodes.cli.Operand<?>> evalArgs​(String aToPath, List<String> aArgs) throws org.refcodes.cli.UnknownArgsException, org.refcodes.cli.AmbiguousArgsException, org.refcodes.cli.SuperfluousArgsException, org.refcodes.cli.ParseArgsException
      Specified by:
      evalArgs in interface ArgsParserProperties
      Throws:
      org.refcodes.cli.UnknownArgsException
      org.refcodes.cli.AmbiguousArgsException
      org.refcodes.cli.SuperfluousArgsException
      org.refcodes.cli.ParseArgsException
    • evalArgs

      public List<? extends org.refcodes.cli.Operand<?>> evalArgs​(String aToPath, String[] aArgs) throws org.refcodes.cli.UnknownArgsException, org.refcodes.cli.AmbiguousArgsException, org.refcodes.cli.SuperfluousArgsException, org.refcodes.cli.ParseArgsException
      Specified by:
      evalArgs in interface ArgsParserProperties
      Throws:
      org.refcodes.cli.UnknownArgsException
      org.refcodes.cli.AmbiguousArgsException
      org.refcodes.cli.SuperfluousArgsException
      org.refcodes.cli.ParseArgsException
    • evalArgs

      public List<? extends org.refcodes.cli.Operand<?>> evalArgs​(String[] aArgs) throws org.refcodes.cli.UnknownArgsException, org.refcodes.cli.AmbiguousArgsException, org.refcodes.cli.SuperfluousArgsException, org.refcodes.cli.ParseArgsException
      Specified by:
      evalArgs in interface org.refcodes.cli.ArgsParser
      Specified by:
      evalArgs in interface ArgsParserProperties
      Throws:
      org.refcodes.cli.UnknownArgsException
      org.refcodes.cli.AmbiguousArgsException
      org.refcodes.cli.SuperfluousArgsException
      org.refcodes.cli.ParseArgsException
    • getRootCondition

      public org.refcodes.cli.Condition getRootCondition()
      Specified by:
      getRootCondition in interface org.refcodes.cli.ArgsParser
      Specified by:
      getRootCondition in interface org.refcodes.cli.RootConditionAccessor
    • printBanner

      public void printBanner()
      Specified by:
      printBanner in interface org.refcodes.cli.ArgsParser
    • printCopyrightNote

      public void printCopyrightNote()
      Specified by:
      printCopyrightNote in interface org.refcodes.cli.ArgsParser
    • printDescription

      public void printDescription()
      Specified by:
      printDescription in interface org.refcodes.cli.ArgsParser
    • printHelp

      public void printHelp()
      Specified by:
      printHelp in interface org.refcodes.cli.ArgsParser
    • printLicenseNote

      public void printLicenseNote()
      Specified by:
      printLicenseNote in interface org.refcodes.cli.ArgsParser
    • printLn

      public void printLn()
      Specified by:
      printLn in interface org.refcodes.cli.ArgsParser
    • printLn

      public void printLn​(String aLine)
      Specified by:
      printLn in interface org.refcodes.cli.ArgsParser
    • printOptions

      public void printOptions()
      Specified by:
      printOptions in interface org.refcodes.cli.ArgsParser
    • printSeparatorLn

      public void printSeparatorLn()
      Specified by:
      printSeparatorLn in interface org.refcodes.cli.ArgsParser
    • printUsage

      public void printUsage()
      Specified by:
      printUsage in interface org.refcodes.cli.ArgsParser
    • reset

      public void reset()
      Specified by:
      reset in interface org.refcodes.component.Resetable
    • setBannerFont

      public void setBannerFont​(org.refcodes.textual.Font aBannerFont)
      Specified by:
      setBannerFont in interface org.refcodes.cli.ArgsParser
    • setBannerFontPalette

      public void setBannerFontPalette​(char[] aColorPalette)
      Specified by:
      setBannerFontPalette in interface org.refcodes.cli.ArgsParser
    • setConsoleWidth

      public void setConsoleWidth​(int aConsoleWidth)
      Specified by:
      setConsoleWidth in interface org.refcodes.cli.ArgsParser
    • setCopyrightNote

      public void setCopyrightNote​(String aCopyrightNote)
      Specified by:
      setCopyrightNote in interface org.refcodes.cli.ArgsParser
    • setDescription

      public void setDescription​(String aDescription)
      Specified by:
      setDescription in interface org.refcodes.mixin.DescriptionAccessor.DescriptionMutator
    • setErrorOut

      public void setErrorOut​(PrintStream aErrorOut)
      Specified by:
      setErrorOut in interface org.refcodes.cli.ArgsParser
    • setLicenseNote

      public void setLicenseNote​(String aLicenseNote)
      Specified by:
      setLicenseNote in interface org.refcodes.cli.ArgsParser
    • setLineBreak

      public void setLineBreak​(String aLineBreak)
      Specified by:
      setLineBreak in interface org.refcodes.cli.ArgsParser
    • setMaxConsoleWidth

      public void setMaxConsoleWidth​(int aMaxConsoleWidth)
      Specified by:
      setMaxConsoleWidth in interface org.refcodes.cli.ArgsParser
    • setName

      public void setName​(String aName)
      Specified by:
      setName in interface org.refcodes.mixin.NameAccessor.NameMutator
    • setSeparatorLnChar

      public void setSeparatorLnChar​(char aSeparatorChar)
      Specified by:
      setSeparatorLnChar in interface org.refcodes.cli.ArgsParser
    • setStandardOut

      public void setStandardOut​(PrintStream aStandardOut)
      Specified by:
      setStandardOut in interface org.refcodes.cli.ArgsParser
    • setSyntaxNotation

      public void setSyntaxNotation​(org.refcodes.cli.SyntaxNotation aSyntaxNotation)
      Specified by:
      setSyntaxNotation in interface org.refcodes.cli.ArgsParser
    • setTitle

      public void setTitle​(String aTitle)
      Specified by:
      setTitle in interface org.refcodes.mixin.TitleAccessor.TitleMutator
    • setUsageLabel

      public void setUsageLabel​(String aUsageLabel)
      Specified by:
      setUsageLabel in interface org.refcodes.cli.ArgsParser
    • reload

      public org.refcodes.properties.Properties reload() throws IOException, IllegalStateException, ParseException
      Specified by:
      reload in interface org.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 interface org.refcodes.properties.ResourceProperties
      Throws:
      IOException
      IllegalStateException
      ParseException
    • getDelimiter

      public char getDelimiter()
      Specified by:
      getDelimiter in interface org.refcodes.mixin.DelimiterAccessor
      Specified by:
      getDelimiter in interface org.refcodes.properties.Properties
      Overrides:
      getDelimiter in class org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
    • size

      public int size()
      Specified by:
      size in interface org.refcodes.struct.Containable
      Overrides:
      size in class org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
    • containsKey

      public boolean containsKey​(Object aKey)
      Specified by:
      containsKey in interface org.refcodes.struct.Keys<String,​String>
      Overrides:
      containsKey in class org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.refcodes.struct.Containable
      Overrides:
      isEmpty in class org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
    • get

      public String get​(Object aKey)
      Specified by:
      get in interface org.refcodes.struct.Keys<String,​String>
      Overrides:
      get in class org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
    • keySet

      public Set<String> keySet()
      Specified by:
      keySet in interface org.refcodes.struct.Keys<String,​String>
      Overrides:
      keySet in class org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
    • values

      public Collection<String> values()
      Specified by:
      values in interface org.refcodes.struct.Keys<String,​String>
      Overrides:
      values in class org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
    • retrieveFrom

      public org.refcodes.properties.Properties retrieveFrom​(String aFromPath)
      Specified by:
      retrieveFrom in interface org.refcodes.struct.CanonicalMap
      Specified by:
      retrieveFrom in interface org.refcodes.struct.PathMap<String>
      Specified by:
      retrieveFrom in interface org.refcodes.properties.Properties
      Overrides:
      retrieveFrom in class org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
    • retrieveTo

      public org.refcodes.properties.Properties retrieveTo​(String aToPath)
      Specified by:
      retrieveTo in interface org.refcodes.struct.CanonicalMap
      Specified by:
      retrieveTo in interface org.refcodes.struct.PathMap<String>
      Specified by:
      retrieveTo in interface org.refcodes.properties.Properties
      Overrides:
      retrieveTo in class org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface org.refcodes.mixin.TitleAccessor
    • getName

      public String getName()
      Specified by:
      getName in interface org.refcodes.mixin.NameAccessor
    • toDataStructure

      public Object toDataStructure​(String aFromPath)
      Specified by:
      toDataStructure in interface org.refcodes.struct.PathMap<String>
      Overrides:
      toDataStructure in class org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
    • toSerialized

      public String toSerialized()
      Returns the serialized format as of the ResourceProperties.ResourcePropertiesBuilder instance being produced upon invocation of the PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties) method. The behavior of this method is implementation specific. See the javadoc of the implementation in question (such as toSerialized()) for implementation details.
      Specified by:
      toSerialized in interface org.refcodes.properties.ResourceProperties
      Specified by:
      toSerialized in interface RuntimeProperties
    • toSerialized

      public String toSerialized​(char aDelimiter)
      Returns the serialized format as of the ResourceProperties.ResourcePropertiesBuilder instance being produced upon invocation of the PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties) method. The behavior of this method is implementation specific. See the javadoc of the implementation in question (such as toSerialized()) for implementation details.
      Specified by:
      toSerialized in interface org.refcodes.properties.ResourceProperties
      Specified by:
      toSerialized in interface RuntimeProperties
    • toSerialized

      public String toSerialized​(String aComment, char aDelimiter)
      Returns the serialized format as of the ResourceProperties.ResourcePropertiesBuilder instance being produced upon invocation of the PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties) method.
      Specified by:
      toSerialized in interface org.refcodes.properties.ResourceProperties
    • toRuntimeProfile

      public org.refcodes.properties.Properties toRuntimeProfile​(String... aProfiles)
      Specified by:
      toRuntimeProfile in interface org.refcodes.properties.ProfileProperties
    • getProperties

      protected org.refcodes.properties.Properties getProperties()
      Overrides:
      getProperties in class org.refcodes.properties.AbstractPropertiesDecorator<org.refcodes.properties.Properties>
    • addProperties

      protected void addProperties​(File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
      Reads the ResourceProperties.ResourcePropertiesBuilder from the given data sink.
      Parameters:
      aFile - The data sink from which to read the ResourceProperties.ResourcePropertiesBuilder.
      aConfigLocator - The ConfigLocator 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 the ResourceProperties from the given data sink.
      Parameters:
      aInputStream - The data sink from which to read the ResourceProperties.
      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 the ResourceProperties.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 the ResourceProperties.ResourcePropertiesBuilder.
      aConfigLocator - The ConfigLocator 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 the ResourceProperties from the given data sink.
      Parameters:
      aUrl - The data sink from which to read the ResourceProperties.
      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.