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.XmlAttribute;
023: import javax.xml.bind.annotation.XmlRootElement;
024: import javax.xml.bind.annotation.XmlType;
025:
026: /**
027: * <p>Java class for anonymous complex type.
028: *
029: * <p>The following schema fragment specifies the expected content contained within this class.
030: *
031: * <pre>
032: * <complexType>
033: * <complexContent>
034: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
035: * <sequence>
036: * <element ref="{http://jboss.org}attribute" maxOccurs="unbounded" minOccurs="0"/>
037: * </sequence>
038: * <attribute name="class" type="{http://www.w3.org/2001/XMLSchema}string" />
039: * </restriction>
040: * </complexContent>
041: * </complexType>
042: * </pre>
043: *
044: *
045: */
046: @XmlAccessorType(XmlAccessType.FIELD)
047: @XmlType(name="",propOrder={"attribute"})
048: @XmlRootElement(name="entity-command")
049: public class EntityCommand {
050:
051: protected List<Attribute> attribute;
052: @XmlAttribute(name="class")
053: protected String clazz;
054:
055: /**
056: * Gets the value of the attribute property.
057: *
058: * <p>
059: * This accessor method returns a reference to the live list,
060: * not a snapshot. Therefore any modification you make to the
061: * returned list will be present inside the JAXB object.
062: * This is why there is not a <CODE>set</CODE> method for the attribute property.
063: *
064: * <p>
065: * For example, to add a new item, do as follows:
066: * <pre>
067: * getAttribute().add(newItem);
068: * </pre>
069: *
070: *
071: * <p>
072: * Objects of the following type(s) are allowed in the list
073: * {@link Attribute }
074: *
075: *
076: */
077: public List<Attribute> getAttribute() {
078: if (attribute == null) {
079: attribute = new ArrayList<Attribute>();
080: }
081: return this .attribute;
082: }
083:
084: /**
085: * Gets the value of the clazz property.
086: *
087: * @return
088: * possible object is
089: * {@link String }
090: *
091: */
092: public String getClazz() {
093: return clazz;
094: }
095:
096: /**
097: * Sets the value of the clazz property.
098: *
099: * @param value
100: * allowed object is
101: * {@link String }
102: *
103: */
104: public void setClazz(String value) {
105: this.clazz = value;
106: }
107:
108: }
|