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 ValidatorProfileName


java.lang.Object
  extended by 

org.eclipse.rse.ui.validators.ValidatorUniqueString
      extended by 

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

public class ValidatorProfileName
extends ValidatorFolderName
implements ISystemValidator

This class is used in dialogs that prompt for a profile name. Relies on Eclipse supplied method to test for folder name validity.

The IInputValidator interface is used by jface's InputDialog class and numerous other platform and system classes.


Field Summary
static int MAX_PROFILENAME_LENGTH
           
 
Fields inherited from class org.eclipse.rse.ui.validators. ValidatorFolderName
fUnique, MAX_FOLDERNAME_LENGTH, msg_Invalid, workspace
 
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
ValidatorProfileName ( Collection existingNameList)
          The collection of existing names can be null if this is not a rename operation.
 
Method Summary
 int getMaximumNameLength ()
          Return the max length for profiles: 100
  SystemMessage isSyntaxOk ( String newText)
          Parent intercept to ensure no reserved names are used.
 
Methods inherited from class org.eclipse.rse.ui.validators. ValidatorFolderName
checkForBadCharacters, setErrorMessages, toString
 
Methods inherited from class org.eclipse.rse.ui.validators. ValidatorUniqueString
doMessageSubstitution, getExistingNamesList, getSystemMessage, getSystemMessageText, 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_PROFILENAME_LENGTH

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

ValidatorProfileName

public ValidatorProfileName(
Collection existingNameList)
The collection of existing names can be null if this is not a rename operation.

Parameters:
existingNameList - the collection of names to compare against. This will not be modified by the validator.
Method Detail

getMaximumNameLength

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

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

isSyntaxOk

public 
SystemMessage isSyntaxOk(
String newText)
Parent intercept to ensure no reserved names are used.

Overrides:
isSyntaxOk in class ValidatorFolderName

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