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 23 import javax.xml.bind.annotation.XmlAccessType; 24 import javax.xml.bind.annotation.XmlAccessorType; 25 import javax.xml.bind.annotation.XmlAttribute; 26 import javax.xml.bind.annotation.XmlTransient; 27 import javax.xml.bind.annotation.XmlType; 28 import javax.xml.bind.annotation.XmlValue; 29 30 31 /** 32 * <h4 style="margin-left:0in;text-indent:0in">3.3.2.8 addressLine</h4> 33 34 <p class="MsoBodyText"><b>addressLine</b> contains a part of the actual address 35 in text form.</p> 36 37 <p class="MsoBodyText"><b>Attributes</b></p> 38 39 <table class="MsoNormalTable" style="margin-left:.5in;border-collapse:collapse;border:none" border="1" cellpadding="0" cellspacing="0"> 40 <tbody><tr> 41 <td style="border:solid black 1.0pt;background:#FFFFCA;padding: 42 0in 5.4pt 0in 5.4pt" valign="top"> 43 <p class="MsoNormal"><b>Name </b></p> 44 </td> 45 <td style="border:solid black 1.0pt;border-left:none;background: 46 #FFFFCA;padding:0in 5.4pt 0in 5.4pt" valign="top"> 47 <p class="MsoNormal"><b>Use </b></p> 48 </td> 49 </tr> 50 <tr> 51 <td style="border:solid black 1.0pt;border-top:none;padding:0in 5.4pt 0in 5.4pt" valign="top"> 52 <p class="MsoNormal">keyName </p> 53 </td> 54 <td style="border-top:none;border-left:none;border-bottom:solid black 1.0pt; 55 border-right:solid black 1.0pt;padding:0in 5.4pt 0in 5.4pt" valign="top"> 56 <p class="MsoNormal">optional </p> 57 </td> 58 </tr> 59 <tr> 60 <td style="border:solid black 1.0pt;border-top:none;padding:0in 5.4pt 0in 5.4pt" valign="top"> 61 <p class="MsoNormal">keyValue</p> 62 </td> 63 <td style="border-top:none;border-left:none;border-bottom:solid black 1.0pt; 64 border-right:solid black 1.0pt;padding:0in 5.4pt 0in 5.4pt" valign="top"> 65 <p class="MsoNormal">optional</p> 66 </td> 67 </tr> 68 </tbody></table> 69 70 <p class="MsoBodyText"> </p> 71 72 <p class="MsoBodyText">Each addressLine element MAY be adorned with two optional 73 descriptive attributes, <b>keyName</b> and <b>keyValue</b>. Both attributes 74 MUST be present in each address line if a tModelKey is specified in the address 75 structure. When no tModelKey is provided for the address structure, the keyName 76 and keyValue attributes have no defined meaning.</p> 77 * <p>Java class for addressLine complex type. 78 * 79 * <p>The following schema fragment specifies the expected content contained within this class. 80 * 81 * <pre> 82 * <complexType name="addressLine"> 83 * <simpleContent> 84 * <extension base="<urn:uddi-org:api_v3>validationTypeString80"> 85 * <attribute name="keyName" type="{urn:uddi-org:api_v3}keyName" default="" /> 86 * <attribute name="keyValue" type="{urn:uddi-org:api_v3}keyValue" default="" /> 87 * </extension> 88 * </simpleContent> 89 * </complexType> 90 * </pre> 91 * 92 * 93 */ 94 @XmlAccessorType(XmlAccessType.FIELD) 95 @XmlType(name = "addressLine", propOrder = { 96 "value" 97 }) 98 public class AddressLine implements Serializable{ 99 public AddressLine(){} 100 public AddressLine(String keyname, String keyval,String val){ 101 value=val; 102 keyName=keyname; 103 keyValue=keyval; 104 } 105 @XmlTransient 106 private static final long serialVersionUID = -1219407731100892960L; 107 @XmlValue 108 protected String value; 109 @XmlAttribute 110 protected String keyName; 111 @XmlAttribute 112 protected String keyValue; 113 114 /** 115 * Gets the value of the value property. 116 * 117 * @return 118 * possible object is 119 * {@link String } 120 * 121 */ 122 public String getValue() { 123 return value; 124 } 125 126 /** 127 * Sets the value of the value property. 128 * 129 * @param value 130 * allowed object is 131 * {@link String } 132 * 133 */ 134 public void setValue(String value) { 135 this.value = value; 136 } 137 138 /** 139 * Gets the value of the keyName property. 140 * 141 * @return 142 * possible object is 143 * {@link String } 144 * 145 */ 146 public String getKeyName() { 147 if (keyName == null) { 148 return ""; 149 } else { 150 return keyName; 151 } 152 } 153 154 /** 155 * Sets the value of the keyName property. 156 * 157 * @param value 158 * allowed object is 159 * {@link String } 160 * 161 */ 162 public void setKeyName(String value) { 163 this.keyName = value; 164 } 165 166 /** 167 * Gets the value of the keyValue property. 168 * 169 * @return 170 * possible object is 171 * {@link String } 172 * 173 */ 174 public String getKeyValue() { 175 if (keyValue == null) { 176 return ""; 177 } else { 178 return keyValue; 179 } 180 } 181 182 /** 183 * Sets the value of the keyValue property. 184 * 185 * @param value 186 * allowed object is 187 * {@link String } 188 * 189 */ 190 public void setKeyValue(String value) { 191 this.keyValue = value; 192 } 193 194 }