Package org.jostraca

Examples of org.jostraca.BasicExpressionElementProcessor



  public void testCreate() throws Exception {
    PropertySet               ps   = new PropertySet();
    TemplateActionHandler     tah  = new TemplateActionHandlerStub();
    BasicExpressionElementProcessor btep = create( ps, tah );
  }
View Full Code Here


    ps.load( new File( "../../../../conf/system.conf" ) );
   
    // REVIEW: this will have to change
    ps.set( Property.jostraca_old, "yes" );

    BasicExpressionElementProcessor beep = create( ps, tahs );
    String content  = "=exp";
    Block  expBlock = new Block( Block.TYPE_script, content );

    assertTrue( beep.isMatch( expBlock ) );

    beep.process( expBlock );

    assertTrue( ("_insert(exp);"+BasicTemplateElementProcessor.NEWLINE)
            .equals( tahs.getLastAppendedContent() ) );
  }
View Full Code Here

  private BasicExpressionElementProcessor create( PropertySet pPropertySet,
                                                  TemplateActionHandler pTemplateActionHandler ) throws Exception {
    BasicUnitList bul = new BasicUnitList();
    TextualTransformManagerTable    ttmt = new TextualTransformManagerTable( pPropertySet );
    BasicExpressionElementProcessor beep = new BasicExpressionElementProcessor( bul, pTemplateActionHandler,
                                                                                pPropertySet, ttmt );
    return beep;
  }
View Full Code Here


  public void testCreate() throws Exception {
    PropertySet               ps   = new PropertySet();
    TemplateActionHandler     tah  = new TemplateActionHandlerStub();
    BasicExpressionElementProcessor btep = create( ps, tah );
  }
View Full Code Here

    ps.load( new File( "conf/system.conf" ) );
   
    // REVIEW: this will have to change
    ps.set( Property.jostraca_old, "yes" );

    BasicExpressionElementProcessor beep = create( ps, tahs );
    String content  = "=exp";
    Block  expBlock = new Block( Block.TYPE_script, content );

    assertTrue( beep.isMatch( expBlock ) );

    beep.process( expBlock );

    assertTrue( ("_insert(exp);"+BasicTemplateElementProcessor.NEWLINE)
            .equals( tahs.getLastAppendedContent() ) );
  }
View Full Code Here

  private BasicExpressionElementProcessor create( PropertySet pPropertySet,
                                                  TemplateActionHandler pTemplateActionHandler ) throws Exception {
    BasicUnitList bul = new BasicUnitList();
    TextualTransformManagerTable    ttmt = new TextualTransformManagerTable( pPropertySet );
    BasicExpressionElementProcessor beep = new BasicExpressionElementProcessor( bul, pTemplateActionHandler,
                                                                                pPropertySet, ttmt );
    return beep;
  }
View Full Code Here

TOP

Related Classes of org.jostraca.BasicExpressionElementProcessor

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.