Update of /cvsroot/javaprofiler/interface/net/sourceforge/javaprofiler/jpi/connect In directory usw-pr-cvs1:/tmp/cvs-serv31535/connect Modified Files: Connector.java IllegalConnectorArgumentsException.java Transport.java VMStartException.java Log Message: Full qualification of classes removed where it is not necessary. Index: Connector.java =================================================================== RCS file: /cvsroot/javaprofiler/interface/net/sourceforge/javaprofiler/jpi/connect/Connector.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** Connector.java 2001/07/17 21:03:39 1.5 --- Connector.java 2001/08/22 13:19:47 1.6 *************** *** 21,24 **** --- 21,26 ---- package net.sourceforge.javaprofiler.jpi.connect; + import java.util.Map; + import java.util.List; import net.sourceforge.javaprofiler.jpi.VirtualMachine; *************** *** 60,64 **** * @return the name of this connector. */ ! public java.lang.String name(); /** --- 62,66 ---- * @return the name of this connector. */ ! public String name(); /** *************** *** 67,71 **** * @return the description of this connector */ ! public java.lang.String description(); /** --- 69,73 ---- * @return the description of this connector */ ! public String description(); /** *************** *** 94,98 **** * and default value. */ ! public java.util.Map defaultArguments(); /** --- 96,100 ---- * and default value. */ ! public Map defaultArguments(); /** *************** *** 101,105 **** * when <code>connect()</code> is called. */ ! public VirtualMachine connect(java.util.Map arguments) throws IllegalConnectorArgumentsException, ConnectingException; --- 103,107 ---- * when <code>connect()</code> is called. */ ! public VirtualMachine connect(Map arguments) throws IllegalConnectorArgumentsException, ConnectingException; *************** *** 110,114 **** * or {@link Connector.SelectedArgument}. */ ! static interface Argument extends java.io.Serializable { /** --- 112,116 ---- * or {@link Connector.SelectedArgument}. */ ! public static interface Argument extends java.io.Serializable { /** *************** *** 118,122 **** * @return the name of this argument. */ ! public java.lang.String name(); /** --- 120,124 ---- * @return the name of this argument. */ ! public String name(); /** *************** *** 125,129 **** * @return a label for this argument */ ! public java.lang.String label(); /** --- 127,131 ---- * @return a label for this argument */ ! public String label(); /** *************** *** 132,136 **** * @return the description of this argument */ ! public java.lang.String description(); /** --- 134,138 ---- * @return the description of this argument */ ! public String description(); /** *************** *** 140,144 **** * @return the current value of the argument. */ ! public java.lang.String value(); /** --- 142,146 ---- * @return the current value of the argument. */ ! public String value(); /** *************** *** 148,152 **** * method is called). */ ! public void setValue(java.lang.String value); /** --- 150,154 ---- * method is called). */ ! public void setValue(String value); /** *************** *** 155,163 **** * @return <code>true</code> if the value is valid to be used in {@link #setValue(String)} */ ! public boolean isValid(java.lang.String value); /** * Indicates whether the argument must be specified. If <code>true</code>, ! * {@link #setValue(java.lang.String)} must be used to set a non-<code>null</code> value * before using this argument in establishing a connection. * --- 157,165 ---- * @return <code>true</code> if the value is valid to be used in {@link #setValue(String)} */ ! public boolean isValid(String value); /** * Indicates whether the argument must be specified. If <code>true</code>, ! * {@link #setValue(String)} must be used to set a non-<code>null</code> value * before using this argument in establishing a connection. * *************** *** 171,175 **** * Boolean. */ ! static interface BooleanArgument extends Argument { /** --- 173,177 ---- * Boolean. */ ! public static interface BooleanArgument extends Argument { /** *************** *** 183,187 **** * @return <code>true</code> if value is a string representation of a boolean value. */ ! public boolean isValid(java.lang.String value); /** --- 185,189 ---- * @return <code>true</code> if value is a string representation of a boolean value. */ ! public boolean isValid(String value); /** *************** *** 200,204 **** * an integer. Integer values are represented by their corresponding strings. */ ! static interface IntegerArgument extends Argument { /** --- 202,206 ---- * an integer. Integer values are represented by their corresponding strings. */ ! public static interface IntegerArgument extends Argument { /** *************** *** 216,220 **** * <code>min() <= value <= max()</code> */ ! public boolean isValid(java.lang.String value); /** --- 218,222 ---- * <code>min() <= value <= max()</code> */ ! public boolean isValid(String value); /** *************** *** 254,258 **** * a String selected from a list of choices. */ ! static interface SelectedArgument extends Argument { /** --- 256,260 ---- * a String selected from a list of choices. */ ! public static interface SelectedArgument extends Argument { /** *************** *** 261,265 **** * @return List of String */ ! public java.util.List choices(); /** --- 263,267 ---- * @return List of String */ ! public List choices(); /** *************** *** 268,272 **** * @return <code>true</code> if value is one of {@link #choices()}. */ ! public boolean isValid(java.lang.String value); } --- 270,274 ---- * @return <code>true</code> if value is one of {@link #choices()}. */ ! public boolean isValid(String value); } *************** *** 276,288 **** * is a String. */ ! static interface StringArgument extends Argument { - /** - * Performs basic sanity check of argument. - * - * @return <code>true</code> always - */ - public boolean isValid(java.lang.String value); - } --- 278,283 ---- * is a String. */ ! public static interface StringArgument extends Argument { } *************** *** 291,294 **** --- 286,292 ---- /* * $Log$ + * Revision 1.6 2001/08/22 13:19:47 stolis + * Full qualification of classes removed where it is not necessary. + * * Revision 1.5 2001/07/17 21:03:39 stolis * Javadoc updated. Index: IllegalConnectorArgumentsException.java =================================================================== RCS file: /cvsroot/javaprofiler/interface/net/sourceforge/javaprofiler/jpi/connect/IllegalConnectorArgumentsException.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** IllegalConnectorArgumentsException.java 2001/04/23 18:03:32 1.2 --- IllegalConnectorArgumentsException.java 2001/08/22 13:19:47 1.3 *************** *** 21,24 **** --- 21,27 ---- package net.sourceforge.javaprofiler.jpi.connect; + import java.util.List; + import java.util.ArrayList; + /** * Thrown to indicate an invalid argument or inconsistent passed *************** *** 29,33 **** public class IllegalConnectorArgumentsException extends IllegalArgumentException { /** Names of invalid arguments. */ ! private java.util.List names; /** --- 32,36 ---- public class IllegalConnectorArgumentsException extends IllegalArgumentException { /** Names of invalid arguments. */ ! private List names; /** *************** *** 37,43 **** * @param name name of invalid argument. */ ! public IllegalConnectorArgumentsException(java.lang.String msg, java.lang.String name) { super(msg); ! names=new java.util.ArrayList(1); names.add(name); } --- 40,46 ---- * @param name name of invalid argument. */ ! public IllegalConnectorArgumentsException(String msg, String name) { super(msg); ! names=new ArrayList(1); names.add(name); } *************** *** 49,53 **** * @param names names of invalid arguments. */ ! public IllegalConnectorArgumentsException(java.lang.String msg, java.util.List names) { super(msg); this.names=names; --- 52,56 ---- * @param names names of invalid arguments. */ ! public IllegalConnectorArgumentsException(String msg, List names) { super(msg); this.names=names; *************** *** 59,63 **** * @return list of invalid arguments. */ ! public java.util.List argumentNames() { return names; } --- 62,66 ---- * @return list of invalid arguments. */ ! public List argumentNames() { return names; } *************** *** 67,70 **** --- 70,76 ---- /* * $Log$ + * Revision 1.3 2001/08/22 13:19:47 stolis + * Full qualification of classes removed where it is not necessary. + * * Revision 1.2 2001/04/23 18:03:32 michalpise * Changed to extend IllegalArgumentException instead of Exception. Index: Transport.java =================================================================== RCS file: /cvsroot/javaprofiler/interface/net/sourceforge/javaprofiler/jpi/connect/Transport.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Transport.java 2001/07/07 22:28:04 1.2 --- Transport.java 2001/08/22 13:19:47 1.3 *************** *** 36,40 **** * @return the name of this transport. */ ! public java.lang.String name(); } --- 36,40 ---- * @return the name of this transport. */ ! public String name(); } *************** *** 42,45 **** --- 42,48 ---- /* * $Log$ + * Revision 1.3 2001/08/22 13:19:47 stolis + * Full qualification of classes removed where it is not necessary. + * * Revision 1.2 2001/07/07 22:28:04 stolis * Small change in documentation. Index: VMStartException.java =================================================================== RCS file: /cvsroot/javaprofiler/interface/net/sourceforge/javaprofiler/jpi/connect/VMStartException.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** VMStartException.java 2000/11/27 17:46:46 1.1.1.1 --- VMStartException.java 2001/08/22 13:19:47 1.2 *************** *** 36,40 **** * @param process <code>Process</code> object of the launched target. */ ! public VMStartException(java.lang.Process process) { this.process=process; } --- 36,40 ---- * @param process <code>Process</code> object of the launched target. */ ! public VMStartException(Process process) { this.process=process; } *************** *** 46,50 **** * @param process <code>Process</code> object of the launched target. */ ! public VMStartException(java.lang.String msg, java.lang.Process process) { super(msg); this.process=process; --- 46,50 ---- * @param process <code>Process</code> object of the launched target. */ ! public VMStartException(String msg, Process process) { super(msg); this.process=process; *************** *** 55,58 **** --- 55,61 ---- /* * $Log$ + * Revision 1.2 2001/08/22 13:19:47 stolis + * Full qualification of classes removed where it is not necessary. + * * Revision 1.1.1.1 2000/11/27 17:46:46 stolis * First version of the interface of our architecture. |