|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.ide.net.DefaultURLFilter
public class DefaultURLFilter
A default implementation of URLFilter that performs filtering based on file extensions. If no extensions are associated with the URLFilter, then the URLFilter will accept all URLs.
| Constructor Summary | |
|---|---|
DefaultURLFilter(java.lang.String description)Creates a new filter with the associated description. |
|
DefaultURLFilter(java.lang.String description, java.lang.String extension)Creates a new filter with the associated description and the extension that is to be accepted by this filter. |
|
DefaultURLFilter(java.lang.String description, java.lang.String[] extensions)Creates a new filter with the associated description and the extension that is to be accepted by this filter. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.net.URL url) |
void |
addExtension(java.lang.String extension)Adds the specified extension to the list of extensions that are accepted by this filter. |
boolean |
equals(java.lang.Object o)A concrete URLFilter must provide an implementation for the equals(...) method that compares the URLFilter to another one. |
protected boolean |
equalsImpl(DefaultURLFilter filter) |
void |
setDescription(java.lang.String description)Sets the description of this URLFilter instance that will be shown to the user. |
java.lang.String |
toString()Returns the display string that is shown when the user is looking at a list of URLFilters to choose from. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultURLFilter(java.lang.String description)
URLs.
public DefaultURLFilter(java.lang.String description,
java.lang.String extension)
URLs.
description - A description of what this filter represents. The description will be displayed to the user.extension - The extension to filter for. The extension string must begin with a '.' if the '.' is part of the extension. If the extension is null or the empty string, then this filter will be initialized to accept all URLs.
public DefaultURLFilter(java.lang.String description,
java.lang.String[] extensions)
URLs. If any of the extensions in the specified array are null or the empty string, they will be skipped.
description - A description of what this filter represents. The description will be displayed to the user.extensions - The extensions to filter for. The extension strings must each begin with a '.' if the '.' is part of the accepted extension.| Method Detail |
|---|
public void addExtension(java.lang.String extension)
extension to the list of extensions that are accepted by this filter. The extension must begin with a '.' character, if the '.' character is actually part of the extension.extension - The extension to accept. For example ".jar", ".java", ".gif", etc.public void setDescription(java.lang.String description)
URLFilter instance that will be shown to the user. The string set on this method will be part of what is returned in the toString() method.public boolean accept(java.net.URL url)
accept in interface URLFilterurl - The URL that is being filtered.true if this filter allows the specified URL is allowed to be displayed or included. Returns false otherwise.public boolean equals(java.lang.Object o)
URLFilterURLFilter 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.equals in interface URLFilterequals in class java.lang.Objectprotected final boolean equalsImpl(DefaultURLFilter filter)
public java.lang.String toString()
URLFilters to choose from. The string is composed of the description, followed by a list of the associated extensions in parentheses. If no extensions are associated then "*.*" is shown in the parentheses.toString in interface URLFiltertoString in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||