Class MockFaceletContext


  • public class MockFaceletContext
    extends javax.faces.view.facelets.FaceletContext
    Facelet Context Mock.
    • Field Summary

      • Fields inherited from class javax.faces.view.facelets.FaceletContext

        FACELET_CONTEXT_KEY
    • Constructor Summary

      Constructors 
      Constructor Description
      MockFaceletContext()  
      MockFaceletContext​(javax.faces.context.FacesContext facesContext)  
      MockFaceletContext​(javax.faces.context.FacesContext facesContext, java.util.Map<java.lang.String,​java.lang.Object> attributes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String generateUniqueId​(java.lang.String base)  
      java.lang.Object getAttribute​(java.lang.String name)  
      java.util.Map<java.lang.String,​java.lang.Object> getAttributes()  
      javax.el.ELResolver getELResolver()  
      javax.el.ExpressionFactory getExpressionFactory()  
      javax.faces.context.FacesContext getFacesContext()  
      javax.el.FunctionMapper getFunctionMapper()  
      javax.el.VariableMapper getVariableMapper()  
      void includeFacelet​(javax.faces.component.UIComponent parent, java.lang.String relativePath)  
      void includeFacelet​(javax.faces.component.UIComponent parent, java.net.URL absolutePath)  
      void setAttribute​(java.lang.String name, java.lang.Object value)  
      void setFunctionMapper​(javax.el.FunctionMapper fnMapper)  
      void setVariableMapper​(javax.el.VariableMapper varMapper)  
      • Methods inherited from class javax.el.ELContext

        addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getContext, getEvaluationListeners, getImportHandler, getLambdaArgument, getLocale, isLambdaArgument, isPropertyResolved, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, putContext, setLocale, setPropertyResolved, setPropertyResolved
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MockFaceletContext

        public MockFaceletContext​(javax.faces.context.FacesContext facesContext)
      • MockFaceletContext

        public MockFaceletContext()
      • MockFaceletContext

        public MockFaceletContext​(javax.faces.context.FacesContext facesContext,
                                  java.util.Map<java.lang.String,​java.lang.Object> attributes)
    • Method Detail

      • getFacesContext

        public javax.faces.context.FacesContext getFacesContext()
        Specified by:
        getFacesContext in class javax.faces.view.facelets.FaceletContext
      • generateUniqueId

        public java.lang.String generateUniqueId​(java.lang.String base)
        Specified by:
        generateUniqueId in class javax.faces.view.facelets.FaceletContext
      • getExpressionFactory

        public javax.el.ExpressionFactory getExpressionFactory()
        Specified by:
        getExpressionFactory in class javax.faces.view.facelets.FaceletContext
      • setVariableMapper

        public void setVariableMapper​(javax.el.VariableMapper varMapper)
        Specified by:
        setVariableMapper in class javax.faces.view.facelets.FaceletContext
      • setFunctionMapper

        public void setFunctionMapper​(javax.el.FunctionMapper fnMapper)
        Specified by:
        setFunctionMapper in class javax.faces.view.facelets.FaceletContext
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object value)
        Specified by:
        setAttribute in class javax.faces.view.facelets.FaceletContext
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
        Specified by:
        getAttribute in class javax.faces.view.facelets.FaceletContext
      • includeFacelet

        public void includeFacelet​(javax.faces.component.UIComponent parent,
                                   java.lang.String relativePath)
        Specified by:
        includeFacelet in class javax.faces.view.facelets.FaceletContext
      • includeFacelet

        public void includeFacelet​(javax.faces.component.UIComponent parent,
                                   java.net.URL absolutePath)
        Specified by:
        includeFacelet in class javax.faces.view.facelets.FaceletContext
      • getELResolver

        public javax.el.ELResolver getELResolver()
        Specified by:
        getELResolver in class javax.el.ELContext
      • getFunctionMapper

        public javax.el.FunctionMapper getFunctionMapper()
        Specified by:
        getFunctionMapper in class javax.el.ELContext
      • getVariableMapper

        public javax.el.VariableMapper getVariableMapper()
        Specified by:
        getVariableMapper in class javax.el.ELContext
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getAttributes()