Coverage Report - org.kuali.rice.core.api.uif.RemotableTextExpand
 
Classes in this File Line Coverage Branch Coverage Complexity
RemotableTextExpand
100%
7/7
N/A
1
RemotableTextExpand$Builder
100%
6/6
N/A
1
RemotableTextExpand$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 text expand widget.  This can be used along side a textarea control.
 15  
  */
 16  
 @XmlRootElement(name = RemotableTextExpand.Constants.ROOT_ELEMENT_NAME)
 17  
 @XmlAccessorType(XmlAccessType.NONE)
 18  
 @XmlType(name = RemotableTextExpand.Constants.TYPE_NAME, propOrder = {
 19  
                 CoreConstants.CommonElements.FUTURE_ELEMENTS })
 20  2
 public final class RemotableTextExpand extends RemotableAbstractWidget {
 21  
 
 22  1
     private static final RemotableTextExpand INSTANCE = new RemotableTextExpand(Builder.INSTANCE);
 23  
 
 24  3
     @SuppressWarnings("unused")
 25  
     @XmlAnyElement
 26  
     private final Collection<Element> _futureElements = null;
 27  
 
 28  
     /**
 29  
      * Should only be invoked by JAXB.
 30  
      */
 31  
     @SuppressWarnings("unused")
 32  
     private RemotableTextExpand() {
 33  2
         super();
 34  2
     }
 35  
 
 36  
     private RemotableTextExpand(Builder b) {
 37  1
         super();
 38  1
     }
 39  
 
 40  3
     public static final class Builder extends RemotableAbstractWidget.Builder {
 41  
 
 42  1
         private static final Builder INSTANCE = new Builder();
 43  
 
 44  
         private Builder() {
 45  1
             super();
 46  1
         }
 47  
 
 48  
         //no important state in these classes so returning a singleton
 49  
         public static Builder create() {
 50  2
             return INSTANCE;
 51  
         }
 52  
 
 53  
         @Override
 54  
         public RemotableTextExpand build() {
 55  2
             return RemotableTextExpand.INSTANCE;
 56  
         }
 57  
     }
 58  
 
 59  
 
 60  
     /**
 61  
      * Defines some internal constants used on this class.
 62  
      */
 63  0
     static final class Constants {
 64  
         static final String TYPE_NAME = "TextExpandType";
 65  
         final static String ROOT_ELEMENT_NAME = "textExpand";
 66  
     }
 67  
 }