org.codehaus.enunciate.modules.gwt
Class IsAccessorOfTypeLongMethod

java.lang.Object
  extended by org.codehaus.enunciate.modules.gwt.IsAccessorOfTypeLongMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class IsAccessorOfTypeLongMethod
extends java.lang.Object
implements freemarker.template.TemplateMethodModelEx

Template method used to determine whether a given accessor is of type long (special handing for gwt overlay types).

Author:
Ryan Heaton

Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
IsAccessorOfTypeLongMethod()
           
 
Method Summary
 java.lang.Object exec(java.util.List list)
          Returns the qname of the element that has the first parameter as the namespace, the second as the element.
protected static EnunciateFreemarkerModel getModel()
          Get the current root model.
protected static java.util.Map<java.lang.String,java.lang.String> getNamespacesToPrefixes()
          The namespace to prefix map.
protected  java.lang.String lookupPrefix(java.lang.String namespace)
          Convenience method to lookup a namespace prefix given a namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsAccessorOfTypeLongMethod

public IsAccessorOfTypeLongMethod()
Method Detail

exec

public java.lang.Object exec(java.util.List list)
                      throws freemarker.template.TemplateModelException
Returns the qname of the element that has the first parameter as the namespace, the second as the element.

Specified by:
exec in interface freemarker.template.TemplateMethodModel
Specified by:
exec in interface freemarker.template.TemplateMethodModelEx
Parameters:
list - The arguments.
Returns:
The qname.
Throws:
freemarker.template.TemplateModelException

lookupPrefix

protected java.lang.String lookupPrefix(java.lang.String namespace)
Convenience method to lookup a namespace prefix given a namespace.

Parameters:
namespace - The namespace for which to lookup the prefix.
Returns:
The namespace prefix.

getNamespacesToPrefixes

protected static java.util.Map<java.lang.String,java.lang.String> getNamespacesToPrefixes()
The namespace to prefix map.

Returns:
The namespace to prefix map.

getModel

protected static EnunciateFreemarkerModel getModel()
Get the current root model.

Returns:
The current root model.