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.JAXBElement;
021: import javax.xml.bind.annotation.XmlAccessType;
022: import javax.xml.bind.annotation.XmlAccessorType;
023: import javax.xml.bind.annotation.XmlAttribute;
024: import javax.xml.bind.annotation.XmlElementRef;
025: import javax.xml.bind.annotation.XmlElementRefs;
026: import javax.xml.bind.annotation.XmlID;
027: import javax.xml.bind.annotation.XmlType;
028: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
029: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
030:
031: /**
032: * <p>Java class for weblogic-rdbms-relation complex type.
033: *
034: * <p>The following schema fragment specifies the expected content contained within this class.
035: *
036: * <pre>
037: * <complexType name="weblogic-rdbms-relation">
038: * <complexContent>
039: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
040: * <sequence>
041: * <element name="relation-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
042: * <element name="table-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
043: * <element name="weblogic-relationship-role" type="{http://www.bea.com/ns/weblogic/90}weblogic-relationship-role"/>
044: * <element name="weblogic-relationship-role" type="{http://www.bea.com/ns/weblogic/90}weblogic-relationship-role" minOccurs="0"/>
045: * </sequence>
046: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
047: * </restriction>
048: * </complexContent>
049: * </complexType>
050: * </pre>
051: *
052: *
053: */
054: @XmlAccessorType(XmlAccessType.FIELD)
055: @XmlType(name="weblogic-rdbms-relation",propOrder={"content"})
056: public class WeblogicRdbmsRelation {
057:
058: @XmlElementRefs({@XmlElementRef(name="table-name",namespace="http://www.bea.com/ns/weblogic/90",type=JAXBElement.class),@XmlElementRef(name="weblogic-relationship-role",namespace="http://www.bea.com/ns/weblogic/90",type=JAXBElement.class),@XmlElementRef(name="relation-name",namespace="http://www.bea.com/ns/weblogic/90",type=JAXBElement.class)})
059: protected List<JAXBElement<?>> content;
060: @XmlAttribute
061: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
062: @XmlID
063: protected String id;
064:
065: /**
066: * Gets the rest of the content model.
067: *
068: * <p>
069: * You are getting this "catch-all" property because of the following reason:
070: * The field name "WeblogicRelationshipRole" is used by two different parts of a schema. See:
071: * line 761 of file:/Users/dblevins/work/openejb3/container/openejb-jee/src/main/resources/META-INF/schema/weblogic.xsd
072: * line 760 of file:/Users/dblevins/work/openejb3/container/openejb-jee/src/main/resources/META-INF/schema/weblogic.xsd
073: * <p>
074: * To get rid of this property, apply a property customization to one
075: * of both of the following declarations to change their names:
076: * Gets the value of the content property.
077: *
078: * <p>
079: * This accessor method returns a reference to the live list,
080: * not a snapshot. Therefore any modification you make to the
081: * returned list will be present inside the JAXB object.
082: * This is why there is not a <CODE>set</CODE> method for the content property.
083: *
084: * <p>
085: * For example, to add a new item, do as follows:
086: * <pre>
087: * getContent().add(newItem);
088: * </pre>
089: *
090: *
091: * <p>
092: * Objects of the following type(s) are allowed in the list
093: * {@link JAXBElement }{@code <}{@link WeblogicRelationshipRole }{@code >}
094: * {@link JAXBElement }{@code <}{@link String }{@code >}
095: * {@link JAXBElement }{@code <}{@link String }{@code >}
096: *
097: *
098: */
099: public List<JAXBElement<?>> getContent() {
100: if (content == null) {
101: content = new ArrayList<JAXBElement<?>>();
102: }
103: return this .content;
104: }
105:
106: /**
107: * Gets the value of the id property.
108: *
109: * @return
110: * possible object is
111: * {@link String }
112: *
113: */
114: public String getId() {
115: return id;
116: }
117:
118: /**
119: * Sets the value of the id property.
120: *
121: * @param value
122: * allowed object is
123: * {@link String }
124: *
125: */
126: public void setId(String value) {
127: this.id = value;
128: }
129:
130: }
|