org.alfresco.repo.avm.util
Class FileExtensionNameMatcher

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

public class FileExtensionNameMatcher
extends java.lang.Object
implements org.alfresco.util.NameMatcher, java.io.Serializable

NameMatcher that matches a list of extensions (case insensitively).

See Also:
Serialized Form

Constructor Summary
FileExtensionNameMatcher()
          Default constructor.
 
Method Summary
 boolean matches(java.lang.String name)
           
 void setExtensions(java.util.List extensions)
          Set the extensions case insensitively.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileExtensionNameMatcher

public FileExtensionNameMatcher()
Default constructor.

Method Detail

setExtensions

public void setExtensions(java.util.List extensions)
Set the extensions case insensitively.

Parameters:
extensions -

matches

public boolean matches(java.lang.String name)
Specified by:
matches in interface org.alfresco.util.NameMatcher


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