1 | |
package org.kuali.rice.ksb.api.registry; |
2 | |
|
3 | |
import java.util.ArrayList; |
4 | |
import java.util.Collection; |
5 | |
import java.util.List; |
6 | |
|
7 | |
import javax.xml.bind.annotation.XmlAccessType; |
8 | |
import javax.xml.bind.annotation.XmlAccessorType; |
9 | |
import javax.xml.bind.annotation.XmlAnyElement; |
10 | |
import javax.xml.bind.annotation.XmlElement; |
11 | |
import javax.xml.bind.annotation.XmlElementWrapper; |
12 | |
import javax.xml.bind.annotation.XmlRootElement; |
13 | |
import javax.xml.bind.annotation.XmlType; |
14 | |
|
15 | |
import org.kuali.rice.core.api.CoreConstants; |
16 | |
import org.kuali.rice.ksb.api.bus.support.SoapServiceConfiguration; |
17 | |
import org.w3c.dom.Element; |
18 | |
|
19 | |
@XmlRootElement(name = RegistryConfigurations.Constants.ROOT_ELEMENT_NAME) |
20 | |
@XmlAccessorType(XmlAccessType.NONE) |
21 | |
@XmlType(name = RegistryConfigurations.Constants.TYPE_NAME, propOrder = { |
22 | |
RegistryConfigurations.Elements.SOAP_SERVICE_CONFIGURATIONS, |
23 | |
CoreConstants.CommonElements.FUTURE_ELEMENTS |
24 | |
}) |
25 | |
public class RegistryConfigurations { |
26 | |
|
27 | |
@XmlElementWrapper(name = Elements.SOAP_SERVICE_CONFIGURATIONS) |
28 | |
@XmlElement(name = Elements.SOAP_SERVICE_CONFIGURATION) |
29 | |
private final List<SoapServiceConfiguration> soapServiceConfigurations; |
30 | |
|
31 | 0 | @SuppressWarnings("unused") |
32 | |
@XmlAnyElement |
33 | |
private final Collection<Element> _futureElements = null; |
34 | |
|
35 | |
@SuppressWarnings("unused") |
36 | 0 | private RegistryConfigurations() { |
37 | 0 | this.soapServiceConfigurations = null; |
38 | 0 | } |
39 | |
|
40 | 0 | public RegistryConfigurations(List<SoapServiceConfiguration> soapServiceConfigurations) { |
41 | 0 | this.soapServiceConfigurations = soapServiceConfigurations == null ? new ArrayList<SoapServiceConfiguration>() : soapServiceConfigurations; |
42 | 0 | } |
43 | |
|
44 | |
public List<SoapServiceConfiguration> getSoapServiceConfigurations() { |
45 | 0 | return soapServiceConfigurations; |
46 | |
} |
47 | |
|
48 | |
|
49 | |
|
50 | |
|
51 | 0 | static class Constants { |
52 | |
final static String ROOT_ELEMENT_NAME = "registryConfigurations"; |
53 | |
final static String TYPE_NAME = "RegistryConfigurationsType"; |
54 | |
} |
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | 0 | static class Elements { |
61 | |
protected final static String SOAP_SERVICE_CONFIGURATIONS = "soapServiceConfigurations"; |
62 | |
protected final static String SOAP_SERVICE_CONFIGURATION = "soapServiceConfiguration"; |
63 | |
} |
64 | |
|
65 | |
} |