com.ibm.tws.objects.model.validator
Class ModelValidator

java.lang.Object
  extended bycom.ibm.tws.objects.validator.Validator
      extended bycom.ibm.tws.objects.model.validator.ModelValidator
Direct Known Subclasses:
CalendarValidator, DomainValidator, FlowNodeValidator, FlowTargetValidator, JobDefinitionValidator, JobStreamValidator, JobValidator, PromptValidator, QueryFilterValidator, ResourceValidator, RunCycleValidator, VariableValidator, WindowsUserValidator, WorkstationClassValidator, WorkstationValidator

public class ModelValidator
extends Validator

This is a base class for all model validators, and includes common methods that can be used by different subclasses.


Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
protected ModelValidator(java.util.Locale locale)
          Creates a new ModelValidator, using the specified locale for error messages.
 
Method Summary
protected  void checkResolutionData(ResolutionData resolutionData)
          Checks rules related to resolution data.
protected  void checkTimeRestrictions(java.lang.String objectName, TimeRestrictions timeRestrictions)
          Checks rules related to time restrictions.
 
Methods inherited from class com.ibm.tws.objects.validator.Validator
checkAlphabetic, checkAlphaNumeric, checkComparison, checkComparison, checkComparison, checkConstraint, checkConstraint, checkFilter, checkInstanceOf, checkInternetAddress, checkLength, checkListFilter, checkNotAllowedChars, checkNotAllowedStart, checkNotNull, checkNotNull, checkNotNull, checkNotNull, checkNotNull, checkNumeric, checkRange, checkRange, checkRange, checkStartWithAlphabetic, checkStartWithAlphaNumeric, checkStartWithNumeric, checkValue, checkValue, checkValue, getLength, getLocale, getLocalizedField, getLocalizedValue, getObjectName, setObjectName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

ModelValidator

protected ModelValidator(java.util.Locale locale)
Creates a new ModelValidator, using the specified locale for error messages.

Parameters:
locale - The locale requested for error messages.
Method Detail

checkResolutionData

protected void checkResolutionData(ResolutionData resolutionData)
                            throws ValidatorException
Checks rules related to resolution data.

Parameters:
resolutionData - The resolution data to be validated.
Throws:
ValidatorException - A rule has been violated.

checkTimeRestrictions

protected void checkTimeRestrictions(java.lang.String objectName,
                                     TimeRestrictions timeRestrictions)
                              throws ValidatorException
Checks rules related to time restrictions.

Parameters:
objectName - The name of the object that is being validated.
timeRestrictions - The time restrictions to be validated.
Throws:
ValidatorException - A rule has been violated.


Copyright © 2005 IBM All Rights Reserved.