Package com.damnhandy.uri.template
Class Literal
- java.lang.Object
-
- com.damnhandy.uri.template.UriTemplateComponent
-
- com.damnhandy.uri.template.Literal
-
- All Implemented Interfaces:
Serializable
public class Literal extends UriTemplateComponent
Represents the non-expression parts of a URI Template- Since:
- 2.0
- Version:
- $Revision: 1.1 $
- Author:
- Ryan J. McDonough
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pattern
getMatchPattern()
Returns a string that contains a regular expression that matches the URI template expression.String
getValue()
String
toString()
-
Methods inherited from class com.damnhandy.uri.template.UriTemplateComponent
getEndPosition, getStartPosition
-
-
-
-
Constructor Detail
-
Literal
public Literal(String value, int startPosition)
Create a new Literal.
-
-
Method Detail
-
getValue
public String getValue()
- Specified by:
getValue
in classUriTemplateComponent
-
getMatchPattern
public Pattern getMatchPattern()
Description copied from class:UriTemplateComponent
Returns a string that contains a regular expression that matches the URI template expression.- Specified by:
getMatchPattern
in classUriTemplateComponent
- Returns:
-
-