org.jboss.kernel.api.dependency
Class NonNullMatcher

java.lang.Object
  extended by org.jboss.kernel.api.dependency.NonNullMatcher
All Implemented Interfaces:
Matcher
Direct Known Subclasses:
ClassMatcher

public abstract class NonNullMatcher
extends Object
implements Matcher

Author:
Ales Justin

Constructor Summary
NonNullMatcher()
           
 
Method Summary
protected abstract  boolean internalMatch(Object other)
          Do internal match.
 boolean match(Object other)
          Do we match this object other param.
 boolean needExactMatch()
          Do we need an exact match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonNullMatcher

public NonNullMatcher()
Method Detail

match

public boolean match(Object other)
Description copied from interface: Matcher
Do we match this object other param.

Specified by:
match in interface Matcher
Parameters:
other - the object to match
Returns:
true if we match the other param, false otherwise

needExactMatch

public boolean needExactMatch()
Description copied from interface: Matcher
Do we need an exact match. No match or single match is acceptable.

Specified by:
needExactMatch in interface Matcher
Returns:
true if matcher accepts only exact matches

internalMatch

protected abstract boolean internalMatch(Object other)
Do internal match.

Parameters:
other - the other param to match
Returns:
true if matched, false otherwise


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.