1
|
|
/* Generated by AspectJ version 1.0.5 */
|
2
|
|
package org.apache.cactus;
|
3
|
|
/**
|
4
|
|
* List of valid services that the <code>ServletTestRedirector</code> can
|
5
|
|
* perform.
|
6
|
|
*
|
7
|
|
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
8
|
|
*
|
9
|
|
* @version $Id: ServiceEnumeration.java,v 1.1 2002/03/01 00:43:45 vmassol Exp $
|
10
|
|
*/
|
11
|
|
public class ServiceEnumeration {
|
12
|
|
/**
|
13
|
|
* Call test method Service.
|
14
|
|
*/
|
15
|
|
public static ServiceEnumeration CALL_TEST_SERVICE;
|
16
|
|
/**
|
17
|
|
* Get the previous test results Service.
|
18
|
|
*/
|
19
|
|
public static ServiceEnumeration GET_RESULTS_SERVICE;
|
20
|
|
/**
|
21
|
|
* Get the previous test results Service.
|
22
|
|
*/
|
23
|
|
public static ServiceEnumeration RUN_TEST_SERVICE;
|
24
|
|
/**
|
25
|
|
* The service's name
|
26
|
|
*/
|
27
|
|
private String name;
|
28
|
|
/**
|
29
|
|
* Private constructor so that only allowed enumeration can be created.
|
30
|
|
*
|
31
|
|
* @param theServiceName the name of the service
|
32
|
|
*/
|
33
|
6
|
private ServiceEnumeration(String theServiceName) {
|
34
|
6
|
super();
|
35
|
6
|
this.name = theServiceName;
|
36
|
|
}
|
37
|
|
/**
|
38
|
|
* Compares a string representing the name of the service with the Service
|
39
|
|
* enumerated type.
|
40
|
|
*
|
41
|
|
* @param theString the string to compare with this Service name
|
42
|
|
* @return true if the string corresponds to the current Service
|
43
|
|
*/
|
44
|
0
|
public boolean equals(String theString) {
|
45
|
0
|
return theString.equals(this.name);
|
46
|
|
}
|
47
|
|
|
48
|
|
/**
|
49
|
|
* @return the Service's name
|
50
|
|
*/
|
51
|
128
|
public String toString() {
|
52
|
128
|
return this.name;
|
53
|
|
}
|
54
|
|
|
55
|
|
/**
|
56
|
|
* List of valid services that the <code>ServletTestRedirector</code> can
|
57
|
|
* perform.
|
58
|
|
*
|
59
|
|
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
60
|
|
*
|
61
|
|
* @version $Id: ServiceEnumeration.java,v 1.1 2002/03/01 00:43:45 vmassol Exp $
|
62
|
|
*/
|
63
|
|
static {
|
64
|
|
/**
|
65
|
|
* Call test method Service.
|
66
|
|
*/
|
67
|
2
|
ServiceEnumeration.CALL_TEST_SERVICE = new ServiceEnumeration("CALL_TEST");
|
68
|
|
/**
|
69
|
|
* Get the previous test results Service.
|
70
|
|
*/
|
71
|
2
|
ServiceEnumeration.GET_RESULTS_SERVICE = new ServiceEnumeration("GET_RESULTS");
|
72
|
|
/**
|
73
|
|
* Get the previous test results Service.
|
74
|
|
*/
|
75
|
2
|
ServiceEnumeration.RUN_TEST_SERVICE = new ServiceEnumeration("RUN_TEST");
|
76
|
|
}
|
77
|
|
|
78
|
|
}
|