public class ParameterName extends Object implements Comparable<ParameterName>
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
pattern
Stores the regular expression that will remove all [] segments.
|
| Constructor and Description |
|---|
ParameterName(String name)
Constructs a ParameterName for a given name from the HttpServletRequest.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ParameterName that)
Orders ParameterNames so that those with shorter (unstripped) names come first.
|
boolean |
equals(Object obj)
Checks for equality as efficiently as possible.
|
String |
getName()
Always returns the parameter name as passed in to the constructor.
|
String |
getStrippedName()
Returns the name with all indexing and mapping components stripped.
|
int |
hashCode()
Simple hashcode method based on the name of the parameter.
|
boolean |
isIndexed()
Returns true if the name has indexing or mapping components, otherwise false.
|
String |
toString()
Uses the original name as the string representation of the class.
|
public static final Pattern pattern
public ParameterName(String name)
name - a name that may or may not contain indexing or mappingpublic boolean isIndexed()
public String getName()
public String getStrippedName()
public int compareTo(ParameterName that)
compareTo in interface Comparable<ParameterName>that - another ParameterName to compare topublic boolean equals(Object obj)
public int hashCode()
© Copyright 2005-2006, Stripes Development Team.