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