org.milyn.container.ExecutionContext.getTargetProfiles()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(9.3k)|赞(0)|评价(0)|浏览(118)

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

ExecutionContext.getTargetProfiles介绍

[英]Get the set of profiles at which this execution context is targeted.

Basically, the set of profiles for which this execution context is to perform transformation/analysis.
[中]获取此执行上下文的目标配置文件集。
基本上,此执行上下文将为其执行转换/分析的一组概要文件。

代码示例

代码示例来源:origin: smooks/smooks

/**
 * Serialise the node to the supplied output writer instance.
 * <p/>
 * Executes the <a href="#phases">Serialisation phase</a>,
 * using the {@link Serializer} class to perform the serialization.
 *
 * @param node   Document to be serialised.
 * @param writer Output writer.
 * @throws ResourceConfigurationNotFoundException
 *                         DOM Serialiser exception.
 * @throws IOException     Unable to write to output writer.
 * @throws SmooksException Unable to serialise due to bad Smooks environment.  Check cause.
 */
public void serialize(Node node, Writer writer) throws IOException, SmooksException {
  Serializer serializer;
  if (node == null) {
    throw new IllegalArgumentException("null 'doc' arg passed in method call.");
  } else if (writer == null) {
    throw new IllegalArgumentException("null 'writer' arg passed in method call.");
  }
  if (logger.isDebugEnabled()) {
    logger.debug("Starting serialization phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
  }
  serializer = new Serializer(node, executionContext);
  try {
    serializer.serialize(writer);
  } catch (ResourceConfigurationNotFoundException e) {
    throw new SmooksException("Unable to serialize document.", e);
  }
}

代码示例来源:origin: org.milyn/milyn-smooks-core

/**
 * Serialise the node to the supplied output writer instance.
 * <p/>
 * Executes the <a href="#phases">Serialisation phase</a>,
 * using the {@link Serializer} class to perform the serialization.
 *
 * @param node   Document to be serialised.
 * @param writer Output writer.
 * @throws ResourceConfigurationNotFoundException
 *                         DOM Serialiser exception.
 * @throws IOException     Unable to write to output writer.
 * @throws SmooksException Unable to serialise due to bad Smooks environment.  Check cause.
 */
public void serialize(Node node, Writer writer) throws IOException, SmooksException {
  Serializer serializer;
  if (node == null) {
    throw new IllegalArgumentException("null 'doc' arg passed in method call.");
  } else if (writer == null) {
    throw new IllegalArgumentException("null 'writer' arg passed in method call.");
  }
  if (logger.isDebugEnabled()) {
    logger.debug("Starting serialization phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
  }
  serializer = new Serializer(node, executionContext);
  try {
    serializer.serialize(writer);
  } catch (ResourceConfigurationNotFoundException e) {
    throw new SmooksException("Unable to serialize document.", e);
  }
}

代码示例来源:origin: org.milyn/milyn-smooks-all

/**
 * Serialise the node to the supplied output writer instance.
 * <p/>
 * Executes the <a href="#phases">Serialisation phase</a>,
 * using the {@link Serializer} class to perform the serialization.
 *
 * @param node   Document to be serialised.
 * @param writer Output writer.
 * @throws ResourceConfigurationNotFoundException
 *                         DOM Serialiser exception.
 * @throws IOException     Unable to write to output writer.
 * @throws SmooksException Unable to serialise due to bad Smooks environment.  Check cause.
 */
public void serialize(Node node, Writer writer) throws IOException, SmooksException {
  Serializer serializer;
  if (node == null) {
    throw new IllegalArgumentException("null 'doc' arg passed in method call.");
  } else if (writer == null) {
    throw new IllegalArgumentException("null 'writer' arg passed in method call.");
  }
  if (logger.isDebugEnabled()) {
    logger.debug("Starting serialization phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
  }
  serializer = new Serializer(node, executionContext);
  try {
    serializer.serialize(writer);
  } catch (ResourceConfigurationNotFoundException e) {
    throw new SmooksException("Unable to serialize document.", e);
  }
}

代码示例来源:origin: org.virtuslab/milyn-smooks-core

/**
 * Serialise the node to the supplied output writer instance.
 *
 * Executes the <a href="#phases">Serialisation phase</a>,
 * using the {@link Serializer} class to perform the serialization.
 *
 * @param node   Document to be serialised.
 * @param writer Output writer.
 * @throws ResourceConfigurationNotFoundException
 *                         DOM Serialiser exception.
 * @throws IOException     Unable to write to output writer.
 * @throws SmooksException Unable to serialise due to bad Smooks environment.  Check cause.
 */
public void serialize(Node node, Writer writer) throws IOException, SmooksException {
  Serializer serializer;
  if (node == null) {
    throw new IllegalArgumentException("null 'doc' arg passed in method call.");
  } else if (writer == null) {
    throw new IllegalArgumentException("null 'writer' arg passed in method call.");
  }
  if (logger.isDebugEnabled()) {
    logger.debug("Starting serialization phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
  }
  serializer = new Serializer(node, executionContext);
  try {
    serializer.serailize(writer);
  } catch (ResourceConfigurationNotFoundException e) {
    throw new SmooksException("Unable to serialize document.", e);
  }
}

代码示例来源:origin: org.virtuslab/milyn-smooks-core

public Node filter(Source source) throws SmooksException {
  Node deliveryNode;
  if (source == null) {
    throw new IllegalArgumentException("null 'source' arg passed in method call.");
  }
  try {
    DOMParser parser = new DOMParser(executionContext);
    Document document = parser.parse(source);
    deliveryNode = filter(document);
  } catch (Exception cause) {
    throw new SmooksException("Unable to filter InputStream for target profile [" + executionContext.getTargetProfiles().getBaseProfile() + "].", cause);
  }
  return deliveryNode;
}

代码示例来源:origin: org.virtuslab/milyn-smooks-core

logger.debug("Starting assembly phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
  logger.debug("No assembly units configured for device [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
logger.debug("Starting processing phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");

代码示例来源:origin: smooks/smooks

/**
 * Phase the supplied input reader.
 * <p/>
 * Simply parses the input reader into a W3C DOM and calls {@link #filter(Document)}.
 *
 * @param source The source of markup to be filtered.
 * @return Node representing filtered document.
 */
public Node filter(Source source) {
  Node deliveryNode;
  if (source == null) {
    throw new IllegalArgumentException("null 'source' arg passed in method call.");
  }
  try {
    DOMParser parser = new DOMParser(executionContext);
    Document document = parser.parse(source);
    deliveryNode = filter(document);
  } catch (Exception cause) {
    throw new SmooksException("Unable to filter InputStream for target profile [" + executionContext.getTargetProfiles().getBaseProfile() + "].", cause);
  }
  return deliveryNode;
}

代码示例来源:origin: org.milyn/milyn-smooks-core

/**
 * Phase the supplied input reader.
 * <p/>
 * Simply parses the input reader into a W3C DOM and calls {@link #filter(Document)}.
 *
 * @param source The source of markup to be filtered.
 * @return Node representing filtered document.
 */
public Node filter(Source source) {
  Node deliveryNode;
  if (source == null) {
    throw new IllegalArgumentException("null 'source' arg passed in method call.");
  }
  try {
    DOMParser parser = new DOMParser(executionContext);
    Document document = parser.parse(source);
    deliveryNode = filter(document);
  } catch (Exception cause) {
    throw new SmooksException("Unable to filter InputStream for target profile [" + executionContext.getTargetProfiles().getBaseProfile() + "].", cause);
  }
  return deliveryNode;
}

代码示例来源:origin: org.milyn/milyn-smooks-all

/**
 * Phase the supplied input reader.
 * <p/>
 * Simply parses the input reader into a W3C DOM and calls {@link #filter(Document)}.
 *
 * @param source The source of markup to be filtered.
 * @return Node representing filtered document.
 */
public Node filter(Source source) {
  Node deliveryNode;
  if (source == null) {
    throw new IllegalArgumentException("null 'source' arg passed in method call.");
  }
  try {
    DOMParser parser = new DOMParser(executionContext);
    Document document = parser.parse(source);
    deliveryNode = filter(document);
  } catch (Exception cause) {
    throw new SmooksException("Unable to filter InputStream for target profile [" + executionContext.getTargetProfiles().getBaseProfile() + "].", cause);
  }
  return deliveryNode;
}

代码示例来源:origin: smooks/smooks

logger.debug("Starting assembly phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
  logger.debug("No assembly units configured for device [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
logger.debug("Starting processing phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");

代码示例来源:origin: org.milyn/milyn-smooks-core

logger.debug("Starting assembly phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
  logger.debug("No assembly units configured for device [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
logger.debug("Starting processing phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");

代码示例来源:origin: org.milyn/milyn-smooks-all

logger.debug("Starting assembly phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
  logger.debug("No assembly units configured for device [" + executionContext.getTargetProfiles().getBaseProfile() + "]");
logger.debug("Starting processing phase [" + executionContext.getTargetProfiles().getBaseProfile() + "]");

相关文章