JSF Test Framework: Mock 1.1.2

org.jboss.test.faces.mock.component
Class TreeBuilderImpl<C extends javax.faces.component.UIComponent>

java.lang.Object
  extended by org.jboss.test.faces.mock.component.TreeBuilderImpl<C>
All Implemented Interfaces:
TreeBuilder<C>
Direct Known Subclasses:
ViewBuilder

public class TreeBuilderImpl<C extends javax.faces.component.UIComponent>
extends Object
implements TreeBuilder<C>

This class builds tree of mock components

Author:
asmirnov@exadel.com

Constructor Summary
protected TreeBuilderImpl(C component)
           
 
Method Summary
 TreeBuilder<C> children(TreeBuilder<?>... builders)
           
 TreeBuilder<C> facets(Facet<?>... facets)
           
 C getComponent()
          

 TreeBuilder<C> id(String id)
           
 void replay()
           
 void verify()
           
 void visitTree(org.jboss.test.faces.mock.component.TreeVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeBuilderImpl

protected TreeBuilderImpl(C component)
Method Detail

id

public TreeBuilder<C> id(String id)
Specified by:
id in interface TreeBuilder<C extends javax.faces.component.UIComponent>

replay

public void replay()
Specified by:
replay in interface TreeBuilder<C extends javax.faces.component.UIComponent>

verify

public void verify()
Specified by:
verify in interface TreeBuilder<C extends javax.faces.component.UIComponent>

visitTree

public void visitTree(org.jboss.test.faces.mock.component.TreeVisitor visitor)
Specified by:
visitTree in interface TreeBuilder<C extends javax.faces.component.UIComponent>

getComponent

public C getComponent()
Description copied from interface: TreeBuilder

Specified by:
getComponent in interface TreeBuilder<C extends javax.faces.component.UIComponent>
Returns:
the component

children

public TreeBuilder<C> children(TreeBuilder<?>... builders)
Specified by:
children in interface TreeBuilder<C extends javax.faces.component.UIComponent>

facets

public TreeBuilder<C> facets(Facet<?>... facets)
Specified by:
facets in interface TreeBuilder<C extends javax.faces.component.UIComponent>

JSF Test Framework: Mock 1.1.2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.