001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.wls;
017:
018: import java.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.annotation.XmlAccessType;
021: import javax.xml.bind.annotation.XmlAccessorType;
022: import javax.xml.bind.annotation.XmlAttribute;
023: import javax.xml.bind.annotation.XmlElement;
024: import javax.xml.bind.annotation.XmlID;
025: import javax.xml.bind.annotation.XmlType;
026: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
027: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
028:
029: /**
030: * <p>Java class for caching-element complex type.
031: *
032: * <p>The following schema fragment specifies the expected content contained within this class.
033: *
034: * <pre>
035: * <complexType name="caching-element">
036: * <complexContent>
037: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
038: * <sequence>
039: * <element name="cmr-field" type="{http://www.w3.org/2001/XMLSchema}string"/>
040: * <element name="group-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
041: * <element name="caching-element" type="{http://www.bea.com/ns/weblogic/90}caching-element" maxOccurs="unbounded" minOccurs="0"/>
042: * </sequence>
043: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
044: * </restriction>
045: * </complexContent>
046: * </complexType>
047: * </pre>
048: *
049: *
050: */
051: @XmlAccessorType(XmlAccessType.FIELD)
052: @XmlType(name="caching-element",propOrder={"cmrField","groupName","cachingElement"})
053: public class CachingElement {
054:
055: @XmlElement(name="cmr-field",required=true)
056: protected String cmrField;
057: @XmlElement(name="group-name")
058: protected String groupName;
059: @XmlElement(name="caching-element")
060: protected List<CachingElement> cachingElement;
061: @XmlAttribute
062: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
063: @XmlID
064: protected String id;
065:
066: /**
067: * Gets the value of the cmrField property.
068: *
069: * @return
070: * possible object is
071: * {@link String }
072: *
073: */
074: public String getCmrField() {
075: return cmrField;
076: }
077:
078: /**
079: * Sets the value of the cmrField property.
080: *
081: * @param value
082: * allowed object is
083: * {@link String }
084: *
085: */
086: public void setCmrField(String value) {
087: this .cmrField = value;
088: }
089:
090: /**
091: * Gets the value of the groupName property.
092: *
093: * @return
094: * possible object is
095: * {@link String }
096: *
097: */
098: public String getGroupName() {
099: return groupName;
100: }
101:
102: /**
103: * Sets the value of the groupName property.
104: *
105: * @param value
106: * allowed object is
107: * {@link String }
108: *
109: */
110: public void setGroupName(String value) {
111: this .groupName = value;
112: }
113:
114: /**
115: * Gets the value of the cachingElement property.
116: *
117: * <p>
118: * This accessor method returns a reference to the live list,
119: * not a snapshot. Therefore any modification you make to the
120: * returned list will be present inside the JAXB object.
121: * This is why there is not a <CODE>set</CODE> method for the cachingElement property.
122: *
123: * <p>
124: * For example, to add a new item, do as follows:
125: * <pre>
126: * getCachingElement().add(newItem);
127: * </pre>
128: *
129: *
130: * <p>
131: * Objects of the following type(s) are allowed in the list
132: * {@link CachingElement }
133: *
134: *
135: */
136: public List<CachingElement> getCachingElement() {
137: if (cachingElement == null) {
138: cachingElement = new ArrayList<CachingElement>();
139: }
140: return this .cachingElement;
141: }
142:
143: /**
144: * Gets the value of the id property.
145: *
146: * @return
147: * possible object is
148: * {@link String }
149: *
150: */
151: public String getId() {
152: return id;
153: }
154:
155: /**
156: * Sets the value of the id property.
157: *
158: * @param value
159: * allowed object is
160: * {@link String }
161: *
162: */
163: public void setId(String value) {
164: this.id = value;
165: }
166:
167: }
|