Coverage Report - org.seasar.teeda.core.config.faces.element.impl.ApplicationElementImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ApplicationElementImpl
100%
38/38
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 org.seasar.teeda.core.config.faces.element.impl;
 17  
 
 18  
 import java.util.ArrayList;
 19  
 import java.util.List;
 20  
 
 21  
 import org.seasar.teeda.core.config.faces.element.ApplicationElement;
 22  
 import org.seasar.teeda.core.config.faces.element.LocaleConfigElement;
 23  
 
 24  
 /**
 25  
  * @author shot
 26  
  * 
 27  
  */
 28  
 public class ApplicationElementImpl implements ApplicationElement {
 29  
 
 30  
     private List actionListeners_;
 31  
 
 32  
     private List stateManagers_;
 33  
 
 34  
     private List propertyResolvers_;
 35  
 
 36  
     private List variableResolvers_;
 37  
 
 38  
     private List navigationHandlers_;
 39  
 
 40  
     private List viewHandlers_;
 41  
 
 42  
     private List defaultRenderKitIds_;
 43  
 
 44  
     private List localeConfigs_;
 45  
 
 46  
     private List messageBundles_;
 47  
 
 48  7
     public ApplicationElementImpl() {
 49  7
         actionListeners_ = new ArrayList();
 50  7
         stateManagers_ = new ArrayList();
 51  7
         propertyResolvers_ = new ArrayList();
 52  7
         variableResolvers_ = new ArrayList();
 53  7
         navigationHandlers_ = new ArrayList();
 54  7
         viewHandlers_ = new ArrayList();
 55  7
         defaultRenderKitIds_ = new ArrayList();
 56  7
         localeConfigs_ = new ArrayList();
 57  7
         messageBundles_ = new ArrayList();
 58  7
     }
 59  
 
 60  
     public void addActionListener(String actionListener) {
 61  4
         actionListeners_.add(actionListener);
 62  4
     }
 63  
 
 64  
     public void addStateManager(String stateManager) {
 65  4
         stateManagers_.add(stateManager);
 66  4
     }
 67  
 
 68  
     public void addPropertyResolver(String propertyResolver) {
 69  4
         propertyResolvers_.add(propertyResolver);
 70  4
     }
 71  
 
 72  
     public void addVariableResolver(String variableResolver) {
 73  4
         variableResolvers_.add(variableResolver);
 74  4
     }
 75  
 
 76  
     public void addNavigationHandler(String navigationHandler) {
 77  4
         navigationHandlers_.add(navigationHandler);
 78  4
     }
 79  
 
 80  
     public void addViewHandler(String viewHandler) {
 81  4
         viewHandlers_.add(viewHandler);
 82  4
     }
 83  
 
 84  
     public void addDefaultRenderKitId(String defaultRenderKitId) {
 85  4
         defaultRenderKitIds_.add(defaultRenderKitId);
 86  4
     }
 87  
 
 88  
     public void addLocaleConfig(LocaleConfigElement localeConfig) {
 89  6
         localeConfigs_.add(localeConfig);
 90  6
     }
 91  
 
 92  
     public void addMessageBundle(String messageBundle) {
 93  4
         messageBundles_.add(messageBundle);
 94  4
     }
 95  
 
 96  
     public List getActionListeners() {
 97  5
         return actionListeners_;
 98  
     }
 99  
 
 100  
     public List getStateManagers() {
 101  5
         return stateManagers_;
 102  
     }
 103  
 
 104  
     public List getPropertyResolvers() {
 105  5
         return propertyResolvers_;
 106  
     }
 107  
 
 108  
     public List getVariableResolvers() {
 109  5
         return variableResolvers_;
 110  
     }
 111  
 
 112  
     public List getNavigationHandlers() {
 113  5
         return navigationHandlers_;
 114  
     }
 115  
 
 116  
     public List getViewHandlers() {
 117  5
         return viewHandlers_;
 118  
     }
 119  
 
 120  
     public List getDefaultRenderKitIds() {
 121  5
         return defaultRenderKitIds_;
 122  
     }
 123  
 
 124  
     public List getLocaleConfigs() {
 125  7
         return localeConfigs_;
 126  
     }
 127  
 
 128  
     public List getMessageBundles() {
 129  5
         return messageBundles_;
 130  
     }
 131  
 
 132  
 }