package org.swtk.common.dict.dto.wiktionary;

import java.util.ArrayList;
import java.util.Collection;

import org.junit.Ignore;
import org.swtk.common.dict.dto.wiktionary.adapter.EtymologyAdapter;

import com.google.gson.annotations.Expose;
import com.trimc.blogger.commons.utils.string.StringUtils;

public class Etymology {

	@Expose
	private String text;

	@Expose
	private Collection<String> languages;

	public Collection<String> getLanguages() {
		if (null == languages) setLanguages(new ArrayList<String>());
		return languages;
	}

	public String getText() {
		return text;
	}

	@Override
	public int hashCode() {
		return this.toString().hashCode();
	}

	@Ignore
	public boolean hasLanguages() {
		return !getLanguages().isEmpty();
	}

	@Ignore
	public boolean hasText() {
		return StringUtils.hasValue(getText());
	}

	public void setLanguages(Collection<String> languages) {
		this.languages = languages;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Override
	public String toString() {
		return EtymologyAdapter.toString(this);
	}
}

@@ -339,27 +339,53 @@
 private 
-String text
+Collection%3CTermInfluence%3E influencers
 ;%0A%0A%09@Exp
@@ -428,16 +428,202 @@
 uages;%0A%0A
+%09@Expose%0A%09private String text;%0A%0A%09public Collection%3CTermInfluence%3E getInfluencers() %7B%0A%09%09if (null == influencers) setInfluencers(new ArrayList%3CTermInfluence%3E());%0A%09%09return influencers;%0A%09%7D%0A%0A
 %09public 
@@ -1030,24 +1030,131 @@
 ext());%0A%09%7D%0A%0A
+%09public void setInfluencers(Collection%3CTermInfluence%3E influencers) %7B%0A%09%09this.influencers = influencers;%0A%09%7D%0A%0A
 %09public void

update etym dto