public class DefaultPropertyExtractor extends Object implements PropertyExtractor
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
errorProperties |
protected TextResource |
textResource |
| Constructor and Description |
|---|
DefaultPropertyExtractor()
Constructor for DefaultPropertyExtractor.
|
DefaultPropertyExtractor(TextResource textResource)
Constructor for DefaultPropertyExtractor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
extract(Object target,
String property)
extract.
|
String |
getPropertyIn(Collection<?> collection,
String property)
getPropertyIn.
|
Object |
getPropertyValue(Object target,
String property) |
protected String |
getText(String key)
getText.
|
protected String |
getText(String key,
String defaultVal)
getText.
|
TextResource |
getTextResource()
Getter for the field
textResource. |
void |
setTextResource(TextResource textResource) |
protected TextResource textResource
public DefaultPropertyExtractor()
Constructor for DefaultPropertyExtractor.
public DefaultPropertyExtractor(TextResource textResource)
Constructor for DefaultPropertyExtractor.
textResource - a i18n.TextResource object.public Object getPropertyValue(Object target, String property) throws Exception
getPropertyValue in interface PropertyExtractorExceptionpublic String getPropertyIn(Collection<?> collection, String property) throws Exception
getPropertyIn.
collection - a Collection object.property - a String object.String object.Exception - if any.public TextResource getTextResource()
Getter for the field textResource.
getTextResource in interface PropertyExtractori18n.TextResource object.public void setTextResource(TextResource textResource)
setTextResource in interface PropertyExtractorCopyright © 2005–2018 The Beangle Software. All rights reserved.