All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.model.structure.SearchResult.kt Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.model.structure

import com.fasterxml.jackson.annotation.JsonIgnore
import java.net.URI

/**
 * Result for a research
 */
class SearchResult
@JvmOverloads
constructor(
        /**
         * Short title
         */
        val title: String,
        /**
         * Description linked to the item being found
         */
        val description: String,
        /**
         * API access point
         */
        val uri: URI,
        /**
         * Web access point
         */
        val page: URI,
        /**
         * Score for the search
         */
        val accuracy: Double,
        /**
         * Type of result
         */
        val type: SearchResultType,
        /**
         * Meta-data which can be used internally
         */
        @get:JsonIgnore
        val data: Map? = null
) {
    companion object {
        const val SEARCH_RESULT_ITEM = "item"
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy