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.response;
17  
18  import java.util.Vector;
19  
20  import org.apache.juddi.datatype.RegistryObject;
21  
22  /***
23   * @author Steve Viens (sviens@apache.org)
24   */
25  public class AssertionStatusReport implements RegistryObject
26  {
27    // Assertion Status Report Completion Codes
28    public static final String STATUS_COMPLETE = "status:complete";
29    public static final String STATUS_TO_KEY_INCOMPLETE = "status:toKey_incomplete";
30    public static final String STATUS_FROM_KEY_INCOMPLETE = "status:fromKey_incomplete";
31  
32    String generic;
33    String operator;
34    Vector itemVector;
35  
36    /***
37     * default constructor
38     */
39    public AssertionStatusReport()
40    {
41    }
42  
43    /***
44     *
45     * @param genericValue
46     */
47    public void setGeneric(String genericValue)
48    {
49      this.generic = genericValue;
50    }
51  
52    /***
53     *
54     * @return String UDDI response generic value.
55     */
56    public String getGeneric()
57    {
58      return this.generic;
59    }
60  
61    /***
62     *
63     */
64    public void setOperator(String operator)
65    {
66      this.operator = operator;
67    }
68  
69    /***
70     *
71     */
72    public String getOperator()
73    {
74       return this.operator;
75    }
76  
77    /***
78     *
79     */
80    public Vector getAssertionStatusItemVector()
81    {
82      return this.itemVector;
83    }
84  
85    /***
86     *
87     */
88    public void addAssertionStatusItem(AssertionStatusItem item)
89    {
90      if (this.itemVector == null)
91        this.itemVector = new Vector();
92      this.itemVector.add(item);
93    }
94  
95    /***
96     *
97     */
98    public void setAssertionStatusItemVector(Vector items)
99    {
100     this.itemVector = items;
101   }
102 }