|
||||||||||
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 URL
s.
Field Summary | |
---|---|
private Set<String> |
excludes
The Plexus FileUtils-compatible Set of exclusion String s. |
private Set<String> |
includes
The Plexus FileUtils-compatible Set of inclusion String s. |
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 String s. |
Set<String> |
getIncludes()
Returns the Plexus FileUtils-compatible Set of inclusion String s. |
void |
setExcludes(Set<String> excludes)
Sets the Plexus FileUtils-compatible Set of exclusion String s. |
void |
setIncludes(Set<String> includes)
Sets the Plexus FileUtils-compatible Set of inclusion String s. |
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 String
s.
This field may be null
at any point.
private Set<String> excludes
Set
of exclusion String
s.
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 String
s.
includes
- the Set
of String
s to set; may be
null
public Set<String> getIncludes()
Set
of inclusion String
s.
This method may return null
.
Set
of inclusion String
s, or null
public void setExcludes(Set<String> excludes)
Set
of exclusion String
s.
excludes
- the Set
of String
s to set; may be
null
public Set<String> getExcludes()
Set
of exclusion String
s.
This method may return null
.
Set
of exclusion String
s, or null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |