org.jboss.deployers.vfs.plugins.structure
Class MetaDataMatchFilter
java.lang.Object
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
MetaDataMatchFilter
public MetaDataMatchFilter(String name,
String suffix)
- Create a new MetaDataMatchFilter.
using
VisitorAttributes.LEAVES_ONLY
- Parameters:
name
- the name to exactly matchsuffix
- 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 matchsuffix
- the suffix to partially matchattributes
- the attributes, pass null to use VisitorAttributes.LEAVES_ONLY
- Throws:
IllegalArgumentException
- if both the name and suffix are null
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.