Skip to main content
summaryrefslogtreecommitdiffstats
blob: eac7d615441b4f8d4e168f05e720c4a598674f0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*******************************************************************************
 * Copyright (c) 2001, 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.wst.ws.internal.explorer.platform.uddi.datamodel;

import org.eclipse.wst.ws.internal.explorer.platform.datamodel.ListElement;
import org.uddi4j.datatype.assertion.PublisherAssertion;
import org.uddi4j.util.KeyedReference;

public class PublisherAssertionElement {

  // owningBusinessKey_ is the key of the business element that owns this
  // publisherAssertionElement
  private String fromKey_;
  private String toKey_;
  private String owningBusinessKey_;

  // the other business that the containing business is asserted from or to
  private ListElement sp_;
  private int subQueryItemId_;

  // status of this publisherAssertion
  private String status_;
  private KeyedReference keyedReference_;

  public PublisherAssertionElement(String fromKey, String toKey, String owningBusinessKey, ListElement sp, int subQueryItemId, String status, KeyedReference keyedRef) {
    fromKey_ = fromKey;
    toKey_ = toKey;
    owningBusinessKey_ = owningBusinessKey;
    sp_ = sp;
    subQueryItemId_ = subQueryItemId;
    status_ = status;
    keyedReference_ = keyedRef;
  }

  public void setFromKey(String fromKey) {
    fromKey_ = fromKey;
  }

  public String getFromKey() {
    return fromKey_;
  }

  public void setToKey(String toKey) {
    toKey_ = toKey;
  }

  public String getToKey() {
    return toKey_;
  }

  public void setOwningBusinessKey(String key) {
    owningBusinessKey_ = key;
  }

  public String getOwningBusinessKey() {
    return owningBusinessKey_;
  }

  public void setServiceProvider(ListElement sp) {
    sp_ = sp;
  }

  public ListElement getServiceProvider() {
    return sp_;
  }

  public void setSubQueryItemId(int id) {
    subQueryItemId_ = id;
  }

  public int getSubQueryItemId() {
    return subQueryItemId_;
  }

  public void setStatus(String status) {
    status_ = status;
  }

  public String getStatus() {
    return status_;
  }

  public void setKeyedRef(KeyedReference keyedRef) {
    keyedReference_ = keyedRef;
  }

  public KeyedReference getKeyedRef() {
    return keyedReference_;
  }

  public PublisherAssertion getPublisherAssertion() {
    if (fromKey_ == null ||
        toKey_ == null ||
        keyedReference_ == null) {
      return null;
    }

    PublisherAssertion pubAssertion = new PublisherAssertion(fromKey_, toKey_, keyedReference_);
    return pubAssertion;
  }

}

Back to the top