LarryHsiao/Vesta

View on GitHub
src/main/java/com/silverhetch/vesta/attached/tags/AttachedTags.kt

Summary

Maintainability
A
0 mins
Test Coverage
package com.silverhetch.vesta.attached.tags

import com.silverhetch.vesta.tag.Tag
import com.silverhetch.vesta.tag.uri.TagUri

/**
 * Represent a object that have tags.
 */
interface AttachedTags {
    /**
     * Used for initialize when application fire up.
     */
    fun init()

    /**
     * All the [AttachedTag] object
     */
    fun all(): Map<String, AttachedTag>

    /**
     * Attach new tag to this object by tag uri.
     */
    fun add(uri: TagUri)

    /**
     * Attach new tag to this object
     */
    fun add(tag: Tag)
}