net.sourceforge.domian.specification
Class WildcardExpressionMatcherStringSpecification

java.lang.Object
  extended by net.sourceforge.domian.specification.AbstractSpecification<java.lang.String>
      extended by net.sourceforge.domian.specification.RegularExpressionMatcherStringSpecification
          extended by 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

Field Summary
protected  java.lang.String originalWildcardExpression
           
 
Fields inherited from class net.sourceforge.domian.specification.RegularExpressionMatcherStringSpecification
compiledRegularExpression
 
Fields inherited from class net.sourceforge.domian.specification.AbstractSpecification
type
 
Constructor Summary
WildcardExpressionMatcherStringSpecification(java.lang.String regularExpression)
           
 
Method Summary
protected  java.util.regex.Pattern compileRegexPattern(java.lang.String regularExpression)
           
private  java.util.regex.Pattern compileWildcardRegexPattern(java.lang.String wildcardExpression)
           
private  java.lang.String convertWildcardToRegex(java.lang.String wildcardExpression)
           
protected  java.lang.String createSimplestPossibleSatisfiableStringFor(java.lang.String wildcardExpression)
           
protected  java.lang.Boolean ignoreCase()
           
 java.lang.Boolean isDisjointWith(Specification<?> specification)
           
 
Methods inherited from class net.sourceforge.domian.specification.RegularExpressionMatcherStringSpecification
equals, getValue, hashCode, isSatisfiedBy
 
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
 
Methods inherited from interface net.sourceforge.domian.specification.Specification
and, getType, isGeneralizationOf, isSpecialCaseOf, or, where
 

Field Detail

originalWildcardExpression

protected java.lang.String originalWildcardExpression
Constructor Detail

WildcardExpressionMatcherStringSpecification

WildcardExpressionMatcherStringSpecification(java.lang.String regularExpression)
Method Detail

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.