jtulach@336: /* jtulach@336: * To change this template, choose Tools | Templates jtulach@336: * and open the template in the editor. jtulach@336: */ jtulach@336: jtulach@336: package org.apidesign.anagram.impl.annotations; jtulach@336: jtulach@336: import java.util.Map; jtulach@336: import org.apidesign.anagram.api.WordLibrary; jtulach@336: jtulach@336: /** jtulach@336: * jtulach@336: * @author Jaroslav Tulach jtulach@336: */ jtulach@336: // BEGIN: anagram.api.WordsImpl jtulach@336: public class WordsImpl implements WordLibrary { jtulach@336: private Map map; jtulach@336: jtulach@336: private WordsImpl(Map m) { jtulach@336: this.map = m; jtulach@336: } jtulach@336: jtulach@336: public static WordsImpl create(Map attributes) { jtulach@336: return new WordsImpl(attributes); jtulach@336: } jtulach@336: jtulach@336: public String[] getWords() { jtulach@336: return (String[])map.get("words"); // NOI18N jtulach@336: } jtulach@336: } jtulach@336: // END: anagram.api.WordsImpl