Class ParmParser

java.lang.Object
org.bzdev.obnaming.ParmParser

public class ParmParser extends Object
Named-Object Factory Parameter Parser. Each instance of this class may be associated with only a single instance of Parm, the class representing parameters.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
    ParmParser(NamedObjectFactory factory, String name, Class<?> keyType)
    Constructor given an alternate Parm.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Removes the effect of calling parse.
    void
    clear(int index)
    Removes the effect of calling parse with an index.
    void
    clear(Enum<?> key)
    Removes the effect of calling parse with a key that is an enumeration.
    void
    clear(Object[] key)
    Removes the effect of calling parse with a compound key.
    void
    Removes the effect of calling parse with a key.
    void
    Removes the effect of calling parse with a key that is a named object.
    protected String
    errorMsg(String key, Object... args)
    Get an error message with standard formats.
    protected ParmParser
    Get the alternate Parm.
    protected final String
    Get the name of the parameter associated with this object.
    protected final String
    Format a key as a string.
    void
    parse(boolean value)
    Process a boolean and store it.
    void
    parse(double value)
    Process a double and store it.
    void
    parse(int value)
    Process an int and store it.
    void
    parse(int index, boolean value)
    Process a boolean and store it in the location specified by an index.
    void
    parse(int index, double value)
    Process a double and store it in the location specified by an index.
    void
    parse(int index, int value)
    Process an int and store it in the location specified by an index.
    void
    parse(int index, long value)
    Process a long and store it in the location specified by an index.
    void
    parse(int index, Enum<?> value)
    Parse an enumeration and run a validity check on the object created, storing it in the location specified by an index.
    void
    parse(int index, String value)
    Parse a string and run a validity check on the object created, storing it in the location specified by an index.
    void
    parse(int index, BooleanRandomVariable value)
    Process a boolean-valued random variable and store it in the location specified by an index.
    void
    parse(int index, BooleanRandomVariableRV value)
    Process a boolean-random-variable-valued random variable and store it in the location specified by an index.
    void
    parse(int index, DoubleRandomVariable value)
    Process a double-valued random variable and store it in the location specified by an index.
    void
    parse(int index, DoubleRandomVariableRV value)
    Process a double-random-variable-valued random variable and store it in the location specified by an index.
    void
    parse(int index, IntegerRandomVariable value)
    Process an integer-valued random variable and store it in the location specified by an index.
    void
    parse(int index, IntegerRandomVariableRV value)
    Process an integer-random-variable-valued random variable and store it in the location specified by an index.
    void
    parse(int index, LongRandomVariable value)
    Process a long-valued random variable and store it in the location specified by an index.
    void
    parse(int index, LongRandomVariableRV value)
    Process a long-random-variable-valued random variable and store it in the location specified by an index.
    void
    parse(int index, NamedObjectOps value)
    Parse a named object and run a validity check on the object created, storing it in the location specified by an index.
    void
    parse(long value)
    Process a long and store it.
    void
    parse(Enum<?> value)
    Parse an instance of an enumeration and store the value.
    void
    parse(Enum<?> key, boolean value)
    Process a boolean and store it in the location specified by an enumeration key.
    void
    parse(Enum<?> key, double value)
    Process a double and store it in the location specified by an enumeration key.
    void
    parse(Enum<?> key, int value)
    Process an int and store it in the location specified by an enumeration key.
    void
    parse(Enum<?> key, long value)
    Process a long and store it in the location specified by an enumeration key.
    void
    parse(Enum<?> key, Enum<?> value)
    Parse an enumeration and run a validity check on the object created, storing it in the location specified by an enumeration key.
    void
    parse(Enum<?> key, String value)
    Parse a string and run a validity check on the object created, storing it in the location specified by an enumeration key.
    void
    Process a boolean-valued random variable and store it in the location specified by an enumeration key.
    void
    Process a boolean-random-variable-valued random variable and store it in the location specified by an enumeration key.
    void
    Process a double-valued random variable and store it in the location specified by an enumeration key.
    void
    Process a double-random-variable-valued random variable and store it in the location specified by an enumeration key.
    void
    Process an integer-valued random variable and store it in the location specified by an enumeration key.
    void
    Process an integer-random-variable-valued random variable and store it in the location specified by an enumeration key.
    void
    parse(Enum<?> key, LongRandomVariable value)
    Process a long-valued random variable and store it in the location specified by an enumeration key.
    void
    Process a long-random-variable-valued random variable and store it in the location specified by an enumeration key.
    void
    parse(Enum<?> key, NamedObjectOps value)
    Parse a named object and run a validity check on the object created, storing it in the location specified by an enumeration key.
    void
    parse(Object[] value)
    Parse an array, run a validity check, and, store the value.
    void
    parse(Object[] key, boolean value)
    Process a boolean and store it in the location specified by a compound key.
    void
    parse(Object[] key, double value)
    Process a double and store it in the location specified by a compound key.
    void
    parse(Object[] key, int value)
    Process an int and store it in the location specified by a compound key.
    void
    parse(Object[] key, long value)
    Process a long and store it in the location specified by a compound key.
    void
    parse(Object[] key, Enum<?> value)
    Parse an enumeration and run a validity check on the object created, storing it in the location specified by a compound key.
    void
    parse(Object[] key, String value)
    Parse a string and run a validity check on the object created, storing it in the location specified by a compound key.
    void
    Process a boolean-valued random variable and store it in the location specified by a compound key.
    void
    Process a boolean-random-variable-valued random variable and store it in the location specified by a compound key.
    void
    Process a double-valued random variable and store it in the location specified by a compound key.
    void
    Process a double-random-variable-valued random variable and store it in the location specified by a compound key.
    void
    Process an integer-valued random variable and store it in the location specified by a compound key.
    void
    Process an integer-random-variable-valued random variable and store it in the location specified by a compound key.
    void
    Process a long-valued random variable and store it in the location specified by a compound key.
    void
    Process a long-random-variable-valued random variable and store it in the location specified by a compound key.
    void
    parse(Object[] key, NamedObjectOps value)
    Parse a named object and run a validity check on the object created, storing it in the location specified by a compound key.
    void
    parse(String value)
    Parse a string, run a validity check on the object created, and store the value.
    void
    parse(String key, boolean value)
    Process a boolean and store it in the location specified by a key.
    void
    parse(String key, double value)
    Process a double and store it in the location specified by a key.
    void
    parse(String key, int value)
    Process an int and store it in the location specified by a key.
    void
    parse(String key, long value)
    Process a long and store it in the location specified by a key.
    void
    parse(String key, Enum<?> value)
    Parse an enumeration and run a validity check on the object created, storing it in the location specified by an index.
    void
    parse(String key, String value)
    Parse a string and run a validity check on the object created, storing it in the location specified by a key.
    void
    Process a boolean-valued random variable and store it in the location specified by a key.
    void
    Process a boolean-random-variable-valued random variable and store it in the location specified by a key.
    void
    Process a double-valued random variable and store it in the location specified by a key.
    void
    Process a double-random-variable-valued random variable and store it in the location specified by a key.
    void
    Process an integer-valued random variable and store it in the location specified by a key.
    void
    Process an integer-random-variable-valued random variable and store it in the location specified by a key.
    void
    Process a long-valued random variable and store it in the location specified by a key.
    void
    Process a long-random-variable-valued random variable and store it in the location specified by a key.
    void
    Parse a named object and run a validity check on the object created, storing it in the location specified by an index.
    void
    Process a boolean-valued random variable and store it.
    void
    Process a boolean-random-variable-valued random variable and store it.
    void
    Process a double-valued random variable and store it.
    void
    Process a double-random-variable-valued random variable and store it.
    void
    Process an integer-valued random variable and store it.
    void
    Process an integer-random-variable-valued random variable and store it.
    void
    Process a long-valued random variable and store it.
    void
    Process a long-random-variable-valued random variable and store it.
    void
    Parse a named object and store the value.
    void
    parse(NamedObjectOps key, boolean value)
    Process a boolean and store it in the location specified by a named-object key.
    void
    parse(NamedObjectOps key, double value)
    Process a double and store it in the location specified by a named-object key.
    void
    parse(NamedObjectOps key, int value)
    Process an int and store it in the location specified by a named-object key.
    void
    parse(NamedObjectOps key, long value)
    Process a long and store it in the location specified by a named-object key.
    void
    parse(NamedObjectOps key, Enum<?> value)
    Parse an enumeration and run a validity check on the object created, storing it in the location specified by a named-object key.
    void
    Parse a string and run a validity check on the object created, storing it in the location specified by a named-object key.
    void
    Process a boolean-valued random variable and store it in the location specified by a named-object key.
    void
    Process a boolean-random-variable-valued random variable and store it in the location specified by a named-object key.
    void
    Process a double-valued random variable and store it in the location specified by a named-object key.
    void
    Process a double-random-variable-valued random variable and store it in the location specified by a named-object key.
    void
    Process an integer-valued random variable and store it in the location specified by a named-object key.
    void
    Process an integer-random-variable-valued random variable and store it in the location specified by a named-object key.
    void
    Process a long-valued random variable and store it in the location specified by a named-object key.
    void
    Process a long-random-variable-valued random variable and store it in the location specified by a named-object key.
    void
    Parse a named object and run a validity check on the object created, storing it in the location specified by a named-object key.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait