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

For more information, please explore the Attic.

Coverage Report - org.apache.shale.tiger.managed.config.ListEntryConfig
 
Classes in this File Line Coverage Branch Coverage Complexity
ListEntryConfig
100%
9/9
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;list-entry&gt;</code> configuration element.</p>
 23  
  */
 24  
 public class ListEntryConfig implements NullValueHolder {
 25  
 
 26  
     /** Creates a new instance of ListEntryConfig. */
 27  120
     public ListEntryConfig() {
 28  120
     }
 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  33
         return (value != null) && value.startsWith("#{")
 36  
           && value.endsWith("}");
 37  
     }
 38  
 
 39  
     /**
 40  
      * Holds value of property value.
 41  
      */
 42  
     private String value;
 43  
 
 44  
     /**
 45  
      * Getter for property value.
 46  
      * @return Value of property value.
 47  
      */
 48  
     public String getValue() {
 49  
 
 50  33
         return this.value;
 51  
     }
 52  
 
 53  
     /**
 54  
      * Setter for property value.
 55  
      * @param value New value of property value.
 56  
      */
 57  
     public void setValue(String value) {
 58  
 
 59  95
         this.value = value;
 60  95
     }
 61  
 
 62  
     /**
 63  
      * Holds value of property nullValue.
 64  
      */
 65  
     private boolean nullValue;
 66  
 
 67  
     /**
 68  
      * Getter for property nullValue.
 69  
      * @return Value of property nullValue.
 70  
      */
 71  
     public boolean isNullValue() {
 72  
 
 73  38
         return this.nullValue;
 74  
     }
 75  
 
 76  
     /**
 77  
      * Setter for property nullValue.
 78  
      * @param nullValue New value of property nullValue.
 79  
      */
 80  
     public void setNullValue(boolean nullValue) {
 81  
 
 82  25
         this.nullValue = nullValue;
 83  25
     }
 84  
 
 85  
 }