View Javadoc

1   /*
2    * Copyright 2001-2004 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  package org.apache.juddi.datatype;
17  
18  
19  /***
20   * The address structure is a simple list of AddressLine elements within
21   * the address container. AddressLine elements contain string data with a
22   * suggested line length of max. 40 chars.
23   *
24   * @author Steve Viens (sviens@apache.org)
25   */
26  public class AddressLine implements RegistryObject
27  {
28    String lineValue;
29    String keyName;
30    String keyValue;
31  
32    /***
33     * Constructs a new initialized Addressline instance.
34     */
35    public AddressLine()
36    {
37    }
38  
39    /***
40     * Constructs a new addressline with the given data.
41     *
42     * @param line The data of the addressline.
43     */
44    public AddressLine(String line)
45    {
46      this.lineValue = line;
47    }
48  
49    /***
50     * Constructs a new addressline with the given data.
51     *
52     * @param line The data of the addressline.
53     * @param name ...
54     * @param value ...
55     */
56    public AddressLine(String line,String name,String value)
57    {
58      this.lineValue = line;
59      this.keyName = name;
60      this.keyValue = value;
61    }
62  
63    /***
64     * Sets the data of this addressline to the given data.
65     *
66     * @param line The new data of this addressline.
67     */
68    public void setLineValue(String line)
69    {
70      this.lineValue = line;
71    }
72  
73    /***
74     * Returns the data of the addressline.
75     *
76     * @return The data of the addressline.
77     */
78    public String getLineValue()
79    {
80      return this.lineValue;
81    }
82  
83    /***
84     * Sets ...
85     *
86     * @param name
87     */
88    public void setKeyName(String name)
89    {
90      this.keyName = name;
91    }
92  
93    /***
94     * Returns ...
95     *
96     * @return the key name
97     */
98    public String getKeyName()
99    {
100     return this.keyName;
101   }
102 
103   /***
104    * Sets ...
105    *
106    * @param value
107    */
108   public void setKeyValue(String value)
109   {
110     this.keyValue = value;
111   }
112 
113   /***
114    * Returns ...
115    *
116    * @return the key value
117    */
118   public String getKeyValue()
119   {
120     return this.keyValue;
121   }
122 }