#137 - Extracted TemplateVariable into separate class.
TempalteVariable is now a standalone class. Introduced TempalteVariables wrapper to allow easy collecting of TempalteVariable instances and rendering them in the shortest possible way.
This commit is contained in:
@@ -135,6 +135,17 @@ public class Link implements Serializable {
|
||||
return getUriTemplate().getVariableNames();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all {@link TemplateVariables} contained in the {@link Link}.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@org.codehaus.jackson.annotate.JsonIgnore
|
||||
@JsonIgnore
|
||||
public List<TemplateVariable> getVariables() {
|
||||
return getUriTemplate().getVariables();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the link is templated.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user