|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.princeton.wordnet.pojos.dom4j.Pojo2DomAdapter
public class Pojo2DomAdapter
Pojo to DOM adapter
Constructor Summary | |
---|---|
Pojo2DomAdapter()
|
Method Summary | |
---|---|
static org.dom4j.Document |
makeDocument(edu.princeton.wordnet.pojos.Word thisWord)
Make document |
static org.dom4j.Element |
makeLexLink(edu.princeton.wordnet.pojos.LexLink thisLink)
Make lexical link element |
static java.lang.String |
makeName(java.lang.String thisName)
Tweak name so that is matches XML element tag |
static org.dom4j.Element |
makeSemLink(edu.princeton.wordnet.pojos.SemLink thisLink)
Make semantic link element |
static org.dom4j.Element |
makeSense(edu.princeton.wordnet.pojos.Sense thisSense)
Make sense element |
static org.dom4j.Element |
makeSynset(edu.princeton.wordnet.pojos.Synset thisSynset,
boolean expandLinks)
Make synset element |
static org.dom4j.Element |
makeWord(edu.princeton.wordnet.pojos.Word thisWord,
boolean expandSenses)
Make word element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Pojo2DomAdapter()
Method Detail |
---|
public static org.dom4j.Document makeDocument(edu.princeton.wordnet.pojos.Word thisWord)
thisWord
- word
public static org.dom4j.Element makeWord(edu.princeton.wordnet.pojos.Word thisWord, boolean expandSenses)
thisWord
- wordexpandSenses
- whether to expand senses
public static org.dom4j.Element makeSense(edu.princeton.wordnet.pojos.Sense thisSense)
thisSense
- sense
public static org.dom4j.Element makeSynset(edu.princeton.wordnet.pojos.Synset thisSynset, boolean expandLinks)
thisSynset
- synsetexpandLinks
- whether to expand links
public static org.dom4j.Element makeSemLink(edu.princeton.wordnet.pojos.SemLink thisLink)
thisLink
- semantic link
public static org.dom4j.Element makeLexLink(edu.princeton.wordnet.pojos.LexLink thisLink)
thisLink
- lexical link
public static java.lang.String makeName(java.lang.String thisName)
thisName
- name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |