@Deprecated public class SearchContent extends Object implements IAttributeSetReader, Cloneable, Serializable
SearchContentField
objects.
This object is used to index searchable information by a search engine.
This object contains a collection of SearchContentField
objects, which can contain
more than one SearchContentField
object with the same name value.
Constructor and Description |
---|
SearchContent()
Deprecated.
Constructs an empty instance of
SearchContent . |
SearchContent(SearchContent searchContent)
Deprecated.
Constructs an instance of
SearchContent cloning the SearchContentField s
of another SearchContent object. |
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(SearchContentAttachment attachment)
Deprecated.
Adds an attachment to this search content.
|
void |
addField(SearchContentField field)
Deprecated.
Adds a
SearchContentField to the field collection. |
void |
clear()
Deprecated.
Removes all fields.
|
SearchContent |
clone()
Deprecated.
|
List<SearchContentField> |
getAllFields()
Deprecated.
Returns a collection of all fields.
|
Collection<SearchContentAttachment> |
getAttachments()
Deprecated.
Returns the attachments in this search content.
|
List<String> |
getAttributeValues(String attributeName)
Deprecated.
Returns all the values related to the attribute named as specified.
|
List<SearchContentField> |
getFields(String fieldName)
Deprecated.
Returns a collection of fields with the given name.
|
List<String> |
getFieldValues(String fieldName)
Deprecated.
Returns the values of all fields with the given name.
|
String |
getIdFieldValue()
Deprecated.
Returns the value of the identifier field.
|
String |
getSubtitleFieldValue()
Deprecated.
Returns the value of the subtitle field.
|
String |
getTextFieldValue()
Deprecated.
Returns the value of the text field.
|
String |
getTitleFieldValue()
Deprecated.
Returns the value of the title field.
|
String |
getUrlFieldValue()
Deprecated.
Returns the value of the URL field.
|
boolean |
hasAttribute(String attributeName)
Deprecated.
Checks if the attribute set contains at least one attribute with the specified name.
|
boolean |
hasField(String fieldName)
Deprecated.
Checks if there is at least one
SearchContentField object in the field collection
with the provided name. |
boolean |
hasIdField()
Deprecated.
Checks if there is, in the field collection, at least one
identifier field . |
boolean |
hasSubtitleField()
Deprecated.
Checks if there is, in the field collection, at least one
subtitle field . |
boolean |
hasTextField()
Deprecated.
Checks if there is, in the field collection, at least one
text field . |
boolean |
hasTitleField()
Deprecated.
Checks if there is, in the field collection, at least one
title field . |
boolean |
hasUrlField()
Deprecated.
Checks if there is, in the field collection, at least one
URL field . |
boolean |
isValid()
Deprecated.
|
void |
removeAttachment(SearchContentAttachment attachment)
Deprecated.
Removes an attachment from this search content.
|
void |
removeFields(String fieldName)
Deprecated.
Removes all fields with the given name.
|
public SearchContent()
SearchContent
.public SearchContent(SearchContent searchContent)
SearchContent
cloning the SearchContentField
s
of another SearchContent
object.searchContent
- public void addField(SearchContentField field)
SearchContentField
to the field collection.field
- public boolean hasField(String fieldName)
SearchContentField
object in the field collection
with the provided name.fieldName
- field name to be checkedpublic boolean hasIdField()
identifier field
.public boolean hasTitleField()
title field
.public boolean hasSubtitleField()
subtitle field
.public boolean hasUrlField()
URL field
.public boolean hasTextField()
text field
.public void removeFields(String fieldName)
fieldName
- name of the fields to be removed.public void clear()
public List<SearchContentField> getFields(String fieldName)
fieldName
- field namepublic List<SearchContentField> getAllFields()
public List<String> getFieldValues(String fieldName)
fieldName
- field nameList
, if there no value to return.public String getIdFieldValue()
SearchContentField
,
SearchContentField.FIELDNAME_ID
public String getTitleFieldValue()
SearchContentField
,
SearchContentField.FIELDNAME_TITLE
public String getSubtitleFieldValue()
SearchContentField
,
SearchContentField.FIELDNAME_SUBTITLE
public String getUrlFieldValue()
SearchContentField
,
SearchContentField.FIELDNAME_URL
public String getTextFieldValue()
SearchContentField
,
SearchContentField.FIELDNAME_TEXT
public boolean isValid()
public List<String> getAttributeValues(String attributeName)
IAttributeSetReader
getAttributeValues
in interface IAttributeSetReader
attributeName
- name of the attribute.List
if there is no value to return.public boolean hasAttribute(String attributeName)
IAttributeSetReader
hasAttribute
in interface IAttributeSetReader
attributeName
- name of the attribute.public SearchContent clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public Collection<SearchContentAttachment> getAttachments()
public void addAttachment(SearchContentAttachment attachment)
attachment
- the attachment.public void removeAttachment(SearchContentAttachment attachment)
attachment
- the attachment to remove.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.