Coverage Report - javax.faces.component.UIComponent
 
Classes in this File Line Coverage Branch Coverage Complexity
UIComponent
100%
2/2
N/A
1
 
 1  
 /*
 2  
  * Copyright 2004-2011 the Seasar Foundation and the Others.
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package javax.faces.component;
 17  
 
 18  
 import java.io.IOException;
 19  
 import java.util.Iterator;
 20  
 import java.util.List;
 21  
 import java.util.Map;
 22  
 
 23  
 import javax.faces.context.FacesContext;
 24  
 import javax.faces.el.ValueBinding;
 25  
 import javax.faces.event.AbortProcessingException;
 26  
 import javax.faces.event.FacesEvent;
 27  
 import javax.faces.event.FacesListener;
 28  
 import javax.faces.render.Renderer;
 29  
 
 30  
 /**
 31  
  * @author shot
 32  
  */
 33  
 public abstract class UIComponent implements StateHolder {
 34  
 
 35  10583
     public UIComponent() {
 36  10583
     }
 37  
 
 38  
     public abstract Map getAttributes();
 39  
 
 40  
     public abstract ValueBinding getValueBinding(String name);
 41  
 
 42  
     public abstract void setValueBinding(String name, ValueBinding binding);
 43  
 
 44  
     public abstract String getClientId(FacesContext context);
 45  
 
 46  
     public abstract String getFamily();
 47  
 
 48  
     public abstract String getId();
 49  
 
 50  
     public abstract void setId(String id);
 51  
 
 52  
     public abstract UIComponent getParent();
 53  
 
 54  
     public abstract void setParent(UIComponent parent);
 55  
 
 56  
     public abstract boolean isRendered();
 57  
 
 58  
     public abstract void setRendered(boolean rendered);
 59  
 
 60  
     public abstract String getRendererType();
 61  
 
 62  
     public abstract void setRendererType(String rendererType);
 63  
 
 64  
     public abstract boolean getRendersChildren();
 65  
 
 66  
     public abstract List getChildren();
 67  
 
 68  
     public abstract int getChildCount();
 69  
 
 70  
     public abstract UIComponent findComponent(String expr);
 71  
 
 72  
     public abstract Map getFacets();
 73  
 
 74  
     public abstract UIComponent getFacet(String name);
 75  
 
 76  
     public abstract Iterator getFacetsAndChildren();
 77  
 
 78  
     public abstract void broadcast(FacesEvent event)
 79  
             throws AbortProcessingException;
 80  
 
 81  
     public abstract void decode(FacesContext context);
 82  
 
 83  
     public abstract void encodeBegin(FacesContext context) throws IOException;
 84  
 
 85  
     public abstract void encodeChildren(FacesContext context)
 86  
             throws IOException;
 87  
 
 88  
     public abstract void encodeEnd(FacesContext context) throws IOException;
 89  
 
 90  
     protected abstract void addFacesListener(FacesListener listener);
 91  
 
 92  
     protected abstract FacesListener[] getFacesListeners(Class clazz);
 93  
 
 94  
     protected abstract void removeFacesListener(FacesListener listener);
 95  
 
 96  
     public abstract void queueEvent(FacesEvent event);
 97  
 
 98  
     public abstract void processRestoreState(FacesContext context, Object state);
 99  
 
 100  
     public abstract void processDecodes(FacesContext context);
 101  
 
 102  
     public abstract void processValidators(FacesContext context);
 103  
 
 104  
     public abstract void processUpdates(FacesContext context);
 105  
 
 106  
     public abstract Object processSaveState(FacesContext context);
 107  
 
 108  
     protected abstract FacesContext getFacesContext();
 109  
 
 110  
     protected abstract Renderer getRenderer(FacesContext context);
 111  
 
 112  
 }