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

For more information, please explore the Attic.

Coverage Report - org.apache.shale.tiger.managed.config.MapEntryConfig
 
Classes in this File Line Coverage Branch Coverage Complexity
MapEntryConfig
100%
12/12
N/A
1
 
 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  
 /**
 21  
  * <p>Representation of the runtime relevant contents of a JavaServer Faces
 22  
  * <code>&lt;map-entry&gt;</code> configuration element.</p>
 23  
  */
 24  
 public class MapEntryConfig implements NullValueHolder {
 25  
 
 26  
     /** Creates a new instance of MapEntryConfig. */
 27  30
     public MapEntryConfig() {
 28  30
     }
 29  
 
 30  
     /**
 31  
      * <p>Return <code>true</code> if the specified <code>value</code>
 32  
      * is a value binding expression, rather than a literal value.</p>
 33  
      */
 34  
     public boolean isExpression() {
 35  19
         return (value != null) && value.startsWith("#{")
 36  
           && value.endsWith("}");
 37  
     }
 38  
 
 39  
     /**
 40  
      * Holds value of property key.
 41  
      */
 42  
     private String key;
 43  
 
 44  
     /**
 45  
      * Getter for property key.
 46  
      * @return Value of property key.
 47  
      */
 48  
     public String getKey() {
 49  
 
 50  86
         return this.key;
 51  
     }
 52  
 
 53  
     /**
 54  
      * Setter for property key.
 55  
      * @param key New value of property key.
 56  
      */
 57  
     public void setKey(String key) {
 58  
 
 59  30
         this.key = key;
 60  30
     }
 61  
 
 62  
     /**
 63  
      * Holds value of property value.
 64  
      */
 65  
     private String value;
 66  
 
 67  
     /**
 68  
      * Getter for property value.
 69  
      * @return Value of property value.
 70  
      */
 71  
     public String getValue() {
 72  
 
 73  19
         return this.value;
 74  
     }
 75  
 
 76  
     /**
 77  
      * Setter for property value.
 78  
      * @param value New value of property value.
 79  
      */
 80  
     public void setValue(String value) {
 81  
 
 82  27
         this.value = value;
 83  27
     }
 84  
 
 85  
     /**
 86  
      * Holds value of property nullValue.
 87  
      */
 88  
     private boolean nullValue;
 89  
 
 90  
     /**
 91  
      * Getter for property nullValue.
 92  
      * @return Value of property nullValue.
 93  
      */
 94  
     public boolean isNullValue() {
 95  
 
 96  14
         return this.nullValue;
 97  
     }
 98  
 
 99  
     /**
 100  
      * Setter for property nullValue.
 101  
      * @param nullValue New value of property nullValue.
 102  
      */
 103  
     public void setNullValue(boolean nullValue) {
 104  
 
 105  3
         this.nullValue = nullValue;
 106  3
     }
 107  
 
 108  
 }