PageRenderTime 50ms CodeModel.GetById 41ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/ictclas4j/src/org/ictclas4j/bean/Pronun.java

http://ictclas4j.googlecode.com/
Java | 49 lines | 31 code | 12 blank | 6 comment | 2 complexity | d1041db8d4a90c88690b12c6c3c2f520 MD5 | raw file
 1package org.ictclas4j.bean;
 2
 3import java.util.ArrayList;
 4
 5/**
 6 * GBK??????????????????????????
 7 * 
 8 * @author sinboy
 9 * 
10 */
11public class Pronun {
12	private String word;//??
13
14	private String pronun;//??
15
16	private ArrayList<Integer> homophonyList;//???????
17
18	public String getGbkID() {
19		return word;
20	}
21
22	public void setWord(String word) {
23		this.word = word;
24	}
25
26	public ArrayList<Integer> getHomophonyList() {
27		return homophonyList;
28	}
29
30	public void setHomophonyList(ArrayList<Integer> homophonyList) {
31		this.homophonyList = homophonyList;
32	}
33
34	public String getPronun() {
35		return pronun;
36	}
37
38	public void setPronun(String pronun) {
39		this.pronun = pronun;
40	}
41	
42	public void addHomophony(int index){
43		if(homophonyList==null)
44			homophonyList=new ArrayList<Integer>();
45		if(!homophonyList.contains(index))
46			homophonyList.add(index);
47	}
48
49}