org.apache.myfaces.test.mock.visit
Class PartialVisitContext

java.lang.Object
  extended by javax.faces.component.visit.VisitContext
      extended by org.apache.myfaces.test.mock.visit.PartialVisitContext

public class PartialVisitContext
extends javax.faces.component.visit.VisitContext

A VisitContext implementation that is used when performing a partial component tree visit.

Since:
1.0.0
Version:
$Rev: 949094 $ $Date: 2010-05-27 22:59:10 -0500 (Jue, 27 May 2010) $
Author:
Werner Punz, Blake Sullivan (latest modification by $Author: lu4242 $)

Field Summary
 
Fields inherited from class javax.faces.component.visit.VisitContext
ALL_IDS
 
Constructor Summary
PartialVisitContext(javax.faces.context.FacesContext facesContext, Collection<String> clientIds)
          Creates a PartialVisitorContext instance.
PartialVisitContext(javax.faces.context.FacesContext facesContext, Collection<String> clientIds, Set<javax.faces.component.visit.VisitHint> hints)
          Creates a PartialVisitorContext instance with the specified hints.
 
Method Summary
 javax.faces.context.FacesContext getFacesContext()
           
 Set<javax.faces.component.visit.VisitHint> getHints()
           
 Collection<String> getIdsToVisit()
           
 Collection<String> getSubtreeIdsToVisit(javax.faces.component.UIComponent component)
           
 javax.faces.component.visit.VisitResult invokeVisitCallback(javax.faces.component.UIComponent component, javax.faces.component.visit.VisitCallback callback)
           
 
Methods inherited from class javax.faces.component.visit.VisitContext
createVisitContext, createVisitContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartialVisitContext

public PartialVisitContext(javax.faces.context.FacesContext facesContext,
                           Collection<String> clientIds)
Creates a PartialVisitorContext instance.

Parameters:
facesContext - the FacesContext for the current request
clientIds - the client ids of the components to visit
Throws:
NullPointerException - if facesContext is null

PartialVisitContext

public PartialVisitContext(javax.faces.context.FacesContext facesContext,
                           Collection<String> clientIds,
                           Set<javax.faces.component.visit.VisitHint> hints)
Creates a PartialVisitorContext instance with the specified hints.

Parameters:
facesContext - the FacesContext for the current request
clientIds - the client ids of the components to visit
hints - a the VisitHints for this visit
Throws:
NullPointerException - if facesContext is null
IllegalArgumentException - if the phaseId is specified and hints does not contain VisitHint.EXECUTE_LIFECYCLE
Method Detail

getFacesContext

public javax.faces.context.FacesContext getFacesContext()
Specified by:
getFacesContext in class javax.faces.component.visit.VisitContext
See Also:
VisitContext.getFacesContext()

getHints

public Set<javax.faces.component.visit.VisitHint> getHints()
Specified by:
getHints in class javax.faces.component.visit.VisitContext
See Also:
VisitContext.getHints

getIdsToVisit

public Collection<String> getIdsToVisit()
Specified by:
getIdsToVisit in class javax.faces.component.visit.VisitContext
See Also:
VisitContext.getIdsToVisit()

getSubtreeIdsToVisit

public Collection<String> getSubtreeIdsToVisit(javax.faces.component.UIComponent component)
Specified by:
getSubtreeIdsToVisit in class javax.faces.component.visit.VisitContext
See Also:
VisitContext.getSubtreeIdsToVisit()

invokeVisitCallback

public javax.faces.component.visit.VisitResult invokeVisitCallback(javax.faces.component.UIComponent component,
                                                                   javax.faces.component.visit.VisitCallback callback)
Specified by:
invokeVisitCallback in class javax.faces.component.visit.VisitContext
See Also:
VisitContext.invokeVisitCallback()


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.