java.lang.Object
com.iamsoft.util.ui.swing.activation.AbstractActivationCriterion
com.iamsoft.util.ui.swing.activation.DocumentCriterion
com.iamsoft.util.ui.swing.activation.DocRegExCriterion
- All Implemented Interfaces:
ActivationCriterion
Mandates that a document's contents match a regular expression.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDocRegExCriterion
(Document pDocument, String pRegEx) DocRegExCriterion
(Document pDocument, Pattern pPattern) -
Method Summary
Methods inherited from class com.iamsoft.util.ui.swing.activation.DocumentCriterion
getDocument, getText
Methods inherited from class com.iamsoft.util.ui.swing.activation.AbstractActivationCriterion
addChangeListener, equals, fireSatisfactionChange, hashCode, inverse, removeChangeListener
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.iamsoft.util.ui.swing.activation.ActivationCriterion
getFailureMessage
-
Constructor Details
-
DocRegExCriterion
- Parameters:
pDocument
- Document against which regular expression is tested.pRegEx
- Regular expression to be matched.
-
DocRegExCriterion
- Parameters:
pDocument
- Document against which regular expression is tested.pPattern
- Pattern to be matched.
-
-
Method Details
-
test
public boolean test()Description copied from interface:ActivationCriterion
TODO: return an Object (null for passed test). -
toString
- Overrides:
toString
in classDocumentCriterion
-