com.github.houbb.chinese.idiom.model.ChineseIdiomBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chinese-idiom Show documentation
Show all versions of chinese-idiom Show documentation
The chinese-idiom tools for chinese by java.
The newest version!
package com.github.houbb.chinese.idiom.model;
import com.github.houbb.chinese.common.api.IChineseInfo;
/**
* @author binbin.hou
* @since 0.0.1
*/
public class ChineseIdiomBean implements IChineseInfo {
/**
* 出处
* @since 0.0.1
*/
private String derivation;
/**
* 例子
* @since 0.0.1
*/
private String example;
/**
* 解释
* @since 0.0.1
*/
private String explanation;
/**
* 拼音
* @since 0.0.1
*/
private String pinyin;
/**
* 简写
* @since 0.0.1
*/
private String abbreviation;
/**
* 文本信息
* @since 0.0.2
*/
private String text;
@Override
public String derivation() {
return derivation;
}
public ChineseIdiomBean derivation(String derivation) {
this.derivation = derivation;
return this;
}
@Override
public String example() {
return example;
}
public ChineseIdiomBean example(String example) {
this.example = example;
return this;
}
@Override
public String text() {
return text;
}
public ChineseIdiomBean text(String text) {
this.text = text;
return this;
}
@Override
public String explanation() {
return explanation;
}
public ChineseIdiomBean explanation(String explanation) {
this.explanation = explanation;
return this;
}
public String pinyin() {
return pinyin;
}
public ChineseIdiomBean pinyin(String pinyin) {
this.pinyin = pinyin;
return this;
}
public String abbreviation() {
return abbreviation;
}
public ChineseIdiomBean abbreviation(String abbreviation) {
this.abbreviation = abbreviation;
return this;
}
@Override
public String toString() {
return "ChineseIdiomBean{" +
"derivation='" + derivation + '\'' +
", example='" + example + '\'' +
", explanation='" + explanation + '\'' +
", pinyin='" + pinyin + '\'' +
", abbreviation='" + abbreviation + '\'' +
", text='" + text + '\'' +
'}';
}
}