All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cobraparser.html.renderer.RenderUtils Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package org.cobraparser.html.renderer;

import java.util.Iterator;

import org.w3c.dom.html.HTMLHtmlElement;

public final class RenderUtils {

  public static Renderable findHtmlRenderable(RCollection root) {
    final Iterator rs = root.getRenderables();
    if (rs != null) {
      while (rs.hasNext()) {
        final Renderable r = rs.next();
        if (r.getModelNode() instanceof HTMLHtmlElement) {
          return r;
        }
      }
    }

    return null;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy