org.beanfabrics.samples.regextester
Class RegexTesterPM

java.lang.Object
  extended by org.beanfabrics.AbstractBean
      extended by org.beanfabrics.ValidatableBean
          extended by org.beanfabrics.model.AbstractPM
              extended by org.beanfabrics.samples.regextester.RegexTesterPM
All Implemented Interfaces:
Bean, ContextOwner, HasComparable, PresentationModel, Supportable, Validatable

public class RegexTesterPM
extends AbstractPM

The RegexTesterPM is the presentation model for the RegexTesterPanel.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.beanfabrics.model.AbstractPM
AbstractPM.PropertiesValidationRule
 
Field Summary
 
Fields inherited from class org.beanfabrics.model.AbstractPM
KEY_MESSAGE_ONE_OR_MORE_INVALID
 
Constructor Summary
RegexTesterPM()
           
 
Method Summary
 boolean isMatchEnabled()
          This validation rule checks whether the match operation can be executed.
 void match()
          Performs the pattern matching.
 
Methods inherited from class org.beanfabrics.model.AbstractPM
getComparable, getContext, getSupportMap, revalidateProperties
 
Methods inherited from class org.beanfabrics.ValidatableBean
getValidationState, getValidator, isValid, revalidate, setValidationState
 
Methods inherited from class org.beanfabrics.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, equals, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.beanfabrics.Bean
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface org.beanfabrics.validation.Validatable
getValidationState, getValidator, isValid, revalidate
 

Constructor Detail

RegexTesterPM

public RegexTesterPM()
Method Detail

match

public void match()
Performs the pattern matching.


isMatchEnabled

public boolean isMatchEnabled()
This validation rule checks whether the match operation can be executed.

Returns:
true, if the regex is valid