|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.onemind.commons.relabean.serialize.BeanModelWriter
A BeanModelWriter writes bean models, based on as BeanModelDescriptor, into XML. In addition, it can also write out the meta-model of the bean model.
Constructor Summary | |
BeanModelWriter(RelationalBeanModel model,
NameBinding binding)
{@inheritDoc} |
Method Summary | |
NameBinding |
getBinding()
Return the binding |
RelationalBeanModel |
getModel()
Get the model |
void |
setBinding(NameBinding binding)
Set the binding |
void |
setModel(RelationalBeanModel model)
Set the model |
void |
writeMetaModel(java.io.Writer w,
java.lang.Class modelRoot)
Write the meta model from starting from the root class |
void |
writeMetaModel(java.io.Writer w,
java.util.Collection modelRoots)
Write multiple meta model from given model root classes |
void |
writeModel(java.io.Writer writer,
java.util.Collection objects)
Write the model |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BeanModelWriter(RelationalBeanModel model, NameBinding binding)
Method Detail |
public void writeMetaModel(java.io.Writer w, java.lang.Class modelRoot) throws java.io.IOException
w
- the writermodelRoot
- the model root class
java.io.IOException
- if there's IO problempublic void writeMetaModel(java.io.Writer w, java.util.Collection modelRoots) throws java.io.IOException
w
- the writermodelRoots
- the model root classes
java.io.IOException
- if there's IO problempublic void writeModel(java.io.Writer writer, java.util.Collection objects) throws java.io.IOException
writer
- the writerobjects
- the objects
java.io.IOException
- if there's IO problempublic NameBinding getBinding()
public RelationalBeanModel getModel()
public void setBinding(NameBinding binding)
binding
- the bindingpublic void setModel(RelationalBeanModel model)
model
- the model
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |