KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdi > connect > Connector


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package com.sun.jdi.connect;
12
13
14 import java.io.Serializable JavaDoc;
15 import java.util.List JavaDoc;
16 import java.util.Map JavaDoc;
17
18 public interface Connector {
19     public Map JavaDoc defaultArguments();
20     public String JavaDoc description();
21     public String JavaDoc name();
22     public Transport transport();
23
24     public interface Argument extends Serializable JavaDoc {
25         public String JavaDoc description();
26         public boolean isValid(String JavaDoc arg1);
27         public String JavaDoc label();
28         public boolean mustSpecify();
29         public String JavaDoc name();
30         public void setValue(String JavaDoc arg1);
31         public String JavaDoc value();
32     }
33     
34     public interface StringArgument extends Connector.Argument {
35         public boolean isValid(String JavaDoc arg1);
36     }
37
38     public interface IntegerArgument extends Connector.Argument {
39         public int intValue();
40         public boolean isValid(int arg1);
41         public boolean isValid(String JavaDoc arg1);
42         public int max();
43         public int min();
44         public void setValue(int arg1);
45         public String JavaDoc stringValueOf(int arg1);
46     }
47
48     public interface BooleanArgument extends Connector.Argument {
49         public boolean booleanValue();
50         public boolean isValid(String JavaDoc arg1);
51         public void setValue(boolean arg1);
52         public String JavaDoc stringValueOf(boolean arg1);
53     }
54     
55     public interface SelectedArgument extends Connector.Argument {
56         public List JavaDoc choices();
57         public boolean isValid(String JavaDoc arg1);
58     }
59 }
60
Popular Tags