Package jadex.base
Class ModelFileFilter
- java.lang.Object
-
- jadex.base.ModelFileFilter
-
- All Implemented Interfaces:
IAsyncFilter
public class ModelFileFilter extends java.lang.Object implements IAsyncFilter
Filter for Jadex component models. Is so complicated because it has to work locally and must be transferable.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jadex.commons.IAsyncFilter
IAsyncFilter.AlwaysFilter<E>, IAsyncFilter.NeverFilter<E>
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
all
The all selected flag.protected IExternalAccess
exta
The external access.protected java.util.Map<java.net.URL,IResourceIdentifier>
rids
The resource identifiers of the tree's root entries.-
Fields inherited from interface jadex.commons.IAsyncFilter
ALWAYS, NEVER
-
-
Constructor Summary
Constructors Constructor Description ModelFileFilter()
Create a new filter.ModelFileFilter(boolean all, java.util.Map<java.net.URL,IResourceIdentifier> rids, IExternalAccess exta)
Create a new filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Boolean>
filter(java.lang.Object obj)
Test if object is accepted by filter.IExternalAccess
getExternalAccess()
Get the external access.java.util.Map<java.net.URL,IResourceIdentifier>
getResourceIdentifiers()
Get the resource identifiers for the root path entries.boolean
isAll()
Get the all.void
setAll(boolean all)
Set the all.void
setExternalAccess(IExternalAccess exta)
Set the external access.void
setResourceIdentifiers(java.util.Map<java.net.URL,IResourceIdentifier> rids)
Set the resource identifiers for the root path entries.
-
-
-
Field Detail
-
all
protected boolean all
The all selected flag.
-
rids
protected java.util.Map<java.net.URL,IResourceIdentifier> rids
The resource identifiers of the tree's root entries.
-
exta
protected IExternalAccess exta
The external access.
-
-
Constructor Detail
-
ModelFileFilter
public ModelFileFilter()
Create a new filter.
-
ModelFileFilter
public ModelFileFilter(boolean all, java.util.Map<java.net.URL,IResourceIdentifier> rids, IExternalAccess exta)
Create a new filter.
-
-
Method Detail
-
setAll
public void setAll(boolean all)
Set the all.- Parameters:
all
- The all to set.
-
isAll
public boolean isAll()
Get the all.- Returns:
- the all.
-
getResourceIdentifiers
public java.util.Map<java.net.URL,IResourceIdentifier> getResourceIdentifiers()
Get the resource identifiers for the root path entries.
-
setResourceIdentifiers
public void setResourceIdentifiers(java.util.Map<java.net.URL,IResourceIdentifier> rids)
Set the resource identifiers for the root path entries.
-
getExternalAccess
public IExternalAccess getExternalAccess()
Get the external access.- Returns:
- The external access.
-
setExternalAccess
public void setExternalAccess(IExternalAccess exta)
Set the external access.- Parameters:
exta
- The external acccess.
-
filter
public IFuture<java.lang.Boolean> filter(java.lang.Object obj)
Test if object is accepted by filter.- Specified by:
filter
in interfaceIAsyncFilter
- Parameters:
obj
- The object to filter.- Returns:
- True, if ok.
-
-