#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:
Oliver Gierke
2014-01-20 16:19:35 +01:00
parent 394fa4a009
commit b0cfaf7a62
6 changed files with 456 additions and 129 deletions

View File

@@ -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.
*