|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edugility.jpa.maven.plugin.URLFilter
public class URLFilter
A filter that can cull a Collection of URLs.
| Field Summary | |
|---|---|
private Set<String> |
excludes
The Plexus FileUtils-compatible Set of exclusion Strings. |
private Set<String> |
includes
The Plexus FileUtils-compatible Set of inclusion Strings. |
| Constructor Summary | |
|---|---|
URLFilter()
Creates a new URLFilter. |
|
| Method Summary | |
|---|---|
boolean |
accept(URL url)
Returns true if the supplied URL should be
accepted. |
Set<String> |
getExcludes()
Returns the Plexus FileUtils-compatible Set of exclusion Strings. |
Set<String> |
getIncludes()
Returns the Plexus FileUtils-compatible Set of inclusion Strings. |
void |
setExcludes(Set<String> excludes)
Sets the Plexus FileUtils-compatible Set of exclusion Strings. |
void |
setIncludes(Set<String> includes)
Sets the Plexus FileUtils-compatible Set of inclusion Strings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Set<String> includes
Set of inclusion Strings.
This field may be null at any point.
private Set<String> excludes
Set of exclusion Strings.
This field may be null at any point.
| Constructor Detail |
|---|
public URLFilter()
URLFilter.
| Method Detail |
|---|
public boolean accept(URL url)
true if the supplied URL should be
accepted. This implementation returns true if the
supplied URL is non-null.
Note: inclusion and exclusion does not yet work.
url - the URL to accept; may be null
true if the supplied URL should be
accepted; false otherwisepublic void setIncludes(Set<String> includes)
Set of inclusion Strings.
includes - the Set of Strings to set; may be
nullpublic Set<String> getIncludes()
Set of inclusion Strings.
This method may return null.
Set of inclusion Strings, or nullpublic void setExcludes(Set<String> excludes)
Set of exclusion Strings.
excludes - the Set of Strings to set; may be
nullpublic Set<String> getExcludes()
Set of exclusion Strings.
This method may return null.
Set of exclusion Strings, or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||