|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.controller.ParameterName
public class ParameterName
Encapsulates the name of a parameter in the HttpServletRequest. Detects whether or not the name refers to an indexed or mapped property.
Field Summary | |
---|---|
static Pattern |
pattern
Stores the regular expression that will remove all [] segments. |
Constructor Summary | |
---|---|
ParameterName(String name)
Constructs a ParameterName for a given name from the HttpServletRequest. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Pattern pattern
Constructor Detail |
---|
public ParameterName(String name)
name
- a name that may or may not contain indexing or mappingMethod Detail |
---|
public boolean isIndexed()
public String getName()
public String getStrippedName()
public int compareTo(ParameterName that)
compareTo
in interface Comparable<ParameterName>
that
- another ParameterName to compare to
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |