Skip to main content
summaryrefslogtreecommitdiffstats
blob: 33e38a77f5cf338b3a2b7d6be0bd739e58b2194f (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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/*******************************************************************************
 * 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.parser.wsil;

import java.util.ArrayList;
import java.util.List;

public class WebServiceEntity
{
  public static final int TYPE_UNKNOWN = -1;
  public static final int TYPE_HTML = 0;
  public static final int TYPE_WSIL = 1;
  public static final int TYPE_WSDL = 2;
  public static final int TYPE_UDDI_SERVICE = 3;
  public static final int TYPE_DISCO = 4;

  private Object parent_;
  private List children_;
  private int type_;
  private String uri_;
  private byte[] bytes_;
  private String httpUsername_;
  private String httpPassword_;
  private String documentation_;
  private Object model_;

  public WebServiceEntity()
  {
    parent_ = null;
    children_ = new ArrayList();
    type_ = TYPE_UNKNOWN;
    uri_ = null;
    bytes_ = null;
    httpUsername_ = null;
    httpPassword_ = null;
    documentation_ = null;
    model_ = null;
  }

  public Object getParent()
  {
    return parent_;
  }

  public void setParent(Object parent)
  {
    parent_ = parent;
  }

  public List getChildren()
  {
    return children_;
  }

  public void addChild(Object child)
  {
    children_.add(child);
  }

  public void removeChild(Object child)
  {
    children_.remove(child);
  }

  public int getType()
  {
    return type_;
  }

  public void setType(int type)
  {
    type_ = type;
  }

  public String getURI()
  {
    return uri_;
  }

  public void setURI(String uri)
  {
    uri_ = uri;
  }

  public byte[] getBytes()
  {
    return bytes_;
  }

  public void setBytes(byte[] bytes)
  {
    bytes_ = bytes;
  }

  public String getHTTPUsername()
  {
    return httpUsername_;
  }

  public void setHTTPUsername(String httpUsername)
  {
    httpUsername_ = httpUsername;
  }

  public String getHTTPPassword()
  {
    return httpPassword_;
  }

  public void setHTTPPassword(String httpPassword)
  {
    httpPassword_ = httpPassword;
  }
  
  public String getDocumentation()
  {
    return documentation_;
  }
  
  public void setDocumentation(String documentation)
  {
    documentation_ = documentation;
  }
  
  public Object getModel()
  {
    return model_;
  }
  
  public void setModel(Object model)
  {
    model_ = model;
  }

  public boolean isEntityResolved()
  {
    return (bytes_ != null);
  }
}

Back to the top