Codota Logo
DOMModel.getModels
Code IndexAdd Codota to your IDE (free)

How to use
getModels
method
in
org.milyn.delivery.DOMModel

Best Java code snippets using org.milyn.delivery.DOMModel.getModels (Showing top 8 results out of 315)

  • Common ways to obtain DOMModel
private void myMethod () {
DOMModel d =
  • Codota Iconnew DOMModel()
  • Codota IconExecutionContext executionContext;DOMModel.getModel(executionContext)
  • Codota IconExecutionContext executionContext;(DOMModel) executionContext.getAttribute(DOMModel.class)
  • Smart code suggestions by Codota
}
origin: org.milyn/milyn-smooks-core

private void addNodeModel(Element element, ExecutionContext executionContext) {
  DOMModel nodeModel = DOMModel.getModel(executionContext);
  nodeModel.getModels().put(DomUtils.getName(element), element);
}
origin: smooks/smooks

private void addNodeModel(Element element, ExecutionContext executionContext) {
  DOMModel nodeModel = DOMModel.getModel(executionContext);
  nodeModel.getModels().put(DomUtils.getName(element), element);
}
origin: org.virtuslab/milyn-smooks-core

private void addNodeModel(Element element, ExecutionContext executionContext) {
  DOMModel nodeModel = DOMModel.getModel(executionContext);
  nodeModel.getModels().put(DomUtils.getName(element), element);
}
origin: org.milyn/milyn-smooks-all

private void addNodeModel(Element element, ExecutionContext executionContext) {
  DOMModel nodeModel = DOMModel.getModel(executionContext);
  nodeModel.getModels().put(DomUtils.getName(element), element);
}
origin: org.milyn/milyn-smooks-core

/**
 * Get a "merged" model for FreeMarker templating.
 * <p/>
 * This utility merges the current set of beans being managed by the
 * {@link BeanContext} associated with the
 * current {@link ExecutionContext}, with the contents of the {@link DOMModel}
 * associated with the current {@link ExecutionContext}.  This is very useful
 * for templating with FreeMarker.
 *
 * @param executionContext The current execution context.
 * @return A merged templating model.
 */
public static Map<String, Object> getMergedModel(ExecutionContext executionContext) {
  Map<String, Object> beans = executionContext.getBeanContext().getBeanMap();
  Map<String, Object> model = beans;
  DOMModel domModel = DOMModel.getModel(executionContext);
  if(!domModel.getModels().isEmpty()) {
    Map<String, ElementToNodeModel> elementToNodeModelMap = getElementToNodeModelMap(executionContext);
    model = new HashMap<String, Object>();
    model.putAll(beans);
    Set<Map.Entry<String, Element>> models = domModel.getModels().entrySet();
    for (Map.Entry<String, Element> entry : models) {
      NodeModel nodeModel = getNodeModel(entry.getKey(), entry.getValue(), elementToNodeModelMap);
      model.put(entry.getKey(), nodeModel);
    }
  }
  return model;
}
origin: org.milyn/milyn-smooks-all

/**
 * Get a "merged" model for FreeMarker templating.
 * <p/>
 * This utility merges the current set of beans being managed by the
 * {@link BeanContext} associated with the
 * current {@link ExecutionContext}, with the contents of the {@link DOMModel}
 * associated with the current {@link ExecutionContext}.  This is very useful
 * for templating with FreeMarker.
 *
 * @param executionContext The current execution context.
 * @return A merged templating model.
 */
public static Map<String, Object> getMergedModel(ExecutionContext executionContext) {
  Map<String, Object> beans = executionContext.getBeanContext().getBeanMap();
  Map<String, Object> model = beans;
  DOMModel domModel = DOMModel.getModel(executionContext);
  if(!domModel.getModels().isEmpty()) {
    Map<String, ElementToNodeModel> elementToNodeModelMap = getElementToNodeModelMap(executionContext);
    model = new HashMap<String, Object>();
    model.putAll(beans);
    Set<Map.Entry<String, Element>> models = domModel.getModels().entrySet();
    for (Map.Entry<String, Element> entry : models) {
      NodeModel nodeModel = getNodeModel(entry.getKey(), entry.getValue(), elementToNodeModelMap);
      model.put(entry.getKey(), nodeModel);
    }
  }
  return model;
}
origin: smooks/smooks

/**
 * Get a "merged" model for FreeMarker templating.
 * <p/>
 * This utility merges the current set of beans being managed by the
 * {@link BeanContext} associated with the
 * current {@link ExecutionContext}, with the contents of the {@link DOMModel}
 * associated with the current {@link ExecutionContext}.  This is very useful
 * for templating with FreeMarker.
 *
 * @param executionContext The current execution context.
 * @return A merged templating model.
 */
public static Map<String, Object> getMergedModel(ExecutionContext executionContext) {
  Map<String, Object> beans = executionContext.getBeanContext().getBeanMap();
  Map<String, Object> model = beans;
  DOMModel domModel = DOMModel.getModel(executionContext);
  if(!domModel.getModels().isEmpty()) {
    Map<String, ElementToNodeModel> elementToNodeModelMap = getElementToNodeModelMap(executionContext);
    model = new HashMap<String, Object>();
    model.putAll(beans);
    Set<Map.Entry<String, Element>> models = domModel.getModels().entrySet();
    for (Map.Entry<String, Element> entry : models) {
      NodeModel nodeModel = getNodeModel(entry.getKey(), entry.getValue(), elementToNodeModelMap);
      model.put(entry.getKey(), nodeModel);
    }
  }
  return model;
}
origin: org.virtuslab/milyn-smooks-core

/**
 * Get a "merged" model for FreeMarker templating.
 *
 * This utility merges the current set of beans being managed by the
 * {@link BeanContext} associated with the
 * current {@link ExecutionContext}, with the contents of the {@link DOMModel}
 * associated with the current {@link ExecutionContext}.  This is very useful
 * for templating with FreeMarker.
 *
 * @param executionContext The current execution context.
 * @return A merged templating model.
 */
public static Map<String, Object> getMergedModel(ExecutionContext executionContext) {
  Map<String, Object> beans = executionContext.getBeanContext().getBeanMap();
  Map<String, Object> model = beans;
  DOMModel domModel = DOMModel.getModel(executionContext);
  if(!domModel.getModels().isEmpty()) {
    Map<String, ElementToNodeModel> elementToNodeModelMap = getElementToNodeModelMap(executionContext);
    model = new HashMap<String, Object>();
    model.putAll(beans);
    Set<Map.Entry<String, Element>> models = domModel.getModels().entrySet();
    for (Map.Entry<String, Element> entry : models) {
      NodeModel nodeModel = getNodeModel(entry.getKey(), entry.getValue(), elementToNodeModelMap);
      model.put(entry.getKey(), nodeModel);
    }
  }
  return model;
}
org.milyn.deliveryDOMModelgetModels

Popular methods of DOMModel

  • <init>
  • getModel

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • requestLocationUpdates (LocationManager)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JComboBox (javax.swing)
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