Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
RemotableAbstractControl |
|
| 1.0;1 | ||||
RemotableAbstractControl$Builder |
|
| 1.0;1 | ||||
RemotableAbstractControl$Constants |
|
| 1.0;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.mo.AbstractDataTransferObject; | |
19 | import org.kuali.rice.core.api.mo.ModelBuilder; | |
20 | import org.kuali.rice.core.api.mo.ModelObjectComplete; | |
21 | ||
22 | import javax.xml.bind.annotation.XmlAccessType; | |
23 | import javax.xml.bind.annotation.XmlAccessorType; | |
24 | import javax.xml.bind.annotation.XmlType; | |
25 | ||
26 | /** | |
27 | * An abstract control that all controls inherit from. | |
28 | */ | |
29 | @XmlAccessorType(XmlAccessType.NONE) | |
30 | @XmlType(name = RemotableAbstractControl.Constants.TYPE_NAME) | |
31 | public abstract class RemotableAbstractControl extends AbstractDataTransferObject implements Control { | |
32 | ||
33 | /** | |
34 | * Should only be invoked by JAXB. | |
35 | */ | |
36 | @SuppressWarnings("unused") | |
37 | 44 | RemotableAbstractControl() { |
38 | ||
39 | 44 | } |
40 | ||
41 | 0 | public abstract static class Builder implements Control, ModelBuilder { |
42 | protected Builder() { | |
43 | 38 | super(); |
44 | 38 | } |
45 | ||
46 | //todo make ModelBuilder generic so I don't have to do this. | |
47 | public abstract RemotableAbstractControl build(); | |
48 | } | |
49 | ||
50 | /** | |
51 | * Defines some internal constants used on this class. | |
52 | */ | |
53 | 0 | static class Constants { |
54 | final static String TYPE_NAME = "AbstractControlType"; | |
55 | } | |
56 | } |