|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.vub.cocompose.io.FileModelWriter
be.ac.vub.cocompose.io.xmi.XMIModelWriter
Writes the model to an XMI file.
Constructor Summary | |
XMIModelWriter()
Constructs an XMIModelWriter. |
Method Summary | |
ModelVisitor |
getStacked()
Gets the stacked visitor for the contained visitors. |
ContentHandler |
getXmlWriter()
Gets the xml writer. |
void |
setStacked(ModelVisitor stacked)
Sets a stacked visitor for the contained visitors. |
void |
setXmlWriter(ContentHandler xmlWriter)
Sets the xml writer. |
void |
write(Model model)
Writes the model to its URI. |
void |
writeXMI(Model model)
Writes the XMI representation of the given model to the xml writer. |
Methods inherited from class be.ac.vub.cocompose.io.FileModelWriter |
getOutputStream, getStreamWriter, setStreamWriter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMIModelWriter()
Method Detail |
public void write(Model model) throws IOException, ModelElementException
write
in interface ModelWriter
write
in class FileModelWriter
model
- - the model to write.
IOException
- - if the model could not be written.
ModelElementException
- - if a model element could not be written.public ContentHandler getXmlWriter()
public void setXmlWriter(ContentHandler xmlWriter)
xmlWriter
- - the xml writer.public void writeXMI(Model model) throws IOException, ModelElementException
model
- - the model to write.
IOException
- - if the model could not be written.
ModelElementException
- - if a model element could not be written.public ModelVisitor getStacked()
public void setStacked(ModelVisitor stacked)
stacked
- - the stacked visitor.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |