Package org.codelibs.fess.entity
Class ChatMessage.ChatSource
java.lang.Object
org.codelibs.fess.entity.ChatMessage.ChatSource
- All Implemented Interfaces:
Serializable
- Enclosing class:
ChatMessage
Represents a source document referenced in the chat response.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ChatSource(int index, Map<String, Object> doc) Creates a new chat source from a document map. -
Method Summary
Modifier and TypeMethodDescriptiongetDocId()Gets the document ID.getGoUrl()Gets the go link URL for navigation.intgetIndex()Gets the source index.Gets the source snippet.getTitle()Gets the source title.getUrl()Gets the source URL.Gets the ViewHelper-processed URL for display.voidSets the document ID.voidSets the go link URL for navigation.voidsetIndex(int index) Sets the source index.voidsetSnippet(String snippet) Sets the source snippet.voidSets the source title.voidSets the source URL.voidsetUrlLink(String urlLink) Sets the ViewHelper-processed URL for display.
-
Constructor Details
-
ChatSource
public ChatSource()Default constructor. -
ChatSource
Creates a new chat source from a document map.- Parameters:
index- the source indexdoc- the document map containing source data
-
-
Method Details
-
getIndex
public int getIndex()Gets the source index.- Returns:
- the source index
-
setIndex
public void setIndex(int index) Sets the source index.- Parameters:
index- the source index
-
getTitle
Gets the source title.- Returns:
- the source title
-
setTitle
Sets the source title.- Parameters:
title- the source title
-
getUrl
Gets the source URL.- Returns:
- the source URL
-
setUrl
Sets the source URL.- Parameters:
url- the source URL
-
getDocId
Gets the document ID.- Returns:
- the document ID
-
setDocId
Sets the document ID.- Parameters:
docId- the document ID
-
getSnippet
Gets the source snippet.- Returns:
- the source snippet
-
setSnippet
Sets the source snippet.- Parameters:
snippet- the source snippet
-
getUrlLink
Gets the ViewHelper-processed URL for display.- Returns:
- the URL link
-
setUrlLink
Sets the ViewHelper-processed URL for display.- Parameters:
urlLink- the URL link
-
getGoUrl
Gets the go link URL for navigation.- Returns:
- the go URL
-
setGoUrl
Sets the go link URL for navigation.- Parameters:
goUrl- the go URL
-