/** * Returns whether or not the link is templated. * * @return */ public boolean isTemplated() { return !getUriTemplate().getVariables().isEmpty(); }
/** * Returns the variable names contained in the template. * * @return */ @JsonIgnore public List<String> getVariableNames() { return getUriTemplate().getVariableNames(); }
/** * Returns all {@link TemplateVariables} contained in the {@link Link}. * * @return */ @JsonIgnore public List<TemplateVariable> getVariables() { return getUriTemplate().getVariables(); }
/** * Turns the current template into a {@link Link} by expanding it using the given parameters. * * @param arguments must not be {@literal null}. * @return */ public Link expand(Map<String, ? extends Object> arguments) { return new Link(getUriTemplate().expand(arguments).toString(), getRel()); }
/** * Turns the current template into a {@link Link} by expanding it using the given parameters. * * @param arguments * @return */ public Link expand(Object... arguments) { return new Link(getUriTemplate().expand(arguments).toString(), getRel()); }
/** * Returns the variable names contained in the template. * * @return */ @JsonIgnore public List<String> getVariableNames() { return getUriTemplate().getVariableNames(); }
/** * Returns all {@link TemplateVariables} contained in the {@link Link}. * * @return */ @JsonIgnore public List<TemplateVariable> getVariables() { return getUriTemplate().getVariables(); }
/** * Returns whether the link is templated. * * @return */ public boolean isTemplated() { return !getUriTemplate().getVariables().isEmpty(); }
/** * Turns the current template into a {@link Link} by expanding it using the given parameters. * * @param arguments must not be {@literal null}. * @return */ public Link expand(Map<String, ? extends Object> arguments) { return new Link(getUriTemplate().expand(arguments).toString(), getRel()); }
/** * Turns the current template into a {@link Link} by expanding it using the given parameters. * * @param arguments * @return */ public Link expand(Object... arguments) { return new Link(getUriTemplate().expand(arguments).toString(), getRel()); }