Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.wizards.validator
Class ValidatorConstantValue

java.lang.Object
  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

ValidatorConstantValue

public ValidatorConstantValue(String specialChars)

ValidatorConstantValue

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

Method Detail

isSyntaxOk

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.

Overrides:
isSyntaxOk in class ValidatorFieldType

followNamingRule

protected boolean followNamingRule(String text)
Overrides:
followNamingRule in class ValidatorFieldType

isUnfinishedLiteral

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.

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

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.