Java 类org.dom4j.Visitor 实例源码

项目:atlas    文件:ManifestFileUtils.java   
/**
 * Remove comments from XML
 *
 * @param document
 * @throws IOException
 * @throws DocumentException
 */
private static void removeComments(Document document) throws IOException, DocumentException {
    Visitor visitor = new VisitorSupport() {

        @Override
        public void visit(Comment comment) {
            comment.setText(" ");
        }
    };
    document.accept(visitor);
}
项目:lams    文件:ElementWrapper.java   
public void accept(Visitor visitor) {
    element.accept( visitor );
}
项目:gitplex-mit    文件:VersionedDocument.java   
public void accept(Visitor visitor) {
    getWrapped().accept(visitor);
}
项目:cacheonix-core    文件:ElementWrapper.java   
public void accept(Visitor visitor) {
    element.accept( visitor );
}
项目:cacheonix-core    文件:Dom4jProxy.java   
public void accept(Visitor visitor) {
    target().accept( visitor );
}