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.jba.cmp;
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.XmlElementRef;
023: import javax.xml.bind.annotation.XmlElementRefs;
024: import javax.xml.bind.annotation.XmlRootElement;
025: import javax.xml.bind.annotation.XmlType;
026:
027: /**
028: * <p>Java class for anonymous complex type.
029: *
030: * <p>The following schema fragment specifies the expected content contained within this class.
031: *
032: * <pre>
033: * <complexType>
034: * <complexContent>
035: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
036: * <sequence>
037: * <element ref="{http://jboss.org}ejb-relation-name"/>
038: * <element ref="{http://jboss.org}read-only" minOccurs="0"/>
039: * <element ref="{http://jboss.org}read-time-out" minOccurs="0"/>
040: * <choice minOccurs="0">
041: * <element ref="{http://jboss.org}foreign-key-mapping"/>
042: * <element ref="{http://jboss.org}relation-table-mapping"/>
043: * </choice>
044: * <sequence minOccurs="0">
045: * <element ref="{http://jboss.org}ejb-relationship-role"/>
046: * <element ref="{http://jboss.org}ejb-relationship-role"/>
047: * </sequence>
048: * </sequence>
049: * </restriction>
050: * </complexContent>
051: * </complexType>
052: * </pre>
053: *
054: *
055: */
056: @XmlAccessorType(XmlAccessType.FIELD)
057: @XmlType(name="",propOrder={"content"})
058: @XmlRootElement(name="ejb-relation")
059: public class EjbRelation {
060:
061: @XmlElementRefs({@XmlElementRef(name="relation-table-mapping",namespace="http://jboss.org",type=RelationTableMapping.class),@XmlElementRef(name="ejb-relationship-role",namespace="http://jboss.org",type=EjbRelationshipRole.class),@XmlElementRef(name="ejb-relation-name",namespace="http://jboss.org",type=EjbRelationName.class),@XmlElementRef(name="foreign-key-mapping",namespace="http://jboss.org",type=ForeignKeyMapping.class),@XmlElementRef(name="read-only",namespace="http://jboss.org",type=ReadOnly.class),@XmlElementRef(name="read-time-out",namespace="http://jboss.org",type=ReadTimeOut.class)})
062: protected List<Object> content;
063:
064: /**
065: * Gets the rest of the content model.
066: *
067: * <p>
068: * You are getting this "catch-all" property because of the following reason:
069: * The field name "EjbRelationshipRole" is used by two different parts of a schema. See:
070: * line 476 of file:/Users/dblevins/work/openejb3/jbosscmp-jdbc_4_0.xsd
071: * line 475 of file:/Users/dblevins/work/openejb3/jbosscmp-jdbc_4_0.xsd
072: * <p>
073: * To get rid of this property, apply a property customization to one
074: * of both of the following declarations to change their names:
075: * Gets the value of the content property.
076: *
077: * <p>
078: * This accessor method returns a reference to the live list,
079: * not a snapshot. Therefore any modification you make to the
080: * returned list will be present inside the JAXB object.
081: * This is why there is not a <CODE>set</CODE> method for the content property.
082: *
083: * <p>
084: * For example, to add a new item, do as follows:
085: * <pre>
086: * getContent().add(newItem);
087: * </pre>
088: *
089: *
090: * <p>
091: * Objects of the following type(s) are allowed in the list
092: * {@link EjbRelationshipRole }
093: * {@link EjbRelationName }
094: * {@link RelationTableMapping }
095: * {@link ForeignKeyMapping }
096: * {@link ReadOnly }
097: * {@link ReadTimeOut }
098: *
099: *
100: */
101: public List<Object> getContent() {
102: if (content == null) {
103: content = new ArrayList<Object>();
104: }
105: return this.content;
106: }
107:
108: }
|