Package com.damnhandy.uri.template
Class UriTemplateComponent
- java.lang.Object
-
- com.damnhandy.uri.template.UriTemplateComponent
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Expression
,Literal
public abstract class UriTemplateComponent extends Object implements Serializable
A Component.- Version:
- $Revision: 1.1 $
- Author:
- Ryan J. McDonough
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UriTemplateComponent(int startPoistion)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getEndPosition()
Get the endPosition.abstract Pattern
getMatchPattern()
Returns a string that contains a regular expression that matches the URI template expression.int
getStartPosition()
Get the startPosition of the component within the template string.abstract String
getValue()
-
-
-
Method Detail
-
getValue
public abstract String getValue()
-
getStartPosition
public int getStartPosition()
Get the startPosition of the component within the template string.- Returns:
- the startPosition.
-
getMatchPattern
public abstract Pattern getMatchPattern()
Returns a string that contains a regular expression that matches the URI template expression.- Returns:
-
getEndPosition
public int getEndPosition()
Get the endPosition.- Returns:
- the endPosition.
-
-