org.alfresco.util
Class OrCompositeNameMatcher

java.lang.Object
  extended by org.alfresco.util.OrCompositeNameMatcher
All Implemented Interfaces:
java.io.Serializable, NameMatcher

public class OrCompositeNameMatcher
extends java.lang.Object
implements NameMatcher, java.io.Serializable

A composite name matcher that matches if any of its member matchers match.

See Also:
Serialized Form

Constructor Summary
OrCompositeNameMatcher()
          Default constructor.
 
Method Summary
 boolean matches(java.lang.String name)
          Does the given name match, in whatever way the implementation defines.
 void setMatchers(java.util.List matchers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrCompositeNameMatcher

public OrCompositeNameMatcher()
Default constructor.

Method Detail

setMatchers

public void setMatchers(java.util.List matchers)

matches

public boolean matches(java.lang.String name)
Description copied from interface: NameMatcher
Does the given name match, in whatever way the implementation defines.

Specified by:
matches in interface NameMatcher
Parameters:
name - The name to check for matching.
Returns:
Whether the named matched.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.