RSE
Release 3.0

org.eclipse.rse.ui.validators
Class ValidatorPortInput

java.lang.Object
  extended by org.eclipse.rse.ui.validators.ValidatorIntegerInput
      extended by org.eclipse.rse.ui.validators.ValidatorPortInput
All Implemented Interfaces:
IInputValidator, ICellEditorValidator, ISystemValidator
Direct Known Subclasses:
ValidatorServerPortInput

public class ValidatorPortInput
extends ValidatorIntegerInput

For editable port number properties. Ensures only digits are entered, and they appear to be a valid port. TODO: what appears to be a valid port??


Field Summary
static int MAXIMUM_PORT_NUMBER
           
 
Fields inherited from class org.eclipse.rse.ui.validators.ValidatorIntegerInput
allowBlank, currentMessage, emptyMsg, invalidMsg, number
 
Constructor Summary
ValidatorPortInput()
           
 
Method Summary
 String isValid(Object input)
           
 String isValid(String input)
           
 
Methods inherited from class org.eclipse.rse.ui.validators.ValidatorIntegerInput
getMaximumNameLength, getNumber, getSystemMessage, setBlankAllowed, setErrorMessages, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXIMUM_PORT_NUMBER

public static final int MAXIMUM_PORT_NUMBER
See Also:
Constant Field Values
Constructor Detail

ValidatorPortInput

public ValidatorPortInput()
Method Detail

isValid

public String isValid(Object input)
Specified by:
isValid in interface ICellEditorValidator
Overrides:
isValid in class ValidatorIntegerInput
See Also:
ICellEditorValidator.isValid(java.lang.Object)

isValid

public String isValid(String input)
Specified by:
isValid in interface IInputValidator
Overrides:
isValid in class ValidatorIntegerInput
See Also:
ValidatorIntegerInput.isValid(java.lang.String)

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.