Example usage for org.dom4j DocumentFactory createQName

List of usage examples for org.dom4j DocumentFactory createQName

Introduction

In this page you can find the example usage for org.dom4j DocumentFactory createQName.

Prototype

public QName createQName(String name, String prefix, String uri) 

Source Link

Usage

From source file:nl.tue.gale.ae.processor.view.AbstractView.java

License:Open Source License

protected Element createRowElement(Concept c, int width, boolean bold) {
    DocumentFactory df = DocumentFactory.getInstance();

    Element tr = GaleUtil.createHTMLElement("tr");
    Element td = GaleUtil.createHTMLElement("td").addAttribute("style", "padding-left: " + width + "px;");
    tr.add(td);/*w  w w  .j  a  va 2 s .  c o m*/
    if (bold) {
        Element b = GaleUtil.createHTMLElement("b");
        td.add(b);
        td = b;
    }
    Element a = df.createElement(df.createQName("a", "", "http://gale.tue.nl/adaptation"))
            .addAttribute("href", c.getUriString()).addText(c.getTitle());
    td.add(a);
    return tr;
}