com.guiseframework.demo
Class TextSearchPanel.PatternSyntaxValidator

java.lang.Object
  extended by com.globalmentor.beans.BoundPropertyObject
      extended by com.guiseframework.event.GuiseBoundPropertyObject
          extended by com.guiseframework.validator.AbstractValidator<java.lang.String>
              extended by com.guiseframework.demo.TextSearchPanel.PatternSyntaxValidator
All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, Validator<java.lang.String>
Enclosing class:
TextSearchPanel

public static class TextSearchPanel.PatternSyntaxValidator
extends AbstractValidator<java.lang.String>

A pattern validator that can validate whether a regular expression has valid syntax, allowing null values.

Author:
Garret Wilson

Field Summary
 
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
 
Fields inherited from interface com.guiseframework.validator.Validator
INVALID_VALUE_MESSAGE_PROPERTY, VALUE_REQUIRED_MESSAGE_PROPERTY, VALUE_REQUIRED_PROPERTY
 
Constructor Summary
TextSearchPanel.PatternSyntaxValidator()
          Default constructor that allows null values.
 
Method Summary
 void validate(java.lang.String value)
          Checks whether a given regular expression value is syntactically correct.
 
Methods inherited from class com.guiseframework.validator.AbstractValidator
getInvalidValueMessage, getValueRequiredMessage, isValid, isValueRequired, setInvalidValueMessage, setValueRequired, setValueRequiredMessage, throwInvalidValueValidationException, throwValueRequiredValidationException, toString
 
Methods inherited from class com.guiseframework.event.GuiseBoundPropertyObject
getSession
 
Methods inherited from class com.globalmentor.beans.BoundPropertyObject
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.guiseframework.validator.Validator
getSession
 
Methods inherited from interface com.globalmentor.beans.PropertyBindable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

TextSearchPanel.PatternSyntaxValidator

public TextSearchPanel.PatternSyntaxValidator()
Default constructor that allows null values.

Method Detail

validate

public void validate(java.lang.String value)
              throws ValidationException
Checks whether a given regular expression value is syntactically correct.

Specified by:
validate in interface Validator<java.lang.String>
Overrides:
validate in class AbstractValidator<java.lang.String>
Parameters:
value - The value to validate.
Throws:
ValidationException - if the provided value is not valid.
See Also:
AbstractValidator.throwInvalidValueValidationException(Object), AbstractValidator.throwValueRequiredValidationException(Object)


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.