01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.openejb.jee;
17:
18: import javax.xml.bind.annotation.XmlAccessType;
19: import javax.xml.bind.annotation.XmlAccessorType;
20: import javax.xml.bind.annotation.XmlAttribute;
21: import javax.xml.bind.annotation.XmlElement;
22: import javax.xml.bind.annotation.XmlID;
23: import javax.xml.bind.annotation.XmlType;
24: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
25: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
26: import java.util.ArrayList;
27: import java.util.List;
28:
29: /**
30: * The required-config-propertyType contains a declaration
31: * of a single configuration property used for specifying a
32: * required configuration property name. It is used
33: * by required-config-property elements.
34: * <p/>
35: * Example:
36: * <p/>
37: * <required-config-property>Destination</required-config-property>
38: */
39: @XmlAccessorType(XmlAccessType.FIELD)
40: @XmlType(name="required-config-propertyType",propOrder={"description","configPropertyName"})
41: public class RequiredConfigProperty {
42:
43: protected List<Text> description;
44: @XmlElement(name="config-property-name",required=true)
45: protected String configPropertyName;
46: @XmlAttribute
47: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
48: @XmlID
49: protected String id;
50:
51: public List<Text> getDescription() {
52: if (description == null) {
53: description = new ArrayList<Text>();
54: }
55: return this .description;
56: }
57:
58: public String getConfigPropertyName() {
59: return configPropertyName;
60: }
61:
62: public void setConfigPropertyName(String value) {
63: this .configPropertyName = value;
64: }
65:
66: public String getId() {
67: return id;
68: }
69:
70: public void setId(String value) {
71: this.id = value;
72: }
73:
74: }
|