|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.net.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 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.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)
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 URLFilterprotected final boolean equalsImpl(WildcardURLFilter filter)
public java.lang.String toString()
URLFiltertoString() 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
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.