Package pt.webdetails.cdf.dd.model.core.writer

Examples of pt.webdetails.cdf.dd.model.core.writer.DefaultThingWriteContext


    if ( widget == null ) {
      return null;
    }

    IThingWriterFactory factory = new XmlThingWriterFactory();
    IThingWriteContext context = new DefaultThingWriteContext( factory, true );

    IThingWriter writer;
    try {
      writer = factory.getWriter( widget );
    } catch ( UnsupportedThingException ex ) {
View Full Code Here


      logger.error( "Error while obtaining the model writer from the factory.", ex );
      return null;
    }

    StringBuilder out = new StringBuilder();
    IThingWriteContext context = new DefaultThingWriteContext( factory, false );
    try {
      writer.write( out, context, model );
    } catch ( ThingWriteException ex ) {
      logger.error( "Error while writing the model to JS.", ex );
      return null;
View Full Code Here

TOP

Related Classes of pt.webdetails.cdf.dd.model.core.writer.DefaultThingWriteContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.