Coverage Report - org.kuali.rice.core.api.uif.RemotableHiddenInput
 
Classes in this File Line Coverage Branch Coverage Complexity
RemotableHiddenInput
100%
7/7
N/A
1
RemotableHiddenInput$Builder
100%
6/6
N/A
1
RemotableHiddenInput$Constants
0%
0/1
N/A
1
RemotableHiddenInput$Elements
0%
0/1
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
 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, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.core.api.uif;
 17  
 
 18  
 import org.kuali.rice.core.api.CoreConstants;
 19  
 import org.w3c.dom.Element;
 20  
 
 21  
 import javax.xml.bind.annotation.XmlAccessType;
 22  
 import javax.xml.bind.annotation.XmlAccessorType;
 23  
 import javax.xml.bind.annotation.XmlAnyElement;
 24  
 import javax.xml.bind.annotation.XmlElement;
 25  
 import javax.xml.bind.annotation.XmlRootElement;
 26  
 import javax.xml.bind.annotation.XmlType;
 27  
 import java.util.Collection;
 28  
 
 29  
 /**
 30  
  * A hidden input control type.
 31  
  */
 32  
 @XmlRootElement(name = RemotableHiddenInput.Constants.ROOT_ELEMENT_NAME)
 33  
 @XmlAccessorType(XmlAccessType.NONE)
 34  
 @XmlType(name = RemotableHiddenInput.Constants.TYPE_NAME, propOrder = {
 35  
                 CoreConstants.CommonElements.FUTURE_ELEMENTS })
 36  2
 public final class RemotableHiddenInput extends RemotableAbstractControl {
 37  
 
 38  1
     private static final RemotableHiddenInput INSTANCE = new RemotableHiddenInput(Builder.INSTANCE);
 39  
 
 40  3
     @SuppressWarnings("unused")
 41  
     @XmlAnyElement
 42  
     private final Collection<Element> _futureElements = null;
 43  
 
 44  
     /**
 45  
      * Should only be invoked by JAXB.
 46  
      */
 47  
     @SuppressWarnings("unused")
 48  2
     private RemotableHiddenInput() {
 49  2
     }
 50  
 
 51  1
     private RemotableHiddenInput(Builder b) {
 52  1
     }
 53  
 
 54  3
     public static final class Builder extends RemotableAbstractControl.Builder {
 55  
 
 56  1
         private static final Builder INSTANCE = new Builder();
 57  
 
 58  
         private Builder() {
 59  1
             super();
 60  1
         }
 61  
 
 62  
         //no important state in these classes so returning a singleton
 63  
         public static Builder create() {
 64  2
             return INSTANCE;
 65  
         }
 66  
 
 67  
         @Override
 68  
         public RemotableHiddenInput build() {
 69  2
             return RemotableHiddenInput.INSTANCE;
 70  
         }
 71  
     }
 72  
 
 73  
     /**
 74  
      * Defines some internal constants used on this class.
 75  
      */
 76  0
     static final class Constants {
 77  
         static final String TYPE_NAME = "HiddenInputType";
 78  
         final static String ROOT_ELEMENT_NAME = "hiddenInput";
 79  
     }
 80  
 
 81  0
     static final class Elements {
 82  
     }
 83  
 }