1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
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 (StringUtils.isBlank(nodeName)) { |
53 | 0 | throw new IllegalArgumentException("nodeName was null or blank"); |
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 | |
|
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 | |
|
76 | |
|
77 | 0 | static class Elements { |
78 | |
final static String NODE_NAME = "nodeName"; |
79 | |
} |
80 | |
|
81 | |
} |