org.jboss.deployers.vfs.plugins.structure
Class MetaDataMatchFilter

java.lang.Object
  extended by org.jboss.deployers.vfs.plugins.structure.MetaDataMatchFilter
All Implemented Interfaces:
org.jboss.virtual.VirtualFileFilter, org.jboss.virtual.VirtualFileFilterWithAttributes

public class MetaDataMatchFilter
extends Object
implements org.jboss.virtual.VirtualFileFilterWithAttributes

Matches meta data

Version:
$Revision: 44223 $
Author:
adrian@jboss.org

Constructor Summary
MetaDataMatchFilter(String name, String suffix)
          Create a new MetaDataMatchFilter.
MetaDataMatchFilter(String name, String suffix, org.jboss.virtual.VisitorAttributes attributes)
          Create a new MetaDataMatchFilter.
 
Method Summary
 boolean accepts(org.jboss.virtual.VirtualFile file)
           
 org.jboss.virtual.VisitorAttributes getAttributes()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaDataMatchFilter

public MetaDataMatchFilter(String name,
                           String suffix)
Create a new MetaDataMatchFilter. using VisitorAttributes.LEAVES_ONLY

Parameters:
name - the name to exactly match
suffix - the suffix to partially match
Throws:
IllegalArgumentException - if both the name and suffix are null

MetaDataMatchFilter

public MetaDataMatchFilter(String name,
                           String suffix,
                           org.jboss.virtual.VisitorAttributes attributes)
Create a new MetaDataMatchFilter.

Parameters:
name - the name to exactly match
suffix - the suffix to partially match
attributes - the attributes, pass null to use VisitorAttributes.LEAVES_ONLY
Throws:
IllegalArgumentException - if both the name and suffix are null
Method Detail

getAttributes

public org.jboss.virtual.VisitorAttributes getAttributes()
Specified by:
getAttributes in interface org.jboss.virtual.VirtualFileFilterWithAttributes

accepts

public boolean accepts(org.jboss.virtual.VirtualFile file)
Specified by:
accepts in interface org.jboss.virtual.VirtualFileFilter

toString

public String toString()
Overrides:
toString in class Object


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