org.entityfs.util.zip
Class FilteringZipEntryInfoProvider

java.lang.Object
  extended by org.entityfs.util.zip.FilteringZipEntryInfoProvider
All Implemented Interfaces:
ZipEntryInfoProvider

public class FilteringZipEntryInfoProvider
extends Object
implements ZipEntryInfoProvider

This ZipEntryInfoProvider uses another provider to add information only to the entities that pass its entity Filter.

Instances of this class are immutable.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
FilteringZipEntryInfoProvider(Filter<? super EntityView> f, ZipEntryInfoProvider p)
           
 
Method Summary
 void addProperties(ZipEntry ze, Object o)
          Add properties to the ZipEntry object based on the properties of the entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteringZipEntryInfoProvider

public FilteringZipEntryInfoProvider(Filter<? super EntityView> f,
                                     ZipEntryInfoProvider p)
Method Detail

addProperties

public void addProperties(ZipEntry ze,
                          Object o)
Description copied from interface: ZipEntryInfoProvider
Add properties to the ZipEntry object based on the properties of the entity.

Specified by:
addProperties in interface ZipEntryInfoProvider
Parameters:
ze - The ZipEntry object to add properties to.
o - The object to add properties for. If this is a ReadLockable object, it is locked for reading when this method is called.