Package org.dozer.loader

Examples of org.dozer.loader.DozerBuilder$ConfigurationBuilder


  /**
   * For internal use
   * @return mappings created with given builder
   */
  public MappingFileData build() {
    dozerBuilder = new DozerBuilder();
    configure();
    return dozerBuilder.build();
  }
View Full Code Here


   * Builds object representation of mappings based on content of Xml document
   *
   * @return mapping container
   */
  public MappingFileData load() {
    DozerBuilder builder = new DozerBuilder();

    Element theRoot = document.getDocumentElement();
    NodeList nl = theRoot.getChildNodes();
    for (int i = 0; i < nl.getLength(); i++) {
      Node node = nl.item(i);
      if (node instanceof Element) {
        Element ele = (Element) node;
        log.debug("name: {}", ele.getNodeName());       
        if (CONFIGURATION_ELEMENT.equals(ele.getNodeName())) {
          parseConfiguration(ele, builder);
        } else if (MAPPING_ELEMENT.equals(ele.getNodeName())) {
          parseMapping(ele, builder);
        }
      }
    }

    return builder.build();
  }
View Full Code Here

   * Builds object representation of mappings based on content of Xml document
   *
   * @return mapping container
   */
  public MappingFileData load() {
    DozerBuilder builder = new DozerBuilder();

    Element theRoot = document.getDocumentElement();
    NodeList nl = theRoot.getChildNodes();
    for (int i = 0; i < nl.getLength(); i++) {
      Node node = nl.item(i);
      if (node instanceof Element) {
        Element ele = (Element) node;
        if (log.isDebugEnabled()) {
          log.debug("name: " + ele.getNodeName());
        }
        if (CONFIGURATION_ELEMENT.equals(ele.getNodeName())) {
          parseConfiguration(ele, builder);
        } else if (MAPPING_ELEMENT.equals(ele.getNodeName())) {
          parseMapping(ele, builder);
        }
      }
    }

    return builder.build();
  }
View Full Code Here

* @author dmitry.buzdin
*/
public abstract class ApiLoader implements MappingsSource {

  public MappingFileData load() {
    DozerBuilder builder = new DozerBuilder();
    build(builder);
    return builder.build();
  }
View Full Code Here

   * Builds object representation of mappings based on content of Xml document
   *
   * @return mapping container
   */
  public MappingFileData read(Document document) {
    DozerBuilder builder = new DozerBuilder();

    Element theRoot = document.getDocumentElement();
    NodeList nl = theRoot.getChildNodes();
    for (int i = 0; i < nl.getLength(); i++) {
      Node node = nl.item(i);
      if (node instanceof Element) {
        Element ele = (Element) node;
        log.debug("name: {}", ele.getNodeName());
        if (CONFIGURATION_ELEMENT.equals(ele.getNodeName())) {
          parseConfiguration(ele, builder);
        } else if (MAPPING_ELEMENT.equals(ele.getNodeName())) {
          parseMapping(ele, builder);
        }
      }
    }

    return builder.build();
  }
View Full Code Here

  /**
   * For internal use
   * @return mappings created with given builder
   */
  public MappingFileData build() {
    dozerBuilder = new DozerBuilder();
    configure();
    return dozerBuilder.build();
  }
View Full Code Here

TOP

Related Classes of org.dozer.loader.DozerBuilder$ConfigurationBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.