Package org.xmlBlaster.util

Examples of org.xmlBlaster.util.ReplaceVariable


               if (XbFormatter.withXtermColors()) System.out.println(XbFormatter.BLACK_GREEN);
               final String bound = "|";
               String ver = bound + " XmlBlaster cluster node <" + glob.getId() + "> v" + glob.getReleaseId() + " " + glob.getBuildTimestamp();
               int width = ver.length() + 6;
               if (width < 48) width = 48;
               ReplaceVariable sh = new ReplaceVariable();
               String line = sh.charChain('-', width-2);
               System.out.println("");
               System.out.println(" "+line+" ");
               System.out.println(ver + sh.charChain(' ', width-ver.length()-1) + bound);
               boolean useKeyboard = glob.getProperty().get("useKeyboard", true);
               if (useKeyboard) {
                 String help = bound + " READY " + duration + " - press <enter> for options";
                 System.out.println(help + sh.charChain(' ', width-help.length()-1) + bound);
               } else {
                 String help = bound + " READY " + duration + " - no keyboard input available";
                 System.out.println(help + sh.charChain(' ', width-help.length()-1) + bound);
               }
               System.out.println(" "+line+" ");
               if (XbFormatter.withXtermColors()) System.out.println(XbFormatter.ESC);
            }
            else
View Full Code Here


      if (this.initCount > 0) {
         this.initCount++;
         return;
      }
      log.info("going to initialize the resources");
      this.replaceVariable = new ReplaceVariable();
      this.info = info;
      this.replPrefix = SpecificDefault.getReplPrefix(this.info);
      this.replVersion =  this.info.get("replication.version", "0.0");
      Map map = new HashMap();
      map.put("replVersion", this.replVersion);
View Full Code Here

   }
  
   private String replaceVariables(String template) {
      if (!replaceTokens) return template;
     
      ReplaceVariable r = new ReplaceVariable();
      String result = r.replace(template,
         new I_ReplaceVariable() {
            public String get(String key) {
               return glob.getProperty().get(key, key);
            }
         });
View Full Code Here

   private ReplaceVariable replaceVariable;
   private Replacer replacer;
  
  
   public InfoHelper(I_Info info) {
      this.replaceVariable = new ReplaceVariable();
      this.replacer = new Replacer(info);
   }
View Full Code Here

   private String repository;
  
   public FileWatcherFeeder(String[] args) throws Exception {
      super((String[])null);
      global = new Global(args, true, false, false);
      this.replaceVariable = new ReplaceVariable();
      this.replacer = new Replacer();
      String filename = global.getProperty().get("filewatcher.test.sourceFile", (String)null);
      if (filename != null) {
         content = readFile(filename);
      }
View Full Code Here

            if (val != null)
               return val;
            return null;
         }
      }
      ReplaceVariable replaceVariable = new ReplaceVariable();
      ReplVar replVar = new ReplVar(map);
      return replaceVariable.replace(txt, replVar);
   }
View Full Code Here

TOP

Related Classes of org.xmlBlaster.util.ReplaceVariable

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.