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 PatterngetMatchPattern()Returns a string that contains a regular expression that matches the URI template expression.StringgetValue()StringtoString()-
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:
getValuein classUriTemplateComponent
-
getMatchPattern
public Pattern getMatchPattern()
Description copied from class:UriTemplateComponentReturns a string that contains a regular expression that matches the URI template expression.- Specified by:
getMatchPatternin classUriTemplateComponent- Returns:
-
-