package net.cherokeedictionary.model;

import java.util.ArrayList;
import java.util.List;

public class DictionaryEntry {
	public int id;
	public String source;
	public String pos;
	
	public List<EntryForm> forms=new ArrayList<>();
	public List<String> definitions=new ArrayList<>();
	public List<EntryExample> examples=new ArrayList<>();
	public List<Note> notes=new ArrayList<>();
	public List<Crossreference> crossreferences=new ArrayList<>();
	
	public static class EntryForm {
		public String syllabary;
		public String pronunciation;
		public String translit;
	}
	
	public static class EntryExample {
		public String syllabary;
		public String translit;
		public String english;
	}
	
	public static class Note {
		public String note;
	}
	
	public static class Crossreference {
		public String crossReference;
	}
}

@@ -475,16 +475,313 @@
 yForm %7B%0A
+%09%09public EntryForm() %7B%0A%09%09%7D%0A%09%09public EntryForm(EntryFormType formType, String syllabary, String pronunciation, String latin) %7B%0A%09%09%09this.formType=formType;%0A%09%09%09this.syllabary=syllabary;%0A%09%09%09this.pronunciation=pronunciation;%0A%09%09%09this.latin=latin;%0A%09%09%7D%0A%09%09public EntryFormType formType=EntryFormType.Other;%0A
 %09%09public
@@ -846,24 +846,21 @@
  String 
-translit
+latin
 ;%0A%09%7D%0A%09%0A%09
@@ -895,32 +895,45 @@
 mple %7B%0A%09%09public 
+EntryExample(
 String syllabary
@@ -936,158 +936,630 @@
 bary
-;%0A%09%09public String translit;%0A%09%09public String english;%0A%09%7D%0A%09%0A%09public static class Note %7B%0A%09%09public String note;%0A%09%7D%0A%09%0A%09public static class Crossreference %7B
+, String latin, String english) %7B%0A%09%09%09this.syllabary=syllabary;%0A%09%09%09this.latin=latin;%0A%09%09%09this.english=english;%0A%09%09%7D%0A%09%09public String syllabary;%0A%09%09public String latin;%0A%09%09public String english;%0A%09%7D%0A%09%0A%09public static enum EntryFormType %7B%0A%09%09Verb3rdPrc, Verb1stPrc, Verb3rdPast, Verb3rdHab, Verb2ndImp, Verb3rdImp, Verb3rdInf, Other;%0A%09%7D%0A%09%0A%09public static class Note %7B%0A%09%09public Note() %7B%0A%09%09%7D%0A%09%09public Note(String note) %7B%0A%09%09%09this.note=note;%0A%09%09%7D%0A%0A%09%09public String note;%0A%09%7D%0A%09%0A%09public static class Crossreference %7B%0A%09%09public Crossreference() %7B%0A%09%09%7D%0A%09%09public Crossreference(String crossreferencet) %7B%0A%09%09%09this.crossReference=crossreferencet;%0A%09%09%7D%0A
 %0A%09%09p

tag each form with its type