Coverage Report - org.kuali.rice.kew.api.action.ReturnPoint
 
Classes in this File Line Coverage Branch Coverage Complexity
ReturnPoint
0%
0/11
0%
0/2
1.5
ReturnPoint$Constants
0%
0/1
N/A
1.5
ReturnPoint$Elements
0%
0/1
N/A
1.5
 
 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.kew.api.action;
 17  
 
 18  
 import java.util.Collection;
 19  
 
 20  
 import javax.xml.bind.annotation.XmlAccessType;
 21  
 import javax.xml.bind.annotation.XmlAccessorType;
 22  
 import javax.xml.bind.annotation.XmlAnyElement;
 23  
 import javax.xml.bind.annotation.XmlElement;
 24  
 import javax.xml.bind.annotation.XmlRootElement;
 25  
 import javax.xml.bind.annotation.XmlType;
 26  
 
 27  
 import org.apache.commons.lang.StringUtils;
 28  
 import org.kuali.rice.core.api.CoreConstants;
 29  
 import org.kuali.rice.core.api.mo.AbstractDataTransferObject;
 30  
 import org.w3c.dom.Element;
 31  
 
 32  
 @XmlRootElement(name = ReturnPoint.Constants.ROOT_ELEMENT_NAME)
 33  
 @XmlAccessorType(XmlAccessType.NONE)
 34  
 @XmlType(name = ReturnPoint.Constants.TYPE_NAME, propOrder = {
 35  
                 ReturnPoint.Elements.NODE_NAME,
 36  
                 CoreConstants.CommonElements.FUTURE_ELEMENTS
 37  
 })
 38  
 public final class ReturnPoint extends AbstractDataTransferObject {
 39  
     
 40  
         @XmlElement(name = Elements.NODE_NAME, required = true)
 41  
     private final String nodeName;
 42  
             
 43  0
     @SuppressWarnings("unused")
 44  
     @XmlAnyElement
 45  
     private final Collection<Element> _futureElements = null;
 46  
 
 47  0
     private ReturnPoint() {
 48  0
             this.nodeName = null;
 49  0
     }
 50  
     
 51  0
     private ReturnPoint(String nodeName) {
 52  0
             if (nodeName == null) {
 53  0
                     throw new IllegalArgumentException("nodeName was null");
 54  
             }
 55  0
         this.nodeName = nodeName;
 56  0
     }
 57  
     
 58  
     public static ReturnPoint create(String nodeName) {
 59  0
             return new ReturnPoint(nodeName);
 60  
     }
 61  
     
 62  
     public String getNodeName() {
 63  0
         return nodeName;
 64  
     }
 65  
     
 66  
     /**
 67  
      * Defines some internal constants used on this class.
 68  
      */
 69  0
     static class Constants {
 70  
         final static String ROOT_ELEMENT_NAME = "returnPoint";
 71  
         final static String TYPE_NAME = "ReturnPointType";
 72  
     }
 73  
     
 74  
     /**
 75  
      * A private class which exposes constants which define the XML element names to use when this object is marshalled to XML.
 76  
      */
 77  0
     static class Elements {
 78  
         final static String NODE_NAME = "nodeName";
 79  
     }
 80  
 
 81  
 }