Package org.jostraca.unit

Examples of org.jostraca.unit.BasicUnit


        }
        else {
          iTemplateActionHandler.append( iContent );

          String    section = iTemplateActionHandler.getDefaultSection();
          BasicUnit bu      = new BasicUnit( BasicUnitProcessor.TYPE_text, section, text_content );
          iUnitList.add( bu );
        }
      }
      else {
        finished = false;
View Full Code Here


      if( iPropertySet.isYes( Property.jostraca_old ) ) {
        String script = iTextualTransform.transform( match.content );
        iTemplateActionHandler.append( match.sectionName, script );
      }

      BasicUnit bu = new BasicUnit( BasicUnitProcessor.TYPE_script, match.sectionName, match.content );
      iUnitList.add( bu );

      return true;
    }
    catch( Exception e ) {
View Full Code Here

    // parse expression element using regular expression
    try {
      match = doRegExpMatchExpression( content );
      String    section = iTemplateActionHandler.getDefaultSection();
      BasicUnit bu      = new BasicUnit( BasicUnitProcessor.TYPE_expr, section, match );
      iUnitList.add( bu );
    }
    catch( Exception e ) {
      throw new TemplateElementProcessorException
        ( TemplateElementProcessorException.CODE_unexpected_regexp_mismatch, e.getMessage(),
View Full Code Here

    if( !Standard.EMPTY.equals( match ) ) {
      if( pPropertySet.isYes( Property.jostraca_old ) ) {
        pTemplateActionHandler.append( Section.NAME_init, match );
      }

      BasicUnit bu = new BasicUnit( BasicUnitProcessor.TYPE_script, Section.NAME_init, match );
      pBasicUnitList.add( bu );
    }
  }
View Full Code Here

        }

        // backwards compatibility support
        Hashtable isattr = new Hashtable();
        isattr.put( InsertSectionTransform.ATTR_unit_source_section, sectionName );
        BasicUnit bu = new BasicUnit( NAME, pTemplateActionHandler.getDefaultSection(), section.getContent(),
                                      new BasicUnitOrigin(), isattr );
        pBasicUnitList.add( bu );
      }
      else {
       
View Full Code Here

    if( !Standard.EMPTY.equals( match ) ) {
      if( pPropertySet.isYes( Property.jostraca_old ) ) {
        pTemplateActionHandler.append( Section.NAME_init, match );
      }

      BasicUnit bu = new BasicUnit( BasicUnitProcessor.TYPE_script, Section.NAME_init, match );
      pBasicUnitList.add( bu );
    }
   
    return null;
  }
View Full Code Here

        }

        // backwards compatibility support
        Hashtable isattr = new Hashtable();
        isattr.put( InsertSectionTransform.ATTR_unit_source_section, sectionName );
        BasicUnit bu = new BasicUnit( NAME, pTemplateActionHandler.getDefaultSection(), section.getContent(),
                                      new BasicUnitOrigin(), isattr );
        pBasicUnitList.add( bu );
      }
      else {
       
View Full Code Here

      t = LT(1);
      match(TEXT);
     
      iBlocks.add( new Block( Block.TYPE_text, t.getText() ) );
      //System.out.println( "t:"+t.getText() );
      iUnitList.add( new BasicUnit( BasicUnitProcessor.TYPE_text, t.getText(),
      new BasicUnitOrigin( iReference, t.getLine(), t.getColumn(), 0, 0 ) ) );
     
    }
    catch (RecognitionException ex) {
      reportError(ex);
View Full Code Here

      t = LT(1);
      match(SCRIPT);
     
      iBlocks.add( new Block( Block.TYPE_script, t.getText() ) );
      //System.out.println( "s:"+t.getText() );
      iUnitList.add( new BasicUnit( BasicUnitProcessor.TYPE_script, t.getText(),
      new BasicUnitOrigin( iReference, t.getLine(), t.getColumn(), 0, 0 ) ) );
     
    }
    catch (RecognitionException ex) {
      reportError(ex);
View Full Code Here

        }
        else {
          iTemplateActionHandler.append( iContent );

          String    section = iTemplateActionHandler.getDefaultSection();
          BasicUnit bu      = new BasicUnit( BasicUnitProcessor.TYPE_text, section, text_content );
          iUnitList.add( bu );
        }
      }
      else {
        finished = iContent;
View Full Code Here

TOP

Related Classes of org.jostraca.unit.BasicUnit

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.