01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package com.sun.jdi.connect;
11:
12: import java.io.Serializable;
13: import java.util.List;
14: import java.util.Map;
15:
16: public interface Connector {
17: public Map defaultArguments();
18:
19: public String description();
20:
21: public String name();
22:
23: public Transport transport();
24:
25: public interface Argument extends Serializable {
26: public String description();
27:
28: public boolean isValid(String arg1);
29:
30: public String label();
31:
32: public boolean mustSpecify();
33:
34: public String name();
35:
36: public void setValue(String arg1);
37:
38: public String value();
39: }
40:
41: public interface StringArgument extends Connector.Argument {
42: public boolean isValid(String arg1);
43: }
44:
45: public interface IntegerArgument extends Connector.Argument {
46: public int intValue();
47:
48: public boolean isValid(int arg1);
49:
50: public boolean isValid(String arg1);
51:
52: public int max();
53:
54: public int min();
55:
56: public void setValue(int arg1);
57:
58: public String stringValueOf(int arg1);
59: }
60:
61: public interface BooleanArgument extends Connector.Argument {
62: public boolean booleanValue();
63:
64: public boolean isValid(String arg1);
65:
66: public void setValue(boolean arg1);
67:
68: public String stringValueOf(boolean arg1);
69: }
70:
71: public interface SelectedArgument extends Connector.Argument {
72: public List choices();
73:
74: public boolean isValid(String arg1);
75: }
76: }
|