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 package org.uddi.api_v2; 18 19 import java.util.ArrayList; 20 import java.util.List; 21 import javax.xml.bind.annotation.XmlAccessType; 22 import javax.xml.bind.annotation.XmlAccessorType; 23 import javax.xml.bind.annotation.XmlAttribute; 24 import javax.xml.bind.annotation.XmlType; 25 26 27 /** 28 * <p>Java class for tModelInstanceInfo complex type. 29 * 30 * <p>The following schema fragment specifies the expected content contained within this class. 31 * 32 * <pre> 33 * <complexType name="tModelInstanceInfo"> 34 * <complexContent> 35 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 36 * <sequence> 37 * <element ref="{urn:uddi-org:api_v2}description" maxOccurs="unbounded" minOccurs="0"/> 38 * <element ref="{urn:uddi-org:api_v2}instanceDetails" minOccurs="0"/> 39 * </sequence> 40 * <attribute name="tModelKey" use="required" type="{urn:uddi-org:api_v2}tModelKey" /> 41 * </restriction> 42 * </complexContent> 43 * </complexType> 44 * </pre> 45 * 46 * 47 */ 48 @XmlAccessorType(XmlAccessType.FIELD) 49 @XmlType(name = "tModelInstanceInfo", propOrder = { 50 "description", 51 "instanceDetails" 52 }) 53 public class TModelInstanceInfo { 54 55 protected List<Description> description; 56 protected InstanceDetails instanceDetails; 57 @XmlAttribute(name = "tModelKey", required = true) 58 protected String tModelKey; 59 60 /** 61 * Gets the value of the description property. 62 * 63 * <p> 64 * This accessor method returns a reference to the live list, 65 * not a snapshot. Therefore any modification you make to the 66 * returned list will be present inside the JAXB object. 67 * This is why there is not a <CODE>set</CODE> method for the description property. 68 * 69 * <p> 70 * For example, to add a new item, do as follows: 71 * <pre> 72 * getDescription().add(newItem); 73 * </pre> 74 * 75 * 76 * <p> 77 * Objects of the following type(s) are allowed in the list 78 * {@link Description } 79 * 80 * 81 */ 82 public List<Description> getDescription() { 83 if (description == null) { 84 description = new ArrayList<Description>(); 85 } 86 return this.description; 87 } 88 89 /** 90 * Gets the value of the instanceDetails property. 91 * 92 * @return 93 * possible object is 94 * {@link InstanceDetails } 95 * 96 */ 97 public InstanceDetails getInstanceDetails() { 98 return instanceDetails; 99 } 100 101 /** 102 * Sets the value of the instanceDetails property. 103 * 104 * @param value 105 * allowed object is 106 * {@link InstanceDetails } 107 * 108 */ 109 public void setInstanceDetails(InstanceDetails value) { 110 this.instanceDetails = value; 111 } 112 113 /** 114 * Gets the value of the tModelKey property. 115 * 116 * @return 117 * possible object is 118 * {@link String } 119 * 120 */ 121 public String getTModelKey() { 122 return tModelKey; 123 } 124 125 /** 126 * Sets the value of the tModelKey property. 127 * 128 * @param value 129 * allowed object is 130 * {@link String } 131 * 132 */ 133 public void setTModelKey(String value) { 134 this.tModelKey = value; 135 } 136 137 }