at.newmedialab.ldpath.template.engine
Class LDPathMethod<Node>

java.lang.Object
  extended by at.newmedialab.ldpath.template.engine.LDPathMethod<Node>
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateModel

public class LDPathMethod<Node>
extends Object
implements freemarker.template.TemplateMethodModel

Add file description here!

Author: Sebastian Schaffert


Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
LDPathMethod(RDFBackend<Node> backend)
           
 
Method Summary
 Object exec(List arguments)
          Executes a method call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDPathMethod

public LDPathMethod(RDFBackend<Node> backend)
Method Detail

exec

public Object exec(List arguments)
            throws freemarker.template.TemplateModelException
Executes a method call. All arguments passed to the method call are coerced to strings before being passed, if the FreeMarker rules allow the coercion. If some of the passed arguments can not be coerced to a string, an exception will be raised in the engine and the method will not be called. If your method would like to act on actual data model objects instead of on their string representations, implement the TemplateMethodModelEx instead.

Specified by:
exec in interface freemarker.template.TemplateMethodModel
Parameters:
arguments - a List of String objects containing the values of the arguments passed to the method.
Returns:
the return value of the method, or null. If the returned value does not implement TemplateModel, it will be automatically wrapped using the environment object wrapper.
Throws:
freemarker.template.TemplateModelException


Copyright © 2012 Salzburg Research. All Rights Reserved.