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 class
VarSpec.VarFormat
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Modifier
getModifier()
Get the modifier.Integer
getPosition()
Get the position.String
getRegExMatchString()
Returns a regex pattern that matches the variable.String
getValue()
Get the value.String
getVariableName()
Returns the variable nameString
toString()
-
-
-
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:
-
-