Properties
, org.refcodes.mixin.DelimiterAccessor
, org.refcodes.mixin.Dumpable
, org.refcodes.mixin.TypeAccessor<String>
, org.refcodes.structure.CanonicalMap
, org.refcodes.structure.Containable
, org.refcodes.structure.Dictionary<String,String>
, org.refcodes.structure.Keys<String,String>
, org.refcodes.structure.PathMap<String>
, org.refcodes.structure.PropertiesAccessorMixin
public class ArgsProperties extends PropertiesImpl implements Properties
ArgsProperties
takes them command line arguments "as is" and
converts them into key/value pairs as of the Properties
semantics.
Keys for the key/value-pairs are identified by prefixes, usually as defined
by the CommandArgPrefix
enumeration. Such a key is without the prefix
called option and used used as key in the Properties
instance. If the
succeeding argument is not an option, then the succeeding argument is used as
the option's value, else the current option is treated as boolean property
with a value of "true".org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
org.refcodes.structure.Dictionary.MutableDictionary<K extends Object,V extends Object>
org.refcodes.structure.Keys.MutableKeys<K extends Object,V extends Object>, org.refcodes.structure.Keys.MutableValues<K extends Object,V extends Object>
org.refcodes.structure.PathMap.MutablePathMap<T extends Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends Object>
Properties.MutableProperties, Properties.PropertiesBuilder
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
DEFAULT_COMMENT
_properties
Constructor | Description |
---|---|
ArgsProperties(String[] aArgs) |
Constructs the
ArgsProperties from the provided command line
arguments using the prefixes as defined by the CommandArgPrefix
enumeration to identify the keys (and the values) from the provided
arguments. |
ArgsProperties(String[] aArgs,
String... aPrefixes) |
Constructs the
ArgsProperties from the provided command line
arguments using the provided prefixes to identify the keys (and the
values) from the provided arguments. |
toInstance, toInstance, toType, toType
containsKey, get, get, keySet, use, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
directories, directories, entries, entries, fromExternalKey, getArray, getArray, getRootPath, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath
childrenOf, containsValue, getDelimiter, getType, retrieve, retrieveFrom, retrieveTo, toMap, toProperties, toPropertyPath
containsKey, get, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
childrenOf, containsKey, get, getDelimiter, getType, isEmpty, keySet, retrieveFrom, retrieveTo, size, toDataStructure, values
public ArgsProperties(String[] aArgs)
ArgsProperties
from the provided command line
arguments using the prefixes as defined by the CommandArgPrefix
enumeration to identify the keys (and the values) from the provided
arguments.aArgs
- The arguments from which to extract key/value-pairs.public ArgsProperties(String[] aArgs, String... aPrefixes)
ArgsProperties
from the provided command line
arguments using the provided prefixes to identify the keys (and the
values) from the provided arguments.aArgs
- The arguments from which to extract key/value-pairs.aPrefixes
- The prefixes to be used to identify the keys (and the
values) from the provided argumentsCopyright © 2018. All rights reserved.