org.apache.myfaces.component.visit
Class FullVisitContext

java.lang.Object
  extended by javax.faces.component.visit.VisitContext
      extended by org.apache.myfaces.component.visit.FullVisitContext

public class FullVisitContext
extends VisitContext

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

Version:
$Rev: 1188235 $ $Date: 2011-10-24 12:09:33 -0500 (Mon, 24 Oct 2011) $
Author:
Werner Punz, Blake Sullivan (latest modification by $Author: struberg $)

Field Summary
 
Fields inherited from class javax.faces.component.visit.VisitContext
ALL_IDS
 
Constructor Summary
FullVisitContext(FacesContext facesContext)
          Creates a FullVisitorContext instance.
FullVisitContext(FacesContext facesContext, Set<VisitHint> hints)
          Creates a FullVisitorContext instance with the specified hints.
 
Method Summary
 FacesContext getFacesContext()
           
 Set<VisitHint> getHints()
           
 Collection<String> getIdsToVisit()
           
 Collection<String> getSubtreeIdsToVisit(UIComponent component)
           
 VisitResult invokeVisitCallback(UIComponent component, 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

FullVisitContext

public FullVisitContext(FacesContext facesContext)
Creates a FullVisitorContext instance.

Parameters:
facesContext - the FacesContext for the current request
Throws:
NullPointerException - if facesContext is null

FullVisitContext

public FullVisitContext(FacesContext facesContext,
                        Set<VisitHint> hints)
Creates a FullVisitorContext instance with the specified hints.

Parameters:
facesContext - the FacesContext for the current request
hints - a the VisitHints for this visit
phaseId - PhaseId, if any that visit is ocurring under
Throws:
NullPointerException - if facesContext is null
IllegalArgumentException - if the phaseId is specified and hints does not contain VisitHint.EXECUTE_LIFECYCLE
Method Detail

getFacesContext

public FacesContext getFacesContext()
Specified by:
getFacesContext in class VisitContext
See Also:
VisitContext.getFacesContext()

getIdsToVisit

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

getSubtreeIdsToVisit

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

getHints

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

invokeVisitCallback

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


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