Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.ui.validators
Interface ISystemValidator

All Superinterfaces:
ICellEditorValidator, IInputValidator
All Known Implementing Classes:
ValidatorArchiveName, ValidatorConnectionName, ValidatorFileFilterString, ValidatorFileName, ValidatorFileUniqueName, ValidatorFilterName, ValidatorFilterPoolName, ValidatorFilterString, ValidatorFolderName, ValidatorIntegerInput, ValidatorIntegerRangeInput, ValidatorLocalPath, ValidatorLongInput, ValidatorLongRangeInput, ValidatorPathName, ValidatorPortInput, ValidatorProfileName, ValidatorServerPortInput, ValidatorSourceType, ValidatorSpecialChar, ValidatorSystemName, ValidatorUniqueString, ValidatorUserId

public interface ISystemValidator
extends IInputValidator, ICellEditorValidator

Our validators need to support querying max length, for generic rename dialogs. They also need to support getting the message not only as a string, which isValid returns, but also as a SystemMessage, which getSystemMessage() does if isValid returns non-null.


Method Summary
 int getMaximumNameLength ()
          Return the max length for this name, or -1 if no max
  SystemMessage getSystemMessage ()
          If isValid returns non-null and you desire a full bodied SystemMessage versus a string, call this method after isValid to get the full bodied SystemMessage.
  SystemMessage validate ( String text)
          For convenience, this is a shortcut to calling: if (isValid(text) !
 
Methods inherited from interface org.eclipse.jface.dialogs. IInputValidator
isValid
 
Methods inherited from interface org.eclipse.jface.viewers. ICellEditorValidator
isValid
 

Method Detail

getMaximumNameLength

int getMaximumNameLength()
Return the max length for this name, or -1 if no max


getSystemMessage

SystemMessage getSystemMessage()
If isValid returns non-null and you desire a full bodied SystemMessage versus a string, call this method after isValid to get the full bodied SystemMessage.

Will be null if isValid returned null.


validate

SystemMessage validate(
String text)
For convenience, this is a shortcut to calling:

  if (isValid(text) != null)
    msg = getSystemMessage();
 


RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire