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

ai.platon.pulsar.ql.h2.Values.kt Maven / Gradle / Ivy

The newest version!
package ai.platon.pulsar.ql.h2

import ai.platon.pulsar.dom.FeaturedDocument
import ai.platon.pulsar.ql.common.types.ValueDom
import org.jsoup.nodes.Element

fun domValue(document: FeaturedDocument): ValueDom {
    return ValueDom.get(document.unbox())
}

fun domValue(ele: Element): ValueDom {
    return ValueDom.get(ele)
}

fun docValue(dom: ValueDom): FeaturedDocument {
    return FeaturedDocument(dom.element.ownerDocument()!!)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy