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.XmlElement; 25 import javax.xml.bind.annotation.XmlType; 26 27 28 /** 29 * <p>Java class for tModelDetail complex type. 30 * 31 * <p>The following schema fragment specifies the expected content contained within this class. 32 * 33 * <pre> 34 * <complexType name="tModelDetail"> 35 * <complexContent> 36 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 37 * <sequence> 38 * <element ref="{urn:uddi-org:api_v2}tModel" maxOccurs="unbounded"/> 39 * </sequence> 40 * <attribute name="generic" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 41 * <attribute name="operator" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 42 * <attribute name="truncated" type="{urn:uddi-org:api_v2}truncated" /> 43 * </restriction> 44 * </complexContent> 45 * </complexType> 46 * </pre> 47 * 48 * 49 */ 50 @XmlAccessorType(XmlAccessType.FIELD) 51 @XmlType(name = "tModelDetail", propOrder = { 52 "tModel" 53 }) 54 public class TModelDetail { 55 56 @XmlElement(required = true) 57 protected List<TModel> tModel; 58 @XmlAttribute(name = "generic", required = true) 59 protected String generic; 60 @XmlAttribute(name = "operator", required = true) 61 protected String operator; 62 @XmlAttribute(name = "truncated") 63 protected Truncated truncated; 64 65 /** 66 * Gets the value of the tModel property. 67 * 68 * <p> 69 * This accessor method returns a reference to the live list, 70 * not a snapshot. Therefore any modification you make to the 71 * returned list will be present inside the JAXB object. 72 * This is why there is not a <CODE>set</CODE> method for the tModel property. 73 * 74 * <p> 75 * For example, to add a new item, do as follows: 76 * <pre> 77 * getTModel().add(newItem); 78 * </pre> 79 * 80 * 81 * <p> 82 * Objects of the following type(s) are allowed in the list 83 * {@link TModel } 84 * 85 * 86 */ 87 public List<TModel> getTModel() { 88 if (tModel == null) { 89 tModel = new ArrayList<TModel>(); 90 } 91 return this.tModel; 92 } 93 94 /** 95 * Gets the value of the generic property. 96 * 97 * @return 98 * possible object is 99 * {@link String } 100 * 101 */ 102 public String getGeneric() { 103 return generic; 104 } 105 106 /** 107 * Sets the value of the generic property. 108 * 109 * @param value 110 * allowed object is 111 * {@link String } 112 * 113 */ 114 public void setGeneric(String value) { 115 this.generic = value; 116 } 117 118 /** 119 * Gets the value of the operator property. 120 * 121 * @return 122 * possible object is 123 * {@link String } 124 * 125 */ 126 public String getOperator() { 127 return operator; 128 } 129 130 /** 131 * Sets the value of the operator property. 132 * 133 * @param value 134 * allowed object is 135 * {@link String } 136 * 137 */ 138 public void setOperator(String value) { 139 this.operator = value; 140 } 141 142 /** 143 * Gets the value of the truncated property. 144 * 145 * @return 146 * possible object is 147 * {@link Truncated } 148 * 149 */ 150 public Truncated getTruncated() { 151 return truncated; 152 } 153 154 /** 155 * Sets the value of the truncated property. 156 * 157 * @param value 158 * allowed object is 159 * {@link Truncated } 160 * 161 */ 162 public void setTruncated(Truncated value) { 163 this.truncated = value; 164 } 165 166 }