1 package com.hughes.android.dictionary.parser;
3 import java.util.ArrayList;
4 import java.util.LinkedHashMap;
8 public class WikiWord {
13 final Map<String, StringBuilder> accentToPronunciation = new LinkedHashMap<String, StringBuilder>();
14 StringBuilder currentPronunciation = null;
19 final List<PartOfSpeech> partsOfSpeech = new ArrayList<WikiWord.PartOfSpeech>();
21 final Map<String, List<String>> otherSections = new LinkedHashMap<String, List<String>>();
23 public WikiWord(int depth) {
27 static class PartOfSpeech {
31 final List<Meaning> meaning = new ArrayList<WikiWord.Meaning>();
33 final List<TranslationSection> translationSections = new ArrayList<WikiWord.TranslationSection>();
35 final Map<String, String> otherSections = new LinkedHashMap<String, String>();
37 public PartOfSpeech(final int depth, String name) {
43 static class TranslationSection {
45 List<List<String>> translations = new ArrayList<List<String>>();
47 translations.add(new ArrayList<String>());
48 translations.add(new ArrayList<String>());
52 static class Meaning {
57 static class Example {
59 String exampleInEnglish;