Coverage Report - org.kuali.rice.core.api.uif.RemotableDatepicker
 
Classes in this File Line Coverage Branch Coverage Complexity
RemotableDatepicker
100%
6/6
N/A
1
RemotableDatepicker$1
N/A
N/A
1
RemotableDatepicker$Builder
100%
5/5
N/A
1
RemotableDatepicker$Constants
0%
0/1
N/A
1
 
 1  
 package org.kuali.rice.core.api.uif;
 2  
 
 3  
 import org.kuali.rice.core.api.CoreConstants;
 4  
 import org.w3c.dom.Element;
 5  
 
 6  
 import javax.xml.bind.annotation.XmlAccessType;
 7  
 import javax.xml.bind.annotation.XmlAccessorType;
 8  
 import javax.xml.bind.annotation.XmlAnyElement;
 9  
 import javax.xml.bind.annotation.XmlRootElement;
 10  
 import javax.xml.bind.annotation.XmlType;
 11  
 import java.util.Collection;
 12  
 
 13  
 /**
 14  
  * A datepicker widget that can be used by a TextInput or HiddenInput control.
 15  
  */
 16  
 @XmlRootElement(name = RemotableDatepicker.Constants.ROOT_ELEMENT_NAME)
 17  
 @XmlAccessorType(XmlAccessType.NONE)
 18  
 @XmlType(name = RemotableDatepicker.Constants.TYPE_NAME, propOrder = {
 19  
                 CoreConstants.CommonElements.FUTURE_ELEMENTS })
 20  2
 public final class RemotableDatepicker extends RemotableAbstractWidget {
 21  
 
 22  4
     @SuppressWarnings("unused")
 23  
     @XmlAnyElement
 24  
     private final Collection<Element> _futureElements = null;
 25  
 
 26  
     /**
 27  
      * Should only be invoked by JAXB.
 28  
      */
 29  
     @SuppressWarnings("unused")
 30  
     private RemotableDatepicker() {
 31  2
         super();
 32  2
     }
 33  
 
 34  
     private RemotableDatepicker(Builder b) {
 35  2
         super();
 36  2
     }
 37  
 
 38  2
     public static final class Builder extends RemotableAbstractWidget.Builder {
 39  
 
 40  
         private Builder() {
 41  2
             super();
 42  2
         }
 43  
 
 44  
         public static Builder create() {
 45  2
             return new Builder();
 46  
         }
 47  
 
 48  
         @Override
 49  
         public RemotableDatepicker build() {
 50  2
             return new RemotableDatepicker(this);
 51  
         }
 52  
     }
 53  
 
 54  
 
 55  
     /**
 56  
      * Defines some internal constants used on this class.
 57  
      */
 58  0
     static final class Constants {
 59  
         static final String TYPE_NAME = "DatepickerType";
 60  
         final static String ROOT_ELEMENT_NAME = "datepicker";
 61  
     }
 62  
 }