congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ElementVisitEvent.getConfigMapping
Code IndexAdd Tabnine 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)

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)
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ImageIO (javax.imageio)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now