1 /* 2 * Copyright 2001-2008 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 18 19 package org.uddi.api_v3; 20 21 import java.io.Serializable; 22 import java.util.ArrayList; 23 import java.util.List; 24 import javax.xml.bind.annotation.XmlAccessType; 25 import javax.xml.bind.annotation.XmlAccessorType; 26 import javax.xml.bind.annotation.XmlAttribute; 27 import javax.xml.bind.annotation.XmlElement; 28 import javax.xml.bind.annotation.XmlTransient; 29 import javax.xml.bind.annotation.XmlType; 30 31 32 /** 33 * <p>Java class for tModelInfo complex type. 34 * 35 * <p>The following schema fragment specifies the expected content contained within this class. 36 * 37 * <pre> 38 * <complexType name="tModelInfo"> 39 * <complexContent> 40 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 41 * <sequence> 42 * <element ref="{urn:uddi-org:api_v3}name"/> 43 * <element ref="{urn:uddi-org:api_v3}description" maxOccurs="unbounded" minOccurs="0"/> 44 * </sequence> 45 * <attribute name="tModelKey" use="required" type="{urn:uddi-org:api_v3}tModelKey" /> 46 * </restriction> 47 * </complexContent> 48 * </complexType> 49 * </pre> 50 * 51 * 52 */ 53 @XmlAccessorType(XmlAccessType.FIELD) 54 @XmlType(name = "tModelInfo", propOrder = { 55 "name", 56 "description" 57 }) 58 public class TModelInfo implements Serializable{ 59 @XmlTransient 60 private static final long serialVersionUID = -9208130813266936633L; 61 @XmlElement(required = true) 62 protected Name name; 63 protected List<Description> description; 64 @XmlAttribute(required = true) 65 protected String tModelKey; 66 67 /** 68 * Gets the value of the name property. 69 * 70 * @return 71 * possible object is 72 * {@link Name } 73 * 74 */ 75 public Name getName() { 76 return name; 77 } 78 79 /** 80 * Sets the value of the name property. 81 * 82 * @param value 83 * allowed object is 84 * {@link Name } 85 * 86 */ 87 public void setName(Name value) { 88 this.name = value; 89 } 90 91 /** 92 * Gets the value of the description property. 93 * 94 * <p> 95 * This accessor method returns a reference to the live list, 96 * not a snapshot. Therefore any modification you make to the 97 * returned list will be present inside the JAXB object. 98 * This is why there is not a <CODE>set</CODE> method for the description property. 99 * 100 * <p> 101 * For example, to add a new item, do as follows: 102 * <pre> 103 * getDescription().add(newItem); 104 * </pre> 105 * 106 * 107 * <p> 108 * Objects of the following type(s) are allowed in the list 109 * {@link Description } 110 * 111 * 112 */ 113 public List<Description> getDescription() { 114 if (description == null) { 115 description = new ArrayList<Description>(); 116 } 117 return this.description; 118 } 119 120 /** 121 * Gets the value of the tModelKey property. 122 * 123 * @return 124 * possible object is 125 * {@link String } 126 * 127 */ 128 public String getTModelKey() { 129 return tModelKey; 130 } 131 132 /** 133 * Sets the value of the tModelKey property. 134 * 135 * @param value 136 * allowed object is 137 * {@link String } 138 * 139 */ 140 public void setTModelKey(String value) { 141 this.tModelKey = value; 142 } 143 144 }