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; final Map accentToPronunciation = new LinkedHashMap(); StringBuilder currentPronunciation = null; 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 String name; final List meaning = new ArrayList(); final List translationSections = new ArrayList(); final Map otherSections = new LinkedHashMap(); public PartOfSpeech(final int depth, String name) { this.depth = depth; this.name = name; } } 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; } }