1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the NOTICE file distributed with 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 7 * the License. You may obtain a copy of the License at 8 * 9 * 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 */ 17 18 package org.apache.geronimo.jee.web; 19 20 import java.io.Serializable; 21 import java.util.ArrayList; 22 import java.util.List; 23 24 import javax.xml.bind.annotation.XmlAccessType; 25 import javax.xml.bind.annotation.XmlAccessorType; 26 import javax.xml.bind.annotation.XmlAnyElement; 27 import javax.xml.bind.annotation.XmlType; 28 29 import org.w3c.dom.Element; 30 31 32 /** 33 * <p>Java class for container-configType complex type. 34 * 35 * <p>The following schema fragment specifies the expected content contained within this class. 36 * 37 * <pre> 38 * <complexType name="container-configType"> 39 * <complexContent> 40 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 41 * <sequence> 42 * <any/> 43 * </sequence> 44 * </restriction> 45 * </complexContent> 46 * </complexType> 47 * </pre> 48 * 49 * @version $Rev: 642503 $ $Date: 2008-03-29 12:35:01 +0800 (Sat, 29 Mar 2008) $ 50 */ 51 @XmlAccessorType(XmlAccessType.FIELD) 52 @XmlType(name = "container-configType", propOrder = { 53 "any" 54 }) 55 public class ContainerConfig 56 implements Serializable 57 { 58 59 private final static long serialVersionUID = 12343L; 60 @XmlAnyElement(lax = true) 61 protected List<Object> any; 62 63 /** 64 * Gets the value of the any property. 65 * 66 * <p> 67 * This accessor method returns a reference to the live list, 68 * not a snapshot. Therefore any modification you make to the 69 * returned list will be present inside the JAXB object. 70 * This is why there is not a <CODE>set</CODE> method for the any property. 71 * 72 * <p> 73 * For example, to add a new item, do as follows: 74 * <pre> 75 * getAny().add(newItem); 76 * </pre> 77 * 78 * 79 * <p> 80 * Objects of the following type(s) are allowed in the list 81 * {@link Object } 82 * {@link Element } 83 * 84 * 85 */ 86 public List<Object> getAny() { 87 if (any == null) { 88 any = new ArrayList<Object>(); 89 } 90 return this.any; 91 } 92 93 }