Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.ide.net
Interface URLFilter

All Known Implementing Classes:
ChangeListWindow.ScopeFilter, DefaultURLFilter, JDKUtil.JDKExeFilter, LegacyJDK.JDKExeFilter, ProfileMigrator, VCSURLPatternFilters, WildcardURLFilter

public interface URLFilter

An implementation of URLFilter can be set on an instance of URLChooser to prevent unwanted files from appearing in the directory listings.

See Also:
URLChooser, URLFileSystem.list(URL, URLFilter)

Method Summary
 boolean accept(java.net.URL url)
           
 boolean equals(java.lang.Object o)
          A concrete URLFilter must provide an implementation for the equals(...) method that compares the URLFilter to another one.
 java.lang.String toString()
          The implementation of toString() must return a short description that can be shown to the user describing what the filter is filter for.
 

Method Detail

accept

boolean accept(java.net.URL url)
Parameters:
url - The URL that is being filtered.
Returns:
true if this filter allows the specified URL is allowed to be displayed or included. Returns false otherwise.
Throws:
java.lang.NullPointerException - if the specified URL is null.

equals

boolean equals(java.lang.Object o)
A concrete URLFilter must provide an implementation for the equals(...) method that compares the URLFilter to another one. A return value of true means that both this URLFilter and the specified URLFilter will accept identical sets of URLs and that the descriptions used to identify the filters are equal.

Overrides:
equals in class java.lang.Object

toString

java.lang.String toString()
The implementation of toString() must return a short description that can be shown to the user describing what the filter is filter for. For example: "JPG and GIF images".

Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.