|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.github.fge.uritemplate.vars.specs.VariableSpec
public abstract class VariableSpec
A variable specifier
A template expression can have one or more variable specifiers. For
instance, in {+path:3,var}
, variable specifiers are path:3
and var
.
This class records the name of this specifier and its modifier, if any.
Field Summary | |
---|---|
protected String |
name
|
Constructor Summary | |
---|---|
protected |
VariableSpec(VariableSpecType type,
String name)
|
Method Summary | |
---|---|
abstract boolean |
equals(Object obj)
|
String |
getName()
Get the name for this varspec |
abstract int |
getPrefixLength()
Return the prefix length for this varspec |
VariableSpecType |
getType()
Get the modifier type for this varspec |
abstract int |
hashCode()
|
abstract boolean |
isExploded()
Tell whether this varspec has an explode modifier |
abstract String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final String name
Constructor Detail |
---|
protected VariableSpec(VariableSpecType type, String name)
Method Detail |
---|
public final VariableSpecType getType()
public final String getName()
public abstract boolean isExploded()
public abstract int getPrefixLength()
Returns -1 if no prefix length is specified. Recall: valid values are integers between 0 and 10000.
public abstract int hashCode()
hashCode
in class Object
public abstract boolean equals(Object obj)
equals
in class Object
public abstract String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |