public abstract class AbstractSearchEntry extends AbstractLoggableObject implements SearchEntry
SearchEntry
interface.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 |
---|
AbstractSearchEntry()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
String |
getCreator()
This method gets the author of this entry.
|
Object |
getCustomId()
This method gets the value of the
custom-ID field . |
String |
getFieldAsString(String name)
This method is a shortcut for
. |
Long |
getId()
This method gets the ID used to identify this object.
|
Long |
getSize()
This method gets the size of the content.
|
String |
getSource()
This method gets the value of the
source field . |
String |
getText()
This method gets the value of the
text field . |
String |
getTitle()
This method gets the value of the
title field . |
String |
getType()
This method gets the value of the
type field . |
String |
getUri()
This method gets the value of the
SearchEntry.FIELD_URI . |
int |
hashCode() |
String |
toString() |
getLogger
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getField, getField, getFieldNames
public String getTitle()
title field
.getTitle
in interface SearchEntry
SearchEntry.FIELD_TITLE
public String getUri()
SearchEntry.FIELD_URI
.getUri
in interface SearchEntry
SearchEntry.FIELD_URI
public Long getId()
getId
in interface SearchEntry
getId
in interface AttributeReadId<Long>
null
if the entry is transient and has not yet been added to
the search-index (made persistent).SearchEntry.FIELD_ID
public Object getCustomId()
custom-ID field
.getCustomId
in interface SearchEntry
null
if NOT available.SearchEntry.FIELD_CUSTOM_ID
public String getText()
text field
.getText
in interface SearchEntry
SearchEntry.FIELD_TEXT
public String getType()
type field
.getType
in interface SearchEntry
null
if NOT available.SearchEntry.FIELD_TYPE
public String getCreator()
getCreator
in interface SearchEntry
null
if NOT available.SearchEntry.FIELD_CREATOR
public String getSource()
source field
.getSource
in interface SearchEntry
null
if NOT available.SearchEntry.FIELD_SOURCE
public Long getSize()
getSize
in interface SearchEntry
null
if NOT available.SearchEntry.FIELD_SIZE
public String getFieldAsString(String name)
getField
(name, String.class)
.getFieldAsString
in interface SearchEntry
name
- is the name
of the
requested field.null
if no field exists for the given
name
.Copyright © 2001–2016 mmm-Team. All rights reserved.