org.apache.openjpa.lib.meta
Class SuffixMetaDataFilter

java.lang.Object
  extended by org.apache.openjpa.lib.meta.SuffixMetaDataFilter
All Implemented Interfaces:
MetaDataFilter

public class SuffixMetaDataFilter
extends Object
implements MetaDataFilter

Filters metadata iteration based on resource name suffix.

Author:
Abe White

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.openjpa.lib.meta.MetaDataFilter
MetaDataFilter.Resource
 
Constructor Summary
SuffixMetaDataFilter(String suffix)
          Constructor; supply suffix to match against.
 
Method Summary
 boolean matches(MetaDataFilter.Resource rsrc)
          Return whether the given resource passes the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuffixMetaDataFilter

public SuffixMetaDataFilter(String suffix)
Constructor; supply suffix to match against.

Method Detail

matches

public boolean matches(MetaDataFilter.Resource rsrc)
Description copied from interface: MetaDataFilter
Return whether the given resource passes the filter.

Specified by:
matches in interface MetaDataFilter


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.