ru.curs.adocwrapper.inline.Inline.kt Maven / Gradle / Ivy
The newest version!
package ru.curs.adocwrapper.inline
open class Inline(var text: String?) : Comparable {
var type = InlineContentType.NormalText
init {
if (this.text.isNullOrBlank()) {
this.text = ""
}
}
open fun checkValid() {
}
override fun compareTo(other: Inline): Int {
return if (this.text!! > other.text.toString()) 1 else -1
}
override fun toString(): String {
return text!!
}
open fun toHabrMd(): String {
return toString()
}
open fun toText(): String {
return toString()
}
}