ExportContext

org.beangle.data.transfer.exporter.ExportContext
See theExportContext companion object
class ExportContext(val format: Format)

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def buildFileName(suggest: Option[String]): String
def exportAsString(converted: Boolean): this.type
def get[T](key: String, clazz: Class[T]): Option[T]
def getFormatter(propertyName: String, obj: Any): Option[Formatter]
def getItems(): Iterable[Any]
def getPropertyValue(target: Object, property: String): Any
def header(caption: Option[String], props: Seq[String]): this.type
def put(key: String, v: Any): this.type
def registerFormatter(clazz: Class[_], formatter: Formatter): ExportContext
def registerFormatter(propertyName: String, formatter: Formatter): ExportContext
def setItems(v: Iterable[Any]): this.type
def writeTo(os: OutputStream): Unit

Concrete fields

var attrs: Array[String]
var caption: Option[String]
var convertToString: Boolean

Convert all property to string before export

Convert all property to string before export

Attributes

val datas: Map[String, Any]
var extractor: PropertyExtractor
var fileName: String
val format: Format
var propertyFormatters: Map[String, Formatter]
val sharedValues: Map[String, String]
var template: URL
var titles: Array[String]
var typeFormatters: Map[Class[_], Formatter]