Package com.firefly.utils.dom

Examples of com.firefly.utils.dom.Dom


  public static ConfigReader getInstance() {
    return Holder.instance;
  }

  public Config load(String file) {
    Dom dom = new DefaultDom();
    // 获得Xml文档对象
    Document doc = dom.getDocument(file == null ? DEFAULT_CONFIG_FILE
        : file);
    // 得到根节点
    Element root = dom.getRoot(doc);
    load(root, dom);
    return config;
  }
View Full Code Here


    this(null);
  }

  public XmlBeanReader(String file) {
    beanDefinitions = new ArrayList<BeanDefinition>();
    Dom dom = new DefaultDom();
    Set<String> errorMemo = new HashSet<String>(); // 判断循环引用

    // 得到所有bean节点
    List<Element> beansList = new ArrayList<Element>();
View Full Code Here

  public static ConfigReader getInstance() {
    return Holder.instance;
  }

  public Config load(String file) {
    Dom dom = new DefaultDom();
    // 获得Xml文档对象
    Document doc = dom.getDocument(file == null ? DEFAULT_CONFIG_FILE
        : file);
    // 得到根节点
    Element root = dom.getRoot(doc);
    load(root, dom);
    return config;
  }
View Full Code Here

    this(null);
  }

  public XmlBeanReader(String file) {
    beanDefinitions = new ArrayList<BeanDefinition>();
    Dom dom = new DefaultDom();
    Set<String> errorMemo = new HashSet<String>(); // It's used for eliminating circular references

    // all bean elements
    List<Element> beansList = new ArrayList<Element>();
View Full Code Here

  public static ConfigReader getInstance() {
    return Holder.instance;
  }

  public Config load(String file) {
    Dom dom = new DefaultDom();
    // 获得Xml文档对象
    Document doc = dom.getDocument(file == null ? DEFAULT_CONFIG_FILE
        : file);
    // 得到根节点
    Element root = dom.getRoot(doc);
    load(root, dom);
    return config;
  }
View Full Code Here

TOP

Related Classes of com.firefly.utils.dom.Dom

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.