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.math.BigInteger;
019: import javax.xml.bind.annotation.XmlAccessType;
020: import javax.xml.bind.annotation.XmlAccessorType;
021: import javax.xml.bind.annotation.XmlAttribute;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlID;
024: import javax.xml.bind.annotation.XmlType;
025: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
026: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
027:
028: /**
029: * <p>Java class for logging complex type.
030: *
031: * <p>The following schema fragment specifies the expected content contained within this class.
032: *
033: * <pre>
034: * <complexType name="logging">
035: * <complexContent>
036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037: * <sequence>
038: * <element name="log-filename" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
039: * <element name="logging-enabled" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
040: * <element name="rotation-type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
041: * <element name="number-of-files-limited" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
042: * <element name="file-count" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
043: * <element name="file-size-limit" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
044: * <element name="rotate-log-on-startup" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
045: * <element name="log-file-rotation-dir" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
046: * <element name="rotation-time" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
047: * <element name="file-time-span" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
048: * </sequence>
049: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
050: * </restriction>
051: * </complexContent>
052: * </complexType>
053: * </pre>
054: *
055: *
056: */
057: @XmlAccessorType(XmlAccessType.FIELD)
058: @XmlType(name="logging",propOrder={"logFilename","loggingEnabled","rotationType","numberOfFilesLimited","fileCount","fileSizeLimit","rotateLogOnStartup","logFileRotationDir","rotationTime","fileTimeSpan"})
059: public class Logging {
060:
061: @XmlElement(name="log-filename")
062: protected String logFilename;
063: @XmlElement(name="logging-enabled")
064: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
065: protected Boolean loggingEnabled;
066: @XmlElement(name="rotation-type")
067: protected String rotationType;
068: @XmlElement(name="number-of-files-limited")
069: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
070: protected Boolean numberOfFilesLimited;
071: @XmlElement(name="file-count")
072: protected BigInteger fileCount;
073: @XmlElement(name="file-size-limit")
074: protected BigInteger fileSizeLimit;
075: @XmlElement(name="rotate-log-on-startup")
076: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
077: protected Boolean rotateLogOnStartup;
078: @XmlElement(name="log-file-rotation-dir")
079: protected String logFileRotationDir;
080: @XmlElement(name="rotation-time")
081: protected String rotationTime;
082: @XmlElement(name="file-time-span")
083: protected BigInteger fileTimeSpan;
084: @XmlAttribute
085: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
086: @XmlID
087: protected String id;
088:
089: /**
090: * Gets the value of the logFilename property.
091: *
092: * @return
093: * possible object is
094: * {@link String }
095: *
096: */
097: public String getLogFilename() {
098: return logFilename;
099: }
100:
101: /**
102: * Sets the value of the logFilename property.
103: *
104: * @param value
105: * allowed object is
106: * {@link String }
107: *
108: */
109: public void setLogFilename(String value) {
110: this .logFilename = value;
111: }
112:
113: /**
114: * Gets the value of the loggingEnabled property.
115: *
116: * @return
117: * possible object is
118: * {@link Boolean }
119: *
120: */
121: public Boolean getLoggingEnabled() {
122: return loggingEnabled;
123: }
124:
125: /**
126: * Sets the value of the loggingEnabled property.
127: *
128: * @param value
129: * allowed object is
130: * {@link Boolean }
131: *
132: */
133: public void setLoggingEnabled(Boolean value) {
134: this .loggingEnabled = value;
135: }
136:
137: /**
138: * Gets the value of the rotationType property.
139: *
140: * @return
141: * possible object is
142: * {@link String }
143: *
144: */
145: public String getRotationType() {
146: return rotationType;
147: }
148:
149: /**
150: * Sets the value of the rotationType property.
151: *
152: * @param value
153: * allowed object is
154: * {@link String }
155: *
156: */
157: public void setRotationType(String value) {
158: this .rotationType = value;
159: }
160:
161: /**
162: * Gets the value of the numberOfFilesLimited property.
163: *
164: * @return
165: * possible object is
166: * {@link Boolean }
167: *
168: */
169: public Boolean getNumberOfFilesLimited() {
170: return numberOfFilesLimited;
171: }
172:
173: /**
174: * Sets the value of the numberOfFilesLimited property.
175: *
176: * @param value
177: * allowed object is
178: * {@link Boolean }
179: *
180: */
181: public void setNumberOfFilesLimited(Boolean value) {
182: this .numberOfFilesLimited = value;
183: }
184:
185: /**
186: * Gets the value of the fileCount property.
187: *
188: * @return
189: * possible object is
190: * {@link BigInteger }
191: *
192: */
193: public BigInteger getFileCount() {
194: return fileCount;
195: }
196:
197: /**
198: * Sets the value of the fileCount property.
199: *
200: * @param value
201: * allowed object is
202: * {@link BigInteger }
203: *
204: */
205: public void setFileCount(BigInteger value) {
206: this .fileCount = value;
207: }
208:
209: /**
210: * Gets the value of the fileSizeLimit property.
211: *
212: * @return
213: * possible object is
214: * {@link BigInteger }
215: *
216: */
217: public BigInteger getFileSizeLimit() {
218: return fileSizeLimit;
219: }
220:
221: /**
222: * Sets the value of the fileSizeLimit property.
223: *
224: * @param value
225: * allowed object is
226: * {@link BigInteger }
227: *
228: */
229: public void setFileSizeLimit(BigInteger value) {
230: this .fileSizeLimit = value;
231: }
232:
233: /**
234: * Gets the value of the rotateLogOnStartup property.
235: *
236: * @return
237: * possible object is
238: * {@link Boolean }
239: *
240: */
241: public Boolean getRotateLogOnStartup() {
242: return rotateLogOnStartup;
243: }
244:
245: /**
246: * Sets the value of the rotateLogOnStartup property.
247: *
248: * @param value
249: * allowed object is
250: * {@link Boolean }
251: *
252: */
253: public void setRotateLogOnStartup(Boolean value) {
254: this .rotateLogOnStartup = value;
255: }
256:
257: /**
258: * Gets the value of the logFileRotationDir property.
259: *
260: * @return
261: * possible object is
262: * {@link String }
263: *
264: */
265: public String getLogFileRotationDir() {
266: return logFileRotationDir;
267: }
268:
269: /**
270: * Sets the value of the logFileRotationDir property.
271: *
272: * @param value
273: * allowed object is
274: * {@link String }
275: *
276: */
277: public void setLogFileRotationDir(String value) {
278: this .logFileRotationDir = value;
279: }
280:
281: /**
282: * Gets the value of the rotationTime property.
283: *
284: * @return
285: * possible object is
286: * {@link String }
287: *
288: */
289: public String getRotationTime() {
290: return rotationTime;
291: }
292:
293: /**
294: * Sets the value of the rotationTime property.
295: *
296: * @param value
297: * allowed object is
298: * {@link String }
299: *
300: */
301: public void setRotationTime(String value) {
302: this .rotationTime = value;
303: }
304:
305: /**
306: * Gets the value of the fileTimeSpan property.
307: *
308: * @return
309: * possible object is
310: * {@link BigInteger }
311: *
312: */
313: public BigInteger getFileTimeSpan() {
314: return fileTimeSpan;
315: }
316:
317: /**
318: * Sets the value of the fileTimeSpan property.
319: *
320: * @param value
321: * allowed object is
322: * {@link BigInteger }
323: *
324: */
325: public void setFileTimeSpan(BigInteger value) {
326: this .fileTimeSpan = value;
327: }
328:
329: /**
330: * Gets the value of the id property.
331: *
332: * @return
333: * possible object is
334: * {@link String }
335: *
336: */
337: public String getId() {
338: return id;
339: }
340:
341: /**
342: * Sets the value of the id property.
343: *
344: * @param value
345: * allowed object is
346: * {@link String }
347: *
348: */
349: public void setId(String value) {
350: this.id = value;
351: }
352:
353: }
|