|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--ch.elca.dependency.graph.AbstractGraphProcessor
|
+--ch.elca.dependency.graph.Filter
A Filter is responsible for filtering Nodes from a Graph.
Graph,
Node| Field Summary | |
protected boolean |
m_noRegexp
A flag, telling whether the specified regular expression could be successfully used for building a RE Program. |
protected org.apache.regexp.RE |
m_regexp
A RE (regular expression) associated with this
Aggregator. |
protected java.lang.String |
m_regexpString
A regexp String associated with this
Aggregator. |
| Fields inherited from class ch.elca.dependency.graph.AbstractGraphProcessor |
m_name |
| Constructor Summary | |
Filter()
Creates a new Filter instance. |
|
Filter(java.lang.String name,
java.lang.String regexpString)
Creates a new Filter instance with a name and a String
used to be used for building a RE (regular expression program). |
|
| Method Summary | |
java.lang.String |
getRegexp()
Get the regexp used to filter nodes. |
Graph |
process(Graph graph)
Filter nodes accordingl to a regexp. |
void |
setRegexp(java.lang.String regexpString)
Set a regular expression for filtering nodes. |
| Methods inherited from class ch.elca.dependency.graph.AbstractGraphProcessor |
getName, setName, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String m_regexpString
regexp String associated with this
Aggregator.
protected org.apache.regexp.RE m_regexp
RE (regular expression) associated with this
Aggregator.
protected boolean m_noRegexp
RE Program.
| Constructor Detail |
public Filter()
Filter instance.
public Filter(java.lang.String name,
java.lang.String regexpString)
Filter instance with a name and a String
used to be used for building a RE (regular expression program).
name - a String valueregexpString - a String valuegnu.regexp.RE| Method Detail |
public void setRegexp(java.lang.String regexpString)
regexpString - a String valuepublic java.lang.String getRegexp()
String valuepublic Graph process(Graph graph)
AbstractGraphProcessor.
graph - a Graph value
Graph valuegnu.regexp.RE
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||