|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.configuration.Filters
public class Filters
Stores information about all Filter instances that should or should not be applied
to a model.
Filter,
Serialized Form| Constructor Summary | |
|---|---|
Filters()
|
|
| Method Summary | |
|---|---|
void |
addFilter(Filter filter)
Adds the filter to the underlying filters store. |
void |
addFilters(Filters filters)
Adds all Filter instances in the given filters
to this instance. |
Filter[] |
getFilters()
Gets the actual filters that belong to this filters instance. |
boolean |
isApply(java.lang.String value)
Determines whether or not the value should be applied. |
boolean |
isEmpty()
Indicates whether or not this model filters instance has any filtering defined. |
boolean |
match(java.lang.String value,
java.lang.String pattern)
Provides matching of simple wildcards. |
void |
setApplyAll(boolean applyAll)
Sets whether or not AndroMDA should apply all filters on a model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Filters()
| Method Detail |
|---|
public void setApplyAll(boolean applyAll)
applyAll - whether or not we should apply all filters true/falsepublic void addFilter(Filter filter)
filter - the Filter instance.public void addFilters(Filters filters)
Filter instances in the given filters
to this instance.
filters - the Filters instance to add.public Filter[] getFilters()
public boolean isApply(java.lang.String value)
value should be applied. If
applyAll is true, then this method will return false only if the Filter
corresponding to the value has apply set to false.
value - the name of the model filter to check.
public boolean isEmpty()
public boolean match(java.lang.String value,
java.lang.String pattern)
value - the value to match against.pattern - the pattern to check if the path matches.
value matches the given pattern, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||