net.sourceforge.domian.specification
Class WildcardExpressionMatcherStringSpecification
java.lang.Object
net.sourceforge.domian.specification.AbstractSpecification<java.lang.String>
net.sourceforge.domian.specification.RegularExpressionMatcherStringSpecification
net.sourceforge.domian.specification.WildcardExpressionMatcherStringSpecification
- All Implemented Interfaces:
- LeafSpecification<java.lang.String>, Specification<java.lang.String>, ValueBoundSpecification<java.lang.String>
- Direct Known Subclasses:
- WildcardExpressionMatcherIgnoreCaseStringSpecification
class WildcardExpressionMatcherStringSpecification
- extends RegularExpressionMatcherStringSpecification
Specification that uses a regular expression engine for specifying wildcard strings.
- Since:
- 0.2
- Author:
- Eirik Torske
Methods inherited from class net.sourceforge.domian.specification.AbstractSpecification |
and, containsSimpleCompositesOnly, containsValueBoundSpecificationsOnly, createValueBoundSpecification, getAllSpecifications, getNegatedSpecification, getNumberOfLevelsOfNegations, getType, hasConjunction, hasDisjunction, intersectsWith, invert, isGeneralizationOf, isIntersectionOf, isInvertible, isOddNumber, isSpecialCaseOf, or, purify, toString, where |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
originalWildcardExpression
protected java.lang.String originalWildcardExpression
WildcardExpressionMatcherStringSpecification
WildcardExpressionMatcherStringSpecification(java.lang.String regularExpression)
ignoreCase
protected java.lang.Boolean ignoreCase()
convertWildcardToRegex
private java.lang.String convertWildcardToRegex(java.lang.String wildcardExpression)
compileRegexPattern
protected java.util.regex.Pattern compileRegexPattern(java.lang.String regularExpression)
- Overrides:
compileRegexPattern
in class RegularExpressionMatcherStringSpecification
compileWildcardRegexPattern
private java.util.regex.Pattern compileWildcardRegexPattern(java.lang.String wildcardExpression)
createSimplestPossibleSatisfiableStringFor
protected java.lang.String createSimplestPossibleSatisfiableStringFor(java.lang.String wildcardExpression)
isDisjointWith
public java.lang.Boolean isDisjointWith(Specification<?> specification)
- Specified by:
isDisjointWith
in interface Specification<java.lang.String>
- Overrides:
isDisjointWith
in class RegularExpressionMatcherStringSpecification
Copyright © 2006-2010. All Rights Reserved.