Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.validators
Interface ISystemValidator

All Known Implementing Classes:
ValidatorCompileCommandLabel, ValidatorConnectionName, ValidatorFileName, ValidatorFilterName, ValidatorFilterPoolName, ValidatorFilterString, ValidatorFolderName, ValidatorIntegerInput, ValidatorLongInput, ValidatorProfileName, ValidatorSourceType, ValidatorSpecialChar, ValidatorUniqueString, ValidatorUserActionCommand, ValidatorUserActionComment, ValidatorUserActionName, ValidatorUserTypeName, ValidatorUserTypeTypes

public interface ISystemValidator

Our validators need to support querying max length, for generic rename dialogs. They also need to support getting the message not only as a string, which isValid returns, but also as a SystemMessage, which getSystemMessage() does if isValid returns non-null.


Field Summary
static String Copyright
           
 
Method Summary
 int getMaximumNameLength()
          Return the max length for this name, or -1 if no max
 SystemMessage getSystemMessage()
          If isValid returns non-null and you desire a full bodied SystemMessage versus a string, call this method after isValid to get the full bodied SystemMessage.
 SystemMessage validate(String text)
          For convenience, this is a shortcut to calling: if (isValid(text) !
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Method Detail

getMaximumNameLength

public int getMaximumNameLength()
Return the max length for this name, or -1 if no max


getSystemMessage

public SystemMessage getSystemMessage()
If isValid returns non-null and you desire a full bodied SystemMessage versus a string, call this method after isValid to get the full bodied SystemMessage.

Will be null if isValid returned null.


validate

public SystemMessage validate(String text)
For convenience, this is a shortcut to calling:

  if (isValid(text) != null)
    msg = getSystemMessage();
 


Remote Systems
v6.4.1

Copyright © 2005 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.