net.jakubholy.jeeutils.jsfelcheck.validator.jsf12
Class MethodFakingFunctionMapper

java.lang.Object
  extended by javax.el.FunctionMapper
      extended by net.jakubholy.jeeutils.jsfelcheck.validator.jsf12.MethodFakingFunctionMapper

public class MethodFakingFunctionMapper
extends javax.el.FunctionMapper

Instead of resolving to the correct Method based on prefix, name, taglib URI and information in a taglib info file, this mapper just returns a suitable generic method taking the expected number of parameters.

In the future I may implement/reuse a true function mapper.


Constructor Summary
MethodFakingFunctionMapper()
           
 
Method Summary
static String fakeMethod0()
           
static String fakeMethod1(Object p1)
           
static String fakeMethod2(Object p1, Object p2)
           
static String fakeMethod3(Object p1, Object p2, Object p3)
           
static String fakeMethod4(Object p1, Object p2, Object p3, Object p4)
           
static String fakeMethod5(Object p1, Object p2, Object p3, Object p4, Object p5)
           
 Collection<String> getLastExpressionsFunctionQNames()
           
 Method resolveFunction(String prefix, String name)
           
 void setCurrentExpression(String currentExpression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodFakingFunctionMapper

public MethodFakingFunctionMapper()
Method Detail

fakeMethod0

public static String fakeMethod0()

fakeMethod1

public static String fakeMethod1(Object p1)

fakeMethod2

public static String fakeMethod2(Object p1,
                                 Object p2)

fakeMethod3

public static String fakeMethod3(Object p1,
                                 Object p2,
                                 Object p3)

fakeMethod4

public static String fakeMethod4(Object p1,
                                 Object p2,
                                 Object p3,
                                 Object p4)

fakeMethod5

public static String fakeMethod5(Object p1,
                                 Object p2,
                                 Object p3,
                                 Object p4,
                                 Object p5)

getLastExpressionsFunctionQNames

public Collection<String> getLastExpressionsFunctionQNames()

resolveFunction

public Method resolveFunction(String prefix,
                              String name)
Specified by:
resolveFunction in class javax.el.FunctionMapper

setCurrentExpression

public void setCurrentExpression(String currentExpression)


Copyright © 2012. All Rights Reserved.