Tabnine Logo
DOMModel.getModel
Code IndexAdd Tabnine to your IDE (free)

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

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

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.deliveryDOMModelgetModel

Popular methods of DOMModel

  • <init>
  • getModels

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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