bjonnh
03/07/2019, 6:00 PM@Suppress("EnumEntryName")
enum class NlmCategory {
BACKGROUND, OBJECTIVE, METHODS, RESULTS, CONCLUSIONS, UNASSIGNED
}
@JsonIgnoreProperties(ignoreUnknown = true)
class AbstractText (
/*@JacksonXmlProperty(isAttribute = true)
val label: String? = null
*/
/*@JacksonXmlProperty(isAttribute = true, localName = "NlmCategory")
val nlmCategory: NlmCategory? = null*/
@JacksonXmlText
var value: String? = null
)
@JsonIgnoreProperties(ignoreUnknown = true)
data class Abstract (
@JacksonXmlElementWrapper(useWrapping = true)
//@JacksonXmlProperty(localName = "AbstractText")
@JsonProperty("AbstractText")
var abstractText: List<AbstractText> = listOf(),
@JsonProperty("CopyrightInformation")
val copyrightInformation: CopyrightInformation? = null
)