Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.validators
Class ValidatorIBMUserTypeName

java.lang.Object
  extended by ValidatorUniqueString
      extended by com.ibm.etools.iseries.rse.ui.validators.ValidatorIBMUserTypeName

public class ValidatorIBMUserTypeName
extends ValidatorUniqueString

This is a copy of ValidatorUserTypeName from Open RSE, but modified to work around the nls problems currently in open rse 3.0. TODO: Remove this class when NLS is fixed in Open RSE 3.1


Field Summary
static String copyright
           
static int MAX_UDTNAME_LENGTH
           
protected  SystemMessage msg_Invalid
           
 
Constructor Summary
ValidatorIBMUserTypeName()
          Use this constructor when the name need not be unique, and you just want the syntax checking.
 
Method Summary
protected  boolean checkForBadCharacters(String newText)
          Overridable method for invalidate character check, beyond what this class offers
 SystemMessage getInvalidMessage(String substitutionString)
           
 int getMaximumNameLength()
          Return the max length for folder names: 50
 SystemMessage getNotUniqueMessage(String substitutionString)
           
 SystemMessage isSyntaxOk(String newText)
          Validate each character.
 String isValid(String newText)
          Copied from ValidatorUniqueString, which slight modifications for the NLS problems in open RSE 3.0
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

copyright

public static String copyright

MAX_UDTNAME_LENGTH

public static final int MAX_UDTNAME_LENGTH
See Also:
Constant Field Values

msg_Invalid

protected SystemMessage msg_Invalid
Constructor Detail

ValidatorIBMUserTypeName

public ValidatorIBMUserTypeName()
Use this constructor when the name need not be unique, and you just want the syntax checking.

Method Detail

checkForBadCharacters

protected boolean checkForBadCharacters(String newText)
Overridable method for invalidate character check, beyond what this class offers

Returns:
true if valid, false if not

toString

public String toString()

isSyntaxOk

public SystemMessage isSyntaxOk(String newText)
Validate each character. Override of parent method. Override yourself to refine the error checking.


getMaximumNameLength

public int getMaximumNameLength()
Return the max length for folder names: 50


isValid

public String isValid(String newText)
Copied from ValidatorUniqueString, which slight modifications for the NLS problems in open RSE 3.0


getInvalidMessage

public SystemMessage getInvalidMessage(String substitutionString)

getNotUniqueMessage

public SystemMessage getNotUniqueMessage(String substitutionString)

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.