public abstract class BasicSearchEntry extends AbstractSearchEntry
SearchEntry interface.| Modifier and Type | Field and Description |
|---|---|
private SearchDependencies |
searchDependencies |
private SearchFields |
searchFields |
FIELD_CREATOR, FIELD_CUSTOM_ID, FIELD_ID, FIELD_KEYWORDS, FIELD_LANGUAGE, FIELD_SIZE, FIELD_SOURCE, FIELD_TEXT, FIELD_TITLE, FIELD_TYPE, FIELD_URI| Constructor and Description |
|---|
BasicSearchEntry(SearchFields searchFields,
SearchDependencies searchDependencies)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getField(String name)
This method is a generic accessor for fields of this
entry. |
<T> T |
getField(String name,
Class<T> type)
This method is a generic accessor for fields of this
entry with a specific
type. |
protected abstract Object |
getFieldRaw(String name) |
protected SearchDependencies |
getSearchDependencies()
This method gets the
SearchDependencies. |
protected SearchFields |
getSearchFields()
This method gets the
SearchFields. |
equals, getCreator, getCustomId, getFieldAsString, getId, getSize, getSource, getText, getTitle, getType, getUri, hashCode, toStringgetLoggerclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFieldNamesprivate final SearchDependencies searchDependencies
getSearchDependencies()private final SearchFields searchFields
getSearchFields()public BasicSearchEntry(SearchFields searchFields, SearchDependencies searchDependencies)
searchFields - are the SearchFields.searchDependencies - are the SearchDependencies.protected SearchFields getSearchFields()
SearchFields.SearchFields.protected SearchDependencies getSearchDependencies()
SearchDependencies.SearchDependencies.protected abstract Object getFieldRaw(String name)
name - is the name of the
requested field.getField(String)public Object getField(String name)
entry. For the predefine fields
(see FIELD_* constants like SearchEntry.FIELD_TEXT) there are specific getter methods like
SearchEntry.getText().name - is the name of the
requested field.type.SearchEntry.getField(String, Class)public <T> T getField(String name, Class<T> type)
entry with a specific
type. String will always work. Other types have to be compatible to the
field type (or a
RuntimeException will be thrown).T - is the generic type expected for the requested field-value (see parameter type).name - is the name of the
requested field.type - is the type of the requested field.null if no field exists for the given
name.Copyright © 2001–2016 mmm-Team. All rights reserved.