net.sourceforge.domian.specification
Class BlankStringSpecification

java.lang.Object
  extended by net.sourceforge.domian.specification.AbstractSpecification<java.lang.String>
      extended by net.sourceforge.domian.specification.BlankStringSpecification
All Implemented Interfaces:
LeafSpecification<java.lang.String>, Specification<java.lang.String>

Deprecated. Replaced by DefaultValueSpecification - will be removed in v0.5

@Deprecated
final class BlankStringSpecification
extends AbstractSpecification<java.lang.String>
implements LeafSpecification<java.lang.String>

Leaf specification, specifying all blank string objects.

Specification spec = new BlankStringSpecification();
spec.isSatisfiedBy(null)   -> true
spec.isSatisfiedBy("")     -> true
spec.isSatisfiedBy("   ")  -> true
spec.isSatisfiedBy("\n")   -> true
spec.isSatisfiedBy("\r")   -> true
spec.isSatisfiedBy("\t")   -> true
spec.isSatisfiedBy("\r\n") -> true
spec.isSatisfiedBy(".")    -> false

Since:
0.1
Author:
Eirik Torske
See Also:
Commons Lang

Field Summary
 
Fields inherited from class net.sourceforge.domian.specification.AbstractSpecification
type
 
Constructor Summary
BlankStringSpecification()
          Deprecated.  
 
Method Summary
 java.lang.Boolean isSatisfiedBy(java.lang.String candidate)
          Deprecated. Specification satisfaction.
 
Methods inherited from class net.sourceforge.domian.specification.AbstractSpecification
getAllSpecifications, getType, isGeneralizationOf, isSpecialCaseOf, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sourceforge.domian.specification.Specification
getType, isGeneralizationOf, isSpecialCaseOf
 

Constructor Detail

BlankStringSpecification

BlankStringSpecification()
Deprecated. 
Method Detail

isSatisfiedBy

public java.lang.Boolean isSatisfiedBy(java.lang.String candidate)
Deprecated. 
Description copied from interface: Specification
Specification satisfaction.

Specified by:
isSatisfiedBy in interface Specification<java.lang.String>
Parameters:
candidate - The candidate object
Returns:
true only if this specification is satisfied by/approves the given candidate (null is never approved)


Copyright © 2006-2009. All Rights Reserved.