Package org.jostraca

Examples of org.jostraca.WriterFormat


  protected void processImpl( Template pTemplate ) {
    Template    template   = pTemplate;
    PropertySet tmps       = pTemplate.getMergedPropertySet();
    SectionSet  sectionSet = template.getSectionSet();

    WriterFormat wf = makeWriterFormat( tmps );

    modifySections( wf.getSource(), sectionSet, tmps );

    String codeWriterSource = insertText( wf.getPath(), wf.getSource(), sectionSet, tmps );

    // perform some text transformations after code writer has been generated
    codeWriterSource = postProcess( codeWriterSource, tmps );

    String codeWriterPath    = createCodeWriterPath( tmps );
View Full Code Here


  }
 
 
  public WriterFormat getFormat( PropertySet pPropertySet ) throws Exception {
    String formatname = pPropertySet.get(Property.main_CodeWriterFormat);
    WriterFormat wf = (WriterFormat) mFormatMap.get( formatname );
   
    if( null == wf ) {
      wf = load( pPropertySet );
    }
   
View Full Code Here

  protected void processImpl( Template pTemplate ) throws Exception {
    Template    template   = pTemplate;
    PropertySet tmps       = pTemplate.getMergedPropertySet();
    SectionSet  sectionSet = template.getSectionSet();

    WriterFormat wf = makeWriterFormat( tmps );

    modifySections( wf.getSource(), sectionSet, tmps );

    String codeWriterSource = insertText( wf.getPath(), wf.getSource(), sectionSet, tmps );

    // perform some text transformations after code writer has been generated
    codeWriterSource = postProcess( codeWriterSource, tmps );

    String codeWriterPath    = createCodeWriterPath( tmps );
View Full Code Here

  }

 
  public static Generator makeVirtualGenerator( PropertySet pPropertySet ) {
    Generator g = new Generator();
    WriterFormat wf = new VirtualWriterFormat("VWF01", WF_SOURCE_01);
    g.getFormatManager().addFormat(wf);
   
    PropertySet ps = null == pPropertySet ? new PropertySet() : pPropertySet;
    ps.set(Property.main_CodeWriterFormat,"VWF01");
    ps.set(Property.main_MakeBackup,"no");
View Full Code Here

  }


 
  protected WriterFormat makeWriterFormat( PropertySet pPropertySet ) throws Exception {
    WriterFormat wf = mFormatManager.getFormat( pPropertySet );
    return wf;
  }
View Full Code Here

TOP

Related Classes of org.jostraca.WriterFormat

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.