| |
|
| java.lang.Object org.openidex.search.SearchInfoFactory
SearchInfoFactory | final public class SearchInfoFactory (Code) | | Factory for creating SearchInfo objects.
See Also: SearchInfo since: org.openidex.util/3 3.3 author: Marian Petras |
SHARABILITY_FILTER | final public static FileObjectFilter SHARABILITY_FILTER(Code) | | filter that skips files and folders which are not sharable according
to the SharabilityQuery
See Also: org.netbeans.api.queries.SharabilityQuery See Also: SharabilityQuery |
VISIBILITY_FILTER | final public static FileObjectFilter VISIBILITY_FILTER(Code) | | filter that skips files and folders which are not visible according
to the VisibilityQuery
See Also: org.netbeans.api.queries.VisibilityQuery See Also: VisibilityQuery |
createCompoundSearchInfo | public static SearchInfo createCompoundSearchInfo(SearchInfo... delegates)(Code) | | Creates a SearchInfo compound of the given delegates.
It combines the delegates such that:
- its method
SearchInfo.canSearch returns
true if and only if at least one of the delegate's
canSearch() returns true
- its method
SearchInfo.objectsToSearch chains iterators
of the delegates, skipping those delegates whose
canSearch() method returns false
Parameters: delegates - delegates the compound SearchInfo shoulddelegate to created compound SearchInfo exception: java.lang.IllegalArgumentException - if the argument is null since: 3.13 |
createSearchInfo | public static SearchInfo createSearchInfo(FileObject folder, boolean recursive, FileObjectFilter[] filters)(Code) | | Creates a SearchInfo object for a given folder.
The returned SearchInfo object's method
SearchInfo.canSearch always returns true
and iterates through DataObject s found in the given
folder. Files and folders that do not pass any of the given filters
are skipped (not searched). If multiple filters are passed,
the filters are applied on each file/folder in the same order
as in the array passed to this method.
Parameters: folder - folder which should be searched Parameters: recursive - whether the folder's subfolders should be takeninto account Parameters: filters - filters to be used when searching;or null if no filters should be used SearchInfo object which iterates throughDataObject s found in the specified folderand (optionally) its subfolders See Also: FileObjectFilter |
createSearchInfo | public static SearchInfo createSearchInfo(FileObject[] folders, boolean recursive, FileObjectFilter[] filters)(Code) | | Creates a SearchInfo object for given folders.
The returned SearchInfo object's method
SearchInfo.canSearch always returns true
and iterates through DataObject s found in the given
folders. Files and folders that do not pass any of the given filters
are skipped (not searched). If multiple filters are passed,
the filters are applied on each file/folder in the same order
as in the array passed to this method.
Parameters: folders - folders which should be searched Parameters: recursive - whether the folders' subfolders should be takeninto account Parameters: filters - filters to be used when searching;or null if no filters should be used SearchInfo object which iterates throughDataObject s found in the specified foldersand (optionally) their subfolders See Also: FileObjectFilter |
createSearchInfoBySubnodes | public static SearchInfo createSearchInfoBySubnodes(Node node)(Code) | | Creates a SearchInfo object combining
SearchInfo objects returned by the node's subnodes.
Method
SearchInfo.canSearch of the resulting
SearchInfo objects returns true if and only if
at least one of the nodes is searchable
(its method canSearch() returns true ).
The iterator iterates through all DataObject s returned
by the subnode's SearchInfo iterators.
Parameters: node - node to create SearchInfo for SearchInfo object representing combinationof SearchInfo objects of the node's subnodes |
|
|
|