public class Entry extends FacetsContainer implements HasFacets, java.lang.Cloneable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Entry.Field |
static class |
Entry.FieldsHolder |
Modifier and Type | Method and Description |
---|---|
void |
addHitInfo(java.lang.String key,
java.lang.String value)
Helper which add a Hit Info to the Entry
|
void |
addMeta(Meta meta)
Helper which add a given Meta object to the Entry
|
void |
addMeta(java.lang.String name,
java.lang.String value)
Helper which add a new Meta to the Entry
|
void |
addMeta(java.lang.String name,
java.lang.String value,
HighlightInterval[] highlight)
Helper to create a Meta in the current Entry.
|
void |
addMeta(java.lang.String name,
java.lang.String value,
MetaValue.HighlightInterval[] highlight)
Deprecated.
as of 2013x release, replaced by
addMeta(String, String, HighlightInterval[]) . |
void |
addSubfeed(ResultFeed subFeed)
Adds a given sub-feed to this entry.
|
void |
addUri(java.lang.String uriName,
java.lang.String uri)
Helper which add an URI to the Entry
|
java.lang.Object |
clone() |
java.lang.String |
getContent()
Returns the entry content (e.g: text for cloudview)
|
java.lang.String |
getDataModelClass()
Returns the data model class of the entry
|
java.lang.String |
getEntryUri()
Returns the entry URI
|
Feed |
getFeed()
internal use only
|
com.exalead.access.feedapi.eval.mel.extension.AbstractMELType.FieldsHolder |
getFields() |
com.exalead.access.feedapi.eval.mel.extension.types.MELFlags |
getFlags() |
java.lang.String |
getId()
Returns the entry id (eg: the id for cloudview)
|
java.lang.String |
getImage()
Returns the entry image
|
java.util.Map<java.lang.String,java.lang.String> |
getInfos()
Returns Entry informations
|
Meta |
getMeta(java.lang.String name)
Returns a Meta
|
java.util.LinkedHashMap<java.lang.String,Meta> |
getMetas()
Returns an HashMap of Meta.
|
ResultFeed |
getParentFeed()
Returns the parent feed of this entry
|
java.util.List<ResultFeed> |
getSubfeeds()
Returns a list of subfeeds
|
java.lang.String |
getTitle()
Returns the entry title
|
java.util.List<com.exalead.cv360.generics.Pair<java.lang.String,java.lang.String>> |
getUris()
Returns a list of URIs
|
boolean |
isRootEntry()
Return whether this entry is the Top level one or not.
|
void |
setContent(java.lang.String content) |
void |
setEntryUri(java.lang.String entryUri) |
void |
setFeed(Feed feed)
internal use only
|
void |
setId(java.lang.String id) |
void |
setImage(java.lang.String image) |
void |
setInfos(java.util.Map<java.lang.String,java.lang.String> infos) |
void |
setMetas(java.util.LinkedHashMap<java.lang.String,Meta> metas) |
void |
setParentFeed(ResultFeed parentFeed) |
void |
setRootEntry(boolean rootEntry) |
ResultFeed |
setSubfeed(int index,
ResultFeed subFeed,
boolean force)
Replaces the sub-feed at the specified position in the sub-feed list of this entry with the specified sub-feed.
|
void |
setTitle(java.lang.String title) |
addFacet, categoryIterator, categoryIterator, getAssociatedValue, getFacet, getFacets, getFacetsMap, getNormalizedFacet, hasFacet, hasNormalizedFacet
accept, collateTo, rawStringValue, resolveField, resolveOperation, setFlags, stringValue, stringValue, visit, visitBoolean, visitCategory, visitCategory, visitFacet, visitFacet, visitFeed, visitList, visitMeta, visitNumber, visitString, visitUnknown
public java.lang.String getId()
public void setId(java.lang.String id)
public java.util.Map<java.lang.String,java.lang.String> getInfos()
public void setInfos(java.util.Map<java.lang.String,java.lang.String> infos)
public java.util.List<com.exalead.cv360.generics.Pair<java.lang.String,java.lang.String>> getUris()
public java.util.List<ResultFeed> getSubfeeds()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getImage()
public void setImage(java.lang.String image)
public java.lang.String getContent()
public void setContent(java.lang.String content)
public java.lang.String getEntryUri()
public void setEntryUri(java.lang.String entryUri)
public java.lang.String getDataModelClass()
public java.util.LinkedHashMap<java.lang.String,Meta> getMetas()
public void setMetas(java.util.LinkedHashMap<java.lang.String,Meta> metas)
public boolean isRootEntry()
public void setRootEntry(boolean rootEntry)
public Meta getMeta(java.lang.String name)
name
- Meta namepublic void addMeta(java.lang.String name, java.lang.String value)
name
- Meta namevalue
- Meta value@Deprecated public void addMeta(java.lang.String name, java.lang.String value, MetaValue.HighlightInterval[] highlight)
addMeta(String, String, HighlightInterval[])
.public void addMeta(java.lang.String name, java.lang.String value, HighlightInterval[] highlight)
name
- value
- highlight
- public void addMeta(Meta meta)
meta
- public void addHitInfo(java.lang.String key, java.lang.String value)
key
- value
- public void addUri(java.lang.String uriName, java.lang.String uri)
uriName
- uri
- public void addSubfeed(ResultFeed subFeed)
subFeed
- the given sub-feedpublic ResultFeed setSubfeed(int index, ResultFeed subFeed, boolean force)
index
- index of the sub-feed to replacesubFeed
- sub-feed to be stored at the specified positionforce
- true to append null feeds before the specified position if position >= number of sub-feeds, false otherwise.public ResultFeed getParentFeed()
public void setParentFeed(ResultFeed parentFeed)
public void setFeed(Feed feed)
public Feed getFeed()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class FacetsContainer
java.lang.CloneNotSupportedException
public com.exalead.access.feedapi.eval.mel.extension.types.MELFlags getFlags()
getFlags
in interface com.exalead.access.feedapi.eval.mel.extension.HasMELFlags
getFlags
in class com.exalead.access.feedapi.eval.mel.extension.AbstractMELType
public com.exalead.access.feedapi.eval.mel.extension.AbstractMELType.FieldsHolder getFields()
getFields
in class FacetsContainer
Copyright © 2021 Dassault Systèmes, All Rights Reserved.