Package com.baulsupp.kolja.log.viewer.event

Examples of com.baulsupp.kolja.log.viewer.event.PatternEventMatcher


      throw new IllegalStateException("unknown node " + element.getNodeName());
    }
  }

  private PatternEventMatcher readPatternEvent(Element element) {
    PatternEventMatcher patternEventMatcher = new PatternEventMatcher();

    if (element.hasAttribute("pattern")) {
      Pattern pattern = PatternPropertyEditor.parsePattern(element.getAttribute("pattern"));
      patternEventMatcher.setPattern(pattern);
    }

    if (element.hasAttribute("message")) {
      patternEventMatcher.setMessage(element.getAttribute("message"));
    }

    return patternEventMatcher;
  }
View Full Code Here

TOP

Related Classes of com.baulsupp.kolja.log.viewer.event.PatternEventMatcher

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.