Rational Developer for Power Systems Software

Class ValidatorConstantValue

  extended by ValidatorSpecialChar
      extended by com.ibm.etools.iseries.edit.wizards.validator.ValidatorFieldType
          extended by com.ibm.etools.iseries.edit.wizards.validator.ValidatorConstantValue

public class ValidatorConstantValue
extends ValidatorFieldType

Field Summary
Fields inherited from class com.ibm.etools.iseries.edit.wizards.validator.ValidatorFieldType
Copyright, FIELDTYPE_INVALID_CHARS, FIELDTYPE_MAXLENGTH_NAME, reservedPage, reservedWordsForDate
Constructor Summary
ValidatorConstantValue(boolean emptyAllowed, String specialChars)
          Constructor override the errormessages of superclass
ValidatorConstantValue(String specialChars)
Method Summary
protected  boolean followNamingRule(String text)
 SystemMessage isSyntaxOk(String newText)
          We could do additional syntax checking here if we decide to.
 boolean isUnfinishedLiteral(String text)
          Determines whether or not the string starts off as a literal.
Methods inherited from class com.ibm.etools.iseries.edit.wizards.validator.ValidatorFieldType
doMessageSubstitution, getMaximumNameLength, isEmptyAllowed, isReserved, isReservedForDate, isReservedForPage, isValid, isValidChar, setEmptyAllowed, setFunctionAllowed, setReservedAllowed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ValidatorConstantValue(String specialChars)


public ValidatorConstantValue(boolean emptyAllowed,
                              String specialChars)
Constructor override the errormessages of superclass

Method Detail


public SystemMessage isSyntaxOk(String newText)
Description copied from class: ValidatorFieldType
We could do additional syntax checking here if we decide to. This method is called by parent class if all other error checking passes.

isSyntaxOk in class ValidatorFieldType


protected boolean followNamingRule(String text)
followNamingRule in class ValidatorFieldType


public boolean isUnfinishedLiteral(String text)
Determines whether or not the string starts off as a literal. Used to determine whether or not to quote the string.

text - The text to check
True if the string starts off as a literal, false otherwise.

Rational Developer for Power Systems Software

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.