Codota Logo
ElementVisitEvent.getConfigMapping
Code IndexAdd Codota to your IDE (free)

How to use
getConfigMapping
method
in
org.milyn.event.types.ElementVisitEvent

Best Java code snippets using org.milyn.event.types.ElementVisitEvent.getConfigMapping (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.milyn/milyn-smooks-core

protected boolean ignoreEvent(ExecutionEvent event) {
  if(event instanceof FilterLifecycleEvent) {
    return false;
  } else if(event instanceof ElementPresentEvent) {
    return false;
  }
  if(filterEvents != null && !filterEvents.contains(event.getClass())) {
    return true;
  }
  if(event instanceof ElementVisitEvent) {
    ElementVisitEvent visitEvent = (ElementVisitEvent) event;
    ContentHandler handler = visitEvent.getConfigMapping().getContentHandler();
    if(visitEvent.getSequence() == VisitSequence.BEFORE) {
      VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    } else {
      VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    }
  }
  return false;
}
origin: smooks/smooks

protected boolean ignoreEvent(ExecutionEvent event) {
  if(event instanceof FilterLifecycleEvent) {
    return false;
  } else if(event instanceof ElementPresentEvent) {
    return false;
  }
  if(filterEvents != null && !filterEvents.contains(event.getClass())) {
    return true;
  }
  if(event instanceof ElementVisitEvent) {
    ElementVisitEvent visitEvent = (ElementVisitEvent) event;
    ContentHandler handler = visitEvent.getConfigMapping().getContentHandler();
    if(visitEvent.getSequence() == VisitSequence.BEFORE) {
      VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    } else {
      VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    }
  }
  return false;
}
origin: org.milyn/milyn-smooks-all

protected boolean ignoreEvent(ExecutionEvent event) {
  if(event instanceof FilterLifecycleEvent) {
    return false;
  } else if(event instanceof ElementPresentEvent) {
    return false;
  }
  if(filterEvents != null && !filterEvents.contains(event.getClass())) {
    return true;
  }
  if(event instanceof ElementVisitEvent) {
    ElementVisitEvent visitEvent = (ElementVisitEvent) event;
    ContentHandler handler = visitEvent.getConfigMapping().getContentHandler();
    if(visitEvent.getSequence() == VisitSequence.BEFORE) {
      VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    } else {
      VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    }
  }
  return false;
}
origin: org.virtuslab/milyn-smooks-core

protected boolean ignoreEvent(ExecutionEvent event) {
  if(event instanceof FilterLifecycleEvent) {
    return false;
  } else if(event instanceof ElementPresentEvent) {
    return false;
  }
  if(filterEvents != null && !filterEvents.contains(event.getClass())) {
    return true;
  }
  if(event instanceof ElementVisitEvent) {
    ElementVisitEvent visitEvent = (ElementVisitEvent) event;
    ContentHandler handler = visitEvent.getConfigMapping().getContentHandler();
    if(visitEvent.getSequence() == VisitSequence.BEFORE) {
      VisitBeforeReport reportAnnotation = handler.getClass().getAnnotation(VisitBeforeReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    } else {
      VisitAfterReport reportAnnotation = handler.getClass().getAnnotation(VisitAfterReport.class);
      if(reportAnnotation != null) {
        return !evalReportCondition(visitEvent, reportAnnotation.condition());
      }
    }
  }
  return false;
}
origin: org.virtuslab/milyn-smooks-core

private void mapNodeEvents(VisitSequence visitSequence, ReportNode reportNode, MessageNode messageNode) {
  List<ExecutionEvent> events = reportNode.getElementProcessingEvents();
  for (ExecutionEvent event : events) {
    if (event instanceof ElementVisitEvent) {
      ElementVisitEvent visitEvent = (ElementVisitEvent) event;
      if (visitEvent.getSequence() == visitSequence) {
        ReportInfoNode reportInfoNode = new ReportInfoNode();
        ContentHandlerConfigMap configMapping = ((ElementVisitEvent) event).getConfigMapping();
        messageNode.addExecInfoNode(reportInfoNode);
        reportInfoNode.setNodeId(reportInfoNodeCounter);
        reportInfoNode.setSummary(configMapping.getContentHandler().getClass().getSimpleName() + ": " + visitEvent.getReportSummary());
        reportInfoNode.setDetail(visitEvent.getReportDetail());
        reportInfoNode.setResourceXML(configMapping.getResourceConfig().toXML());
        reportInfoNode.setContextState(visitEvent.getExecutionContextState());
        reportInfoNodeCounter++;
      }
    }
  }
}
origin: org.milyn/milyn-smooks-core

private void mapNodeEvents(VisitSequence visitSequence, ReportNode reportNode, MessageNode messageNode) {
  List<ExecutionEvent> events = reportNode.getElementProcessingEvents();
  for (ExecutionEvent event : events) {
    if (event instanceof ElementVisitEvent) {
      ElementVisitEvent visitEvent = (ElementVisitEvent) event;
      if (visitEvent.getSequence() == visitSequence) {
        ReportInfoNode reportInfoNode = new ReportInfoNode();
        ContentHandlerConfigMap configMapping = ((ElementVisitEvent) event).getConfigMapping();
        messageNode.addExecInfoNode(reportInfoNode);
        reportInfoNode.setNodeId(reportInfoNodeCounter);
        reportInfoNode.setSummary(configMapping.getContentHandler().getClass().getSimpleName() + ": " + visitEvent.getReportSummary());
        reportInfoNode.setDetail(visitEvent.getReportDetail());
        reportInfoNode.setResourceXML(configMapping.getResourceConfig().toXML());
        reportInfoNode.setContextState(visitEvent.getExecutionContextState());
        reportInfoNodeCounter++;
      }
    }
  }
}
origin: org.milyn/milyn-smooks-all

private void mapNodeEvents(VisitSequence visitSequence, ReportNode reportNode, MessageNode messageNode) {
  List<ExecutionEvent> events = reportNode.getElementProcessingEvents();
  for (ExecutionEvent event : events) {
    if (event instanceof ElementVisitEvent) {
      ElementVisitEvent visitEvent = (ElementVisitEvent) event;
      if (visitEvent.getSequence() == visitSequence) {
        ReportInfoNode reportInfoNode = new ReportInfoNode();
        ContentHandlerConfigMap configMapping = ((ElementVisitEvent) event).getConfigMapping();
        messageNode.addExecInfoNode(reportInfoNode);
        reportInfoNode.setNodeId(reportInfoNodeCounter);
        reportInfoNode.setSummary(configMapping.getContentHandler().getClass().getSimpleName() + ": " + visitEvent.getReportSummary());
        reportInfoNode.setDetail(visitEvent.getReportDetail());
        reportInfoNode.setResourceXML(configMapping.getResourceConfig().toXML());
        reportInfoNode.setContextState(visitEvent.getExecutionContextState());
        reportInfoNodeCounter++;
      }
    }
  }
}
origin: smooks/smooks

private void mapNodeEvents(VisitSequence visitSequence, ReportNode reportNode, MessageNode messageNode) {
  List<ExecutionEvent> events = reportNode.getElementProcessingEvents();
  for (ExecutionEvent event : events) {
    if (event instanceof ElementVisitEvent) {
      ElementVisitEvent visitEvent = (ElementVisitEvent) event;
      if (visitEvent.getSequence() == visitSequence) {
        ReportInfoNode reportInfoNode = new ReportInfoNode();
        ContentHandlerConfigMap configMapping = ((ElementVisitEvent) event).getConfigMapping();
        messageNode.addExecInfoNode(reportInfoNode);
        reportInfoNode.setNodeId(reportInfoNodeCounter);
        reportInfoNode.setSummary(configMapping.getContentHandler().getClass().getSimpleName() + ": " + visitEvent.getReportSummary());
        reportInfoNode.setDetail(visitEvent.getReportDetail());
        reportInfoNode.setResourceXML(configMapping.getResourceConfig().toXML());
        reportInfoNode.setContextState(visitEvent.getExecutionContextState());
        reportInfoNodeCounter++;
      }
    }
  }
}
org.milyn.event.typesElementVisitEventgetConfigMapping

Popular methods of ElementVisitEvent

  • <init>
  • applyReportTemplates
  • evalReportCondition
  • getExecutionContextState
  • getReportDetail
  • getReportSummary
  • getResourceConfig
  • getSequence
  • initReport

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now