2009/05/20 - Apache Shale has been retired.

For more information, please explore the Attic.

Coverage Report - org.apache.shale.tiger.managed.config.ListEntriesConfig
 
Classes in this File Line Coverage Branch Coverage Complexity
ListEntriesConfig
100%
9/9
N/A
0
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
  * contributor license agreements.  See the NOTICE file distributed with
 4  
  * this work for additional information regarding copyright ownership.
 5  
  * The ASF licenses this file to you under the Apache License, Version 2.0
 6  
  * (the "License"); you may not use this file except in compliance with
 7  
  * the License.  You may obtain a copy of the License at
 8  
  *
 9  
  *      http://www.apache.org/licenses/LICENSE-2.0
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 
 18  
 package org.apache.shale.tiger.managed.config;
 19  
 
 20  
 import java.util.ArrayList;
 21  
 import java.util.List;
 22  
 
 23  
 /**
 24  
  * <p>Representation of the runtime relevant contents of a JavaServer Faces
 25  
  * <code>&lt;list-entries&gt;</code> configuration element.</p>
 26  
  */
 27  
 public class ListEntriesConfig {
 28  
 
 29  
     /** Creates a new instance of ListEntriesConfig. */
 30  25
     public ListEntriesConfig() {
 31  25
     }
 32  
 
 33  
     /**
 34  
      * Holds value of property valueType.
 35  
      */
 36  
     private String valueType;
 37  
 
 38  
     /**
 39  
      * Getter for property type.
 40  
      * @return Value of property type.
 41  
      */
 42  
     public String getValueType() {
 43  
 
 44  8
         return this.valueType;
 45  
     }
 46  
 
 47  
     /**
 48  
      * Setter for property type.
 49  
      * @param valueType New value of property type.
 50  
      */
 51  
     public void setValueType(String valueType) {
 52  
 
 53  10
         this.valueType = valueType;
 54  10
     }
 55  
 
 56  
 
 57  
     /**
 58  
      * <p>List of entries for configuring this list.</p>
 59  
      */
 60  25
     private List<ListEntryConfig> entries = new ArrayList<ListEntryConfig>();
 61  
 
 62  
 
 63  
     /**
 64  
      * <p>Add a new entry to the entries for this list.</p>
 65  
      *
 66  
      * @param entry Entry to be added
 67  
      */
 68  
     public void addEntry(ListEntryConfig entry) {
 69  120
         this.entries.add(entry);
 70  120
     }
 71  
 
 72  
 
 73  
     /**
 74  
      * <p>Return the entries for configuring this list.</p>
 75  
      */
 76  
     public List<ListEntryConfig> getEntries() {
 77  24
         return this.entries;
 78  
     }
 79  
 
 80  
 
 81  
 }