public class FieldMatcherFilter extends Object implements LayoutFilter
| Constructor and Description |
|---|
FieldMatcherFilter()
Do nothing constructor, pattern and field must be set prior to use.
|
FieldMatcherFilter(Pattern pattern,
String field)
Initialises the matcher with all data needed.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<LayoutTO> |
filter(Collection<LayoutTO> layouts)
Filter a collection of layouts and return a sub-set of
layouts.
|
String |
getField()
The field of the layout that must match the pattern.
|
Pattern |
getNamespace()
The pattern that is being used to filter the name spaces.
|
void |
setField(String field)
The field of the layout that must match the pattern.
|
void |
setPattern(Pattern pattern)
Set the pattern to be used with the namespace.
|
public FieldMatcherFilter()
public Collection<LayoutTO> filter(Collection<LayoutTO> layouts)
LayoutFilterfilter in interface LayoutFilterlayouts - The layouts to be filtered.public Pattern getNamespace()
public void setPattern(Pattern pattern)
pattern - The pattern to be used.public String getField()
public void setField(String field)
field - The field of the layout that must match the pattern.Copyright © 2014. All Rights Reserved.