Code example for LinkedHashMap

Methods: isEmpty

0
     * given muncher is empty. 
     * 
     * @return <code>true</code> iff the document is empty. 
     */ 
    public boolean isEmpty() { 
        return (this.documentPaths.size() == 1) && (this.documentPaths.get(0).isEmpty());
    } 
 
    /** 
     * This core constructor creates an XmlMuncher on an empty document. 
     */ 
    public XmlMuncher() { 
        this.documentPaths = new ArrayList<LinkedHashMap<String, String>>();
        this.documentPaths.add(new LinkedHashMap<String, String>());
    } 
 
    /** 
     * The constructor, which sets up the XML muncher against an XML document 
     * 
     * @param xml the XML document to munch. 
     * @throws DOMException an exception is thrown in case of an error during XML parsing