A pair of a name and a value.
A name-value pair specified in a command line argument takes the form "name=value". This class separates the name and the value and stores them as a single pair with the name and value individually retrievable. A valid name without a value (i.e. "name" vs. "name=value") can also represent a name-value pair. In this case the resulting NameValuePair will have an empty value.
- Invariant
- Name characters must be alpha numerics and - and _.
-
Names must not start with the option prefix.
-
Names must not be longer than 20 characters.
-
The name must not be empty.
-
The value will consist of everything after the = sign.