Examples of ERXSimpleTemplateParser


Examples of er.extensions.foundation.ERXSimpleTemplateParser

     */
    // FIXME: Work in progress - fixed template; format parameter will be
    // ignored for now.
    AppInfoPatternConverter(FormattingInfo formattingInfo, String format) {
      super(formattingInfo);
      _templateParser = new ERXSimpleTemplateParser("-");
      // This will prevent the convert method to get into an infinite loop
      // when debug level logging is enabled for the perser.
      _templateParser.isLoggingDisabled = true;
      _appInfo = new NSMutableDictionary();
      _template = "@@appName@@[@@pid@@:@@portNumber@@ @@sessionCount@@]";
View Full Code Here

Examples of er.extensions.foundation.ERXSimpleTemplateParser

    JavaVMInfoPatternConverter(FormattingInfo formattingInfo, String format) {
      super(formattingInfo);
      _runtime = Runtime.getRuntime();
      _decimalFormatter = new ERXUnitAwareDecimalFormat(ERXUnitAwareDecimalFormat.BYTE);
      _decimalFormatter.setMaximumFractionDigits(2);
      _templateParser = new ERXSimpleTemplateParser("-");
      // This will prevent the convert method to get into an infinite loop
      // when debug level logging is enabled for the parser.
      _templateParser.isLoggingDisabled = true;
      _jvmInfo = new NSMutableDictionary();
      format = format.replaceFirst("(^|\\W)u(\\W|$)", "$1@@usedMemory@@$2");
View Full Code Here

Examples of er.extensions.foundation.ERXSimpleTemplateParser

    protected static IllegalArgumentException createIllegalArgumentException(String value, String target, String listingMethod) {
        NSDictionary d = ERXDictionaryUtilities.dictionaryWithObjectsAndKeys(
                new Object [] { value,    "value",
                                target,   "target",
                                listingMethod,  "listingMethod" });
        ERXSimpleTemplateParser parser = ERXSimpleTemplateParser.sharedInstance();
        String message = parser.parseTemplateWithObject(
                    "@@value@@ isn't a supported @@target@@. (Not listed under @@listingMethod@@)", null, d, null);
        return new IllegalArgumentException(message);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.