|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.net.WildcardURLFilter
public class WildcardURLFilter
A URLFilter
that provides wildcard behavior.
Constructor Summary | |
---|---|
WildcardURLFilter(java.lang.String wildcard) |
|
WildcardURLFilter(java.lang.String wildcard, boolean isCaseSensitive) |
|
WildcardURLFilter(java.lang.String wildcard, boolean isCaseSensitive, java.lang.String description) |
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. |
protected boolean |
equalsImpl(WildcardURLFilter filter) |
static boolean |
hasWildcard(java.lang.String expression) |
static java.lang.String |
makeLiteral(java.lang.String string) Escapes all non-alphanumeric characters in the specified string and returns the resulting regular expression literal. |
protected boolean |
match(java.lang.String str) |
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. |
static java.lang.String |
wildcard2Regexp(java.lang.String wildcard) Converts the specified wildcard into a regular expression. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WildcardURLFilter(java.lang.String wildcard)
public WildcardURLFilter(java.lang.String wildcard, boolean isCaseSensitive)
public WildcardURLFilter(java.lang.String wildcard, boolean isCaseSensitive, java.lang.String description)
Method Detail |
---|
public boolean accept(java.net.URL url)
accept
in interface URLFilter
url
- The URL
that is being filtered.true
if this filter allows the specified URL
is allowed to be displayed or included. Returns false
otherwise.protected boolean match(java.lang.String str)
public static boolean hasWildcard(java.lang.String expression)
public static java.lang.String wildcard2Regexp(java.lang.String wildcard)
public static java.lang.String makeLiteral(java.lang.String string)
public boolean equals(java.lang.Object o)
URLFilter
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 URL
s and that the descriptions used to identify the filters are equal.equals
in interface URLFilter
equals
in class java.lang.Object
protected final boolean equalsImpl(WildcardURLFilter filter)
public java.lang.String toString()
URLFilter
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".toString
in interface URLFilter
toString
in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |