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 javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlAttribute;
021: import javax.xml.bind.annotation.XmlRootElement;
022: import javax.xml.bind.annotation.XmlType;
023: import javax.xml.bind.annotation.XmlValue;
024:
025: /**
026: * <p>Java class for anonymous complex type.
027: *
028: * <p>The following schema fragment specifies the expected content contained within this class.
029: *
030: * <pre>
031: * <complexType>
032: * <complexContent>
033: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
034: * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
035: * </restriction>
036: * </complexContent>
037: * </complexType>
038: * </pre>
039: *
040: *
041: */
042: @XmlAccessorType(XmlAccessType.FIELD)
043: @XmlType(name="",propOrder={"content"})
044: @XmlRootElement(name="attribute")
045: public class Attribute {
046:
047: @XmlValue
048: protected String content;
049: @XmlAttribute(required=true)
050: protected String name;
051:
052: /**
053: * Gets the value of the content property.
054: *
055: * @return
056: * possible object is
057: * {@link String }
058: *
059: */
060: public String getContent() {
061: return content;
062: }
063:
064: /**
065: * Sets the value of the content property.
066: *
067: * @param value
068: * allowed object is
069: * {@link String }
070: *
071: */
072: public void setContent(String value) {
073: this .content = value;
074: }
075:
076: /**
077: * Gets the value of the name property.
078: *
079: * @return
080: * possible object is
081: * {@link String }
082: *
083: */
084: public String getName() {
085: return name;
086: }
087:
088: /**
089: * Sets the value of the name property.
090: *
091: * @param value
092: * allowed object is
093: * {@link String }
094: *
095: */
096: public void setName(String value) {
097: this.name = value;
098: }
099:
100: }
|