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