protected class GraphNodeObject.ParameterPairs extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ParameterPairs()
Creates a new instance of ParameterPairs
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameter(String[] p)
Adds a parameter pair to the set
|
protected void |
addParameter(String[] p,
int index)
Adds a parameter pair to the set at a specific place in the list
|
protected void |
addParameter(String name,
String value)
Adds a parameter pair to the set
|
protected void |
addParameter(String name,
String value,
int index)
Adds a parameter pair to the set at a specific place in the list
|
GraphNodeObject.ParameterPairs |
copy()
Makes a new ParameterPairs object with identical content (shallow copy)
|
protected String[] |
getParameter(int index)
Returns a requested parameter pair
|
protected boolean |
match(GraphNodeObject.ParameterPairs p2)
Returns true if two parameter lists are equivalent
|
protected boolean |
match(String[] p2)
Returns true iff the parameter list contains a
parameter that is equivalent to the method parameter
|
protected boolean |
matchMinus1(GraphNodeObject.ParameterPairs p2,
String exception)
Returns true if two parameter lists are equivalent with the
exception of 1 named parameter that can mismatch
|
protected boolean |
matchMinus1(String[] p2,
String exception)
Returns true iff the parameter list contains a
parameter that is equivalent to the method parameter
|
protected int |
numParameters()
Returns the number of parameters in the set
|
protected void |
removeParameter(int index)
Removes a requested parameter pair
|
String |
toString()
Converts the parameter pair list to a String
|
protected ParameterPairs()
protected void addParameter(String name, String value)
name - value - protected void addParameter(String[] p)
p - protected void addParameter(String name, String value, int index)
name - value - index - protected void addParameter(String[] p, int index)
p - index - protected int numParameters()
protected void removeParameter(int index)
index - protected String[] getParameter(int index)
index - public GraphNodeObject.ParameterPairs copy()
protected boolean match(GraphNodeObject.ParameterPairs p2)
p2 - protected boolean match(String[] p2)
p2 - String[2] containin the parameter/value pair being checkedprotected boolean matchMinus1(GraphNodeObject.ParameterPairs p2, String exception)
p2 - exception - protected boolean matchMinus1(String[] p2, String exception)
p2 - String[2] containin the parameter/value pair being checkedexception - parameter name whose existance is required, but value doesn't matter