public class ParameterName
extends java.lang.Object
To get the unique ParameterName for a given String call the static getParameterName() method. This method will look the given string up in the hashtable of parameter names and either return the value or create a new one with the string that was passed in. For example, you might have the following code :
public final static ParameterName EMPTY =
ParameterName.getParamterName("empty");
Then, every time you wish to reference that parameter name, you would reference EMPTY as in the following piece of code :
request.serviceLocalParameter(EMPTY, request,
response);
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getDimensions()
Retrieve the dimensions of this parameter name.
|
java.lang.String |
getName()
Return the full name of this component
|
ParameterName |
getNameWithoutDimensions()
If the name has dimensions this returns the name
without dimensions
|
static ParameterName |
getParameterName(java.lang.String pName)
Looks up a ParameterName, or creates a new one using this
string and adds it to the hashtable of parameter names.
|
int |
getStackCount()
How many .'s were at the beginning of this component name
|
ParameterName[] |
getSubNames()
Get the sub names for this component.
|
boolean |
hasDimensions()
Does this parameter name have array dimensions (delimmitted by "[" and "]")?
|
boolean |
hasSubNames()
Does this component name have subnames (delimmitted by ".")?
|
java.lang.String |
toString()
toString()
|
public static ParameterName getParameterName(java.lang.String pName)
pName
- the name/string to look up or create.public java.lang.String getName()
public boolean hasSubNames()
public ParameterName[] getSubNames()
public int getStackCount()
public ParameterName getNameWithoutDimensions()
public boolean hasDimensions()
public java.lang.Object[] getDimensions()
public java.lang.String toString()
toString
in class java.lang.Object