|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.monnetproject.lemon.LemonSerializer
eu.monnetproject.lemon.impl.LemonSerializerImpl
public class LemonSerializerImpl
A serializer for in-memory lemon models
| Field Summary |
|---|
| Fields inherited from class eu.monnetproject.lemon.LemonSerializer |
|---|
remoteUpdateFactory |
| Constructor Summary | |
|---|---|
LemonSerializerImpl(LinguisticOntology lingOnto)
DO NOT USE!. |
|
| Method Summary | |
|---|---|
void |
close()
Close the connection to the serializer. |
LemonModel |
create()
Create a blank model. |
LemonModel |
create(URI context)
Deprecated. |
void |
moveLexicon(Lexicon lexicon,
LemonModel from,
LemonModel to)
Move a lexicon from one model to another. |
void |
read(LemonModel lm,
Reader source)
Read a lemon model putting the data in a given model |
LemonModel |
read(Reader source)
Read a lemon model from a given data source |
LexicalEntry |
readEntry(Reader source)
Read a single entry |
void |
write(LemonModel model,
Writer target)
Write a lemon model to a given data source |
void |
write(LemonModel lm,
Writer dt,
boolean xml)
Write a lemon model to a given data source |
void |
writeEntry(LemonModel model,
LexicalEntry entry,
LinguisticOntology lingOnto,
Writer target)
Write a single entry to a file |
void |
writeEntry(LemonModel lm,
LexicalEntry le,
LinguisticOntology lo,
Writer dt,
boolean xml)
Write a single entry to a file |
void |
writeLexicon(LemonModel model,
Lexicon lexicon,
LinguisticOntology lingOnto,
Writer target)
Write a single lexicon to a file |
void |
writeLexicon(LemonModel lm,
Lexicon lxcn,
LinguisticOntology lo,
Writer dt,
boolean xml)
Write a single lexicon to a file |
| Methods inherited from class eu.monnetproject.lemon.LemonSerializer |
|---|
modelFromURL, newInstance, newInstance, setRemoteUpdateFactory, writeLexiconDescription |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LemonSerializerImpl(LinguisticOntology lingOnto)
LemonSerializer.newInstance()
lingOnto - | Method Detail |
|---|
public LemonModel read(Reader source)
LemonSerializer
read in class LemonSerializer
public void write(LemonModel model,
Writer target)
LemonSerializer
write in class LemonSerializermodel - The model to writetarget - The target to write topublic LemonModel create()
LemonSerializer
create in class LemonSerializer@Deprecated public LemonModel create(URI context)
LemonSerializer
create in class LemonSerializercontext - The context of the model or null for no context
public void writeEntry(LemonModel model,
LexicalEntry entry,
LinguisticOntology lingOnto,
Writer target)
LemonSerializer
writeEntry in class LemonSerializermodel - The model to write fromentry - The entry to writelingOnto - The linguistic ontology (necessary to avoid following to
other entries)target - The target to write to
public void writeLexicon(LemonModel model,
Lexicon lexicon,
LinguisticOntology lingOnto,
Writer target)
LemonSerializer
writeLexicon in class LemonSerializermodel - The model to write fromlexicon - The lexicon to writelingOnto - The linguistic ontology (necessary to avoid following to
other entries)target - The target to write to
public void moveLexicon(Lexicon lexicon,
LemonModel from,
LemonModel to)
LemonSerializer
moveLexicon in class LemonSerializerlexicon - The lexicon to movefrom - The source model containing the lexiconto - The target model
public void read(LemonModel lm,
Reader source)
LemonSerializer
read in class LemonSerializerpublic LexicalEntry readEntry(Reader source)
LemonSerializer
readEntry in class LemonSerializer
public void write(LemonModel lm,
Writer dt,
boolean xml)
LemonSerializer
write in class LemonSerializerlm - The model to writedt - The target to write toxml - Write as XML?
public void writeEntry(LemonModel lm,
LexicalEntry le,
LinguisticOntology lo,
Writer dt,
boolean xml)
LemonSerializer
writeEntry in class LemonSerializerlm - The model to write fromle - The entry to writelo - The linguistic ontology (necessary to avoid following to
other entries)dt - The target to write toxml - Write as XML?
public void writeLexicon(LemonModel lm,
Lexicon lxcn,
LinguisticOntology lo,
Writer dt,
boolean xml)
LemonSerializer
writeLexicon in class LemonSerializerlm - The model to write fromlxcn - The lexicon to writelo - The linguistic ontology (necessary to avoid following to
other entries)dt - The target to write toxml - Write as XML?public void close()
LemonSerializer
close in class LemonSerializer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||