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
Answertopia.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
Class ValidatorFilterName


java.lang.Object
  extended by 

org.eclipse.rse.ui.validators.ValidatorUniqueString
      extended by 
org.eclipse.rse.ui.validators.ValidatorFilterName
All Implemented Interfaces:
IInputValidator, ICellEditorValidator, ISystemValidator, ISystemValidatorUniqueString

public class ValidatorFilterName
extends ValidatorUniqueString
implements ISystemValidator

This class is used in dialogs that prompt for filter name. Filter names have to be unique.

The IInputValidator interface is implemented by our parent and it is used by jface's InputDialog class and property sheet window.


Field Summary
static int MAX_FILTERNAME_LENGTH
           
 
Fields inherited from class org.eclipse.rse.ui.validators. ValidatorUniqueString
CASE_INSENSITIVE, CASE_SENSITIVE, caseSensitive, currentMessage, existingList, msg_Empty, msg_NonUnique, QUOTE, syntaxValidator, useUpperCase
 
Constructor Summary
ValidatorFilterName ( Collection existingList)
          Constructor accepting a Collection.
ValidatorFilterName ( String[] existingList)
          Constructor accepting an Array.
 
Method Summary
protected  boolean checkForBadCharacters ( String newText)
          Overridable extension point to check for invalidate characters beyond what Eclipse checks for
 int getMaximumNameLength ()
          Return the max length for filters: 100
  String toString ()
           
 
Methods inherited from class org.eclipse.rse.ui.validators. ValidatorUniqueString
doMessageSubstitution, getExistingNamesList, getSystemMessage, getSystemMessageText, isSyntaxOk, isValid, isValid, quotedToLowerCase, setCaseSensitive, setErrorMessages, setExistingNamesList, setExistingNamesList, setUseUpperCase, validate
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.rse.ui.validators. ISystemValidator
getSystemMessage, validate
 
Methods inherited from interface org.eclipse.jface.dialogs. IInputValidator
isValid
 
Methods inherited from interface org.eclipse.jface.viewers. ICellEditorValidator
isValid
 

Field Detail

MAX_FILTERNAME_LENGTH

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

ValidatorFilterName

public ValidatorFilterName(
Collection existingList)
Constructor accepting a Collection.

Parameters:
existingList - a collection of existing filter names to compare against. The collection will not be modified by the validator. Note that toString() is used to get the string from each item.

ValidatorFilterName

public ValidatorFilterName(
String[] existingList)
Constructor accepting an Array.

Parameters:
existingList - array containing list of existing strings to compare against.
Method Detail

toString

public 
String toString()
Overrides:
toString in class ValidatorUniqueString

checkForBadCharacters

protected boolean checkForBadCharacters(
String newText)
Overridable extension point to check for invalidate characters beyond what Eclipse checks for

Returns:
true if valid, false if not

getMaximumNameLength

public int getMaximumNameLength()
Return the max length for filters: 100

Specified by:
getMaximumNameLength in interface ISystemValidator
Overrides:
getMaximumNameLength in class ValidatorUniqueString

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