package com.hughes.android.dictionary.parser; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; public class WikiWord { final int depth; String language; String pronunciation; boolean isLang1; boolean isLang2; final List partsOfSpeech = new ArrayList(); final Map> otherSections = new LinkedHashMap>(); public WikiWord(int depth) { this.depth = depth; } static class PartOfSpeech { final int depth; final List meaning = new ArrayList(); final List translationSections = new ArrayList(); final Map otherSections = new LinkedHashMap(); public PartOfSpeech(final int depth) { this.depth = depth; } } static class TranslationSection { String sense; List> translations = new ArrayList>(); { translations.add(new ArrayList()); translations.add(new ArrayList()); } } static class Meaning { String meaning; Example example; } static class Example { String example; String exampleInEnglish; } }