Package com.damnhandy.uri.template.impl
Class VarSpec
- java.lang.Object
-
- com.damnhandy.uri.template.impl.VarSpec
-
- All Implemented Interfaces:
Serializable
public final class VarSpec extends Object implements Serializable
Represents a variable in a URI template expression.- Version:
- $Revision: 1.1 $
- Author:
- Ryan J. McDonough
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVarSpec.VarFormat
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifiergetModifier()Get the modifier.IntegergetPosition()Get the position.StringgetRegExMatchString()Returns a regex pattern that matches the variable.StringgetValue()Get the value.StringgetVariableName()Returns the variable nameStringtoString()
-
-
-
Method Detail
-
getModifier
public Modifier getModifier()
Get the modifier.- Returns:
- the modifier.
-
getRegExMatchString
public String getRegExMatchString()
Returns a regex pattern that matches the variable.- Returns:
-
getValue
public String getValue()
Get the value.- Returns:
- the value.
-
getPosition
public Integer getPosition()
Get the position.- Returns:
- the position.
-
getVariableName
public String getVariableName()
Returns the variable name- Returns:
-
-