org.apache.abdera.i18n.templates
Interface Context

All Superinterfaces:
Cloneable, Iterable<String>, Serializable
All Known Implementing Classes:
AbstractContext, CachingContext, DelegatingContext, HashMapContext, ObjectContext

public interface Context
extends Cloneable, Serializable, Iterable<String>

Used to resolve values for template variables


Method Summary
 void clear()
          Clear this context
 boolean isIri()
          True if IRI expansion is enabled
<T> T
resolve(String var)
          Resolve a value for the specified variable.
 void setIri(boolean isiri)
          True if IRI expansion is to be enabled
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

resolve

<T> T resolve(String var)
Resolve a value for the specified variable. The method can return either a String, an Array or a Collection.


isIri

boolean isIri()
True if IRI expansion is enabled


setIri

void setIri(boolean isiri)
True if IRI expansion is to be enabled


clear

void clear()
Clear this context



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.