Coverage Report - org.kuali.rice.core.api.uif.RemotableDatepicker
 
Classes in this File Line Coverage Branch Coverage Complexity
RemotableDatepicker
0%
0/7
N/A
1
RemotableDatepicker$Builder
0%
0/6
N/A
1
RemotableDatepicker$Constants
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.XmlRootElement;
 25  
 import javax.xml.bind.annotation.XmlType;
 26  
 import java.util.Collection;
 27  
 
 28  
 /**
 29  
  * A datepicker widget that can be used by a TextInput or HiddenInput control.
 30  
  */
 31  
 @XmlRootElement(name = RemotableDatepicker.Constants.ROOT_ELEMENT_NAME)
 32  
 @XmlAccessorType(XmlAccessType.NONE)
 33  
 @XmlType(name = RemotableDatepicker.Constants.TYPE_NAME, propOrder = {
 34  
                 CoreConstants.CommonElements.FUTURE_ELEMENTS })
 35  0
 public final class RemotableDatepicker extends RemotableAbstractWidget {
 36  
 
 37  0
     private static final RemotableDatepicker INSTANCE = new RemotableDatepicker(Builder.INSTANCE);
 38  
 
 39  0
     @SuppressWarnings("unused")
 40  
     @XmlAnyElement
 41  
     private final Collection<Element> _futureElements = null;
 42  
 
 43  
     /**
 44  
      * Should only be invoked by JAXB.
 45  
      */
 46  
     @SuppressWarnings("unused")
 47  
     private RemotableDatepicker() {
 48  0
         super();
 49  0
     }
 50  
 
 51  
     private RemotableDatepicker(Builder b) {
 52  0
         super();
 53  0
     }
 54  
 
 55  0
     public static final class Builder extends RemotableAbstractWidget.Builder {
 56  
 
 57  0
         private static final Builder INSTANCE = new Builder();
 58  
 
 59  
         private Builder() {
 60  0
             super();
 61  0
         }
 62  
 
 63  
         //no important state in these classes so returning a singleton
 64  
         public static Builder create() {
 65  0
             return INSTANCE;
 66  
         }
 67  
 
 68  
         @Override
 69  
         public RemotableDatepicker build() {
 70  0
             return RemotableDatepicker.INSTANCE;
 71  
         }
 72  
     }
 73  
 
 74  
 
 75  
     /**
 76  
      * Defines some internal constants used on this class.
 77  
      */
 78  0
     static final class Constants {
 79  
         static final String TYPE_NAME = "DatepickerType";
 80  
         final static String ROOT_ELEMENT_NAME = "datepicker";
 81  
     }
 82  
 }