Search in sources :

Example 6 with XmlStoreProducerBuilderOperation

use of org.whole.lang.xml.util.XmlStoreProducerBuilderOperation in project whole by wholeplatform.

the class PersistenceTest method testMultipleBuilders2Xml.

@Test
public void testMultipleBuilders2Xml() {
    ModelBuilderOperation op = new ModelBuilderOperation();
    XmlStoreProducerBuilderOperation xmlOp = new XmlStoreProducerBuilderOperation(op);
    ((XmlStoreProducerBuilder) xmlOp.wGetBuilder()).buildStartDocument();
    new WholeLanguage().apply(xmlOp);
    ((XmlStoreProducerBuilder) xmlOp.wGetBuilder()).buildEndDocument();
    IEntity xmlModel = op.wGetResult();
    PrettyPrinterOperation.prettyPrint(xmlModel);
}
Also used : ModelBuilderOperation(org.whole.lang.builders.ModelBuilderOperation) XmlStoreProducerBuilder(org.whole.lang.xml.util.XmlStoreProducerBuilder) IEntity(org.whole.lang.model.IEntity) XmlStoreProducerBuilderOperation(org.whole.lang.xml.util.XmlStoreProducerBuilderOperation) WholeLanguage(org.whole.lang.misc.codebase.WholeLanguage) Test(org.junit.Test)

Aggregations

XmlStoreProducerBuilderOperation (org.whole.lang.xml.util.XmlStoreProducerBuilderOperation)6 IEntity (org.whole.lang.model.IEntity)5 ModelBuilderOperation (org.whole.lang.builders.ModelBuilderOperation)4 ModelTemplate (org.whole.lang.templates.ModelTemplate)4 XmlStoreProducerBuilder (org.whole.lang.xml.util.XmlStoreProducerBuilder)4 Test (org.junit.Test)3 PrintWriter (java.io.PrintWriter)2 ModelsModel (org.whole.lang.models.codebase.ModelsModel)2 IOException (java.io.IOException)1 OutputStream (java.io.OutputStream)1 OutputStreamWriter (java.io.OutputStreamWriter)1 PrintStream (java.io.PrintStream)1 Date (java.util.Date)1 StreamPersistenceProvider (org.whole.lang.codebase.StreamPersistenceProvider)1 WholeLanguage (org.whole.lang.misc.codebase.WholeLanguage)1 BPELModel (org.whole.lang.models.codebase.BPELModel)1 XmlPrettyPrinterBuilderOperation (org.whole.lang.xml.codebase.XmlPrettyPrinterBuilderOperation)1 XmlStoreConsumerVisitor (org.whole.lang.xml.util.XmlStoreConsumerVisitor)1