org.quartz.xml.XMLSchedulingDataProcessor.maybeThrowValidationException()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(144)

本文整理了Java中org.quartz.xml.XMLSchedulingDataProcessor.maybeThrowValidationException()方法的一些代码示例,展示了XMLSchedulingDataProcessor.maybeThrowValidationException()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLSchedulingDataProcessor.maybeThrowValidationException()方法的具体详情如下:
包路径:org.quartz.xml.XMLSchedulingDataProcessor
类名称:XMLSchedulingDataProcessor
方法名:maybeThrowValidationException

XMLSchedulingDataProcessor.maybeThrowValidationException介绍

[英]Throws a ValidationException if the number of validationExceptions detected is greater than zero.
[中]如果检测到的ValidationException数大于零,则引发ValidationException。

代码示例

代码示例来源:origin: quartz-scheduler/quartz

/**
 * Process the xmlfile named <code>fileName</code> with the given system
 * ID.
 * 
 * @param fileName
 *          meta data file name.
 * @param systemId
 *          system ID.
 */
protected void processFile(String fileName, String systemId)
  throws ValidationException, ParserConfigurationException,
    SAXException, IOException, SchedulerException,
    ClassNotFoundException, ParseException, XPathException {
  prepForProcessing();
  
  log.info("Parsing XML file: " + fileName + 
      " with systemId: " + systemId);
  InputSource is = new InputSource(getInputStream(fileName));
  is.setSystemId(systemId);
  
  process(is);
  
  maybeThrowValidationException();
}

代码示例来源:origin: quartz-scheduler/quartz

/**
 * Process the xmlfile named <code>fileName</code> with the given system
 * ID.
 * 
 * @param fileName
 *          meta data file name.
 * @param systemId
 *          system ID.
 */
protected void processFile(String fileName, String systemId)
  throws ValidationException, ParserConfigurationException,
    SAXException, IOException, SchedulerException,
    ClassNotFoundException, ParseException, XPathException {
  prepForProcessing();
  
  log.info("Parsing XML file: " + fileName + 
      " with systemId: " + systemId);
  InputSource is = new InputSource(getInputStream(fileName));
  is.setSystemId(systemId);
  
  process(is);
  
  maybeThrowValidationException();
}

代码示例来源:origin: quartz-scheduler/quartz

/**
 * Process the xmlfile named <code>fileName</code> with the given system
 * ID.
 * 
 * @param stream
 *          an input stream containing the xml content.
 * @param systemId
 *          system ID.
 */
public void processStreamAndScheduleJobs(InputStream stream, String systemId, Scheduler sched)
  throws ValidationException, ParserConfigurationException,
    SAXException, XPathException, IOException, SchedulerException,
    ClassNotFoundException, ParseException {
  prepForProcessing();
  log.info("Parsing XML from stream with systemId: " + systemId);
  InputSource is = new InputSource(stream);
  is.setSystemId(systemId);
  process(is);
  executePreProcessCommands(sched);
  scheduleJobs(sched);
  maybeThrowValidationException();
}

代码示例来源:origin: quartz-scheduler/quartz

/**
 * Process the xmlfile named <code>fileName</code> with the given system
 * ID.
 * 
 * @param stream
 *          an input stream containing the xml content.
 * @param systemId
 *          system ID.
 */
public void processStreamAndScheduleJobs(InputStream stream, String systemId, Scheduler sched)
  throws ValidationException, ParserConfigurationException,
    SAXException, XPathException, IOException, SchedulerException,
    ClassNotFoundException, ParseException {
  prepForProcessing();
  log.info("Parsing XML from stream with systemId: " + systemId);
  InputSource is = new InputSource(stream);
  is.setSystemId(systemId);
  process(is);
  executePreProcessCommands(sched);
  scheduleJobs(sched);
  maybeThrowValidationException();
}

相关文章