Package org.apache.abdera.i18n.templates
Class Template
- java.lang.Object
-
- org.apache.abdera.i18n.templates.Template
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<String>
@Deprecated public final class Template extends Object implements Iterable<String>, Cloneable, Serializable
Deprecated.Legacy AEM 6.x API.Used to evaluate a URI Template. Instances are immutable, cloneable, serializable and threadsafe.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Templateclone()Deprecated.Clone this Template instancebooleanequals(Object obj)Deprecated.Stringexpand(Object object)Deprecated.Expand the URI Template using the non-private fields and methods of the specified object to resolve the template tokensStringexpand(Object object, boolean isiri)Deprecated.Expand the template using the non-private fields and methods of the specified object to resolve the template tokens.static Stringexpand(String pattern, Object object)Deprecated.static Stringexpand(String pattern, Object object, boolean isiri)Deprecated.static Stringexpand(String pattern, Context context)Deprecated.Stringexpand(Context context)Deprecated.Expand the URI Template using the specified Context.static StringexpandAnnotated(Object object)Deprecated.Use an Object annotated with the URITemplate annotation to expand a templateStringexplain()Deprecated.voidexplain(Appendable buf)Deprecated.static Stringexplain(String pattern)Deprecated.static voidexplain(String pattern, Appendable buf)Deprecated.StringgetPattern()Deprecated.Return the URI Template patternStringgetPatternForDisplay()Deprecated.IRI Templates that contain bidirectional characters will typically not display properly in unicode enabled environments.String[]getVariables()Deprecated.Return the array of template variablesinthashCode()Deprecated.Iterator<String>iterator()Deprecated.Iterate the template tokensStringtoString()Deprecated.-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
Template
public Template(String pattern)
Deprecated.- Parameters:
pattern- A URI Template
-
-
Method Detail
-
getPattern
public String getPattern()
Deprecated.Return the URI Template pattern
-
getPatternForDisplay
public String getPatternForDisplay()
Deprecated.IRI Templates that contain bidirectional characters will typically not display properly in unicode enabled environments. This method return the Template with appropriate bidi control characters to ensure that the Template can be rendered properly for display
-
getVariables
public String[] getVariables()
Deprecated.Return the array of template variables
-
expand
public String expand(Context context)
Deprecated.Expand the URI Template using the specified Context.- Parameters:
context- The Context impl used to resolve variable values- Returns:
- An expanded URI
-
expand
public String expand(Object object)
Deprecated.Expand the URI Template using the non-private fields and methods of the specified object to resolve the template tokens
-
expand
public String expand(Object object, boolean isiri)
Deprecated.Expand the template using the non-private fields and methods of the specified object to resolve the template tokens. If isiri is true, IRI escaping rules will be used.
-
clone
public Template clone()
Deprecated.Clone this Template instance
-
explain
public String explain()
Deprecated.
-
explain
public void explain(Appendable buf) throws IOException
Deprecated.- Throws:
IOException
-
expandAnnotated
public static String expandAnnotated(Object object)
Deprecated.Use an Object annotated with the URITemplate annotation to expand a template
-
explain
public static void explain(String pattern, Appendable buf) throws IOException
Deprecated.- Throws:
IOException
-
-