Example usage for com.itextpdf.text.xml.xmp XmpArray XmpArray

List of usage examples for com.itextpdf.text.xml.xmp XmpArray XmpArray

Introduction

In this page you can find the example usage for com.itextpdf.text.xml.xmp XmpArray XmpArray.

Prototype

public XmpArray(String type) 

Source Link

Document

Creates an XmpArray.

Usage

From source file:br.unifor.mia.xmpsemantico.xmp.MiaSchema.java

License:GNU General Public License

/**
 * Adds a description.// w  ww  .j  a  va 2s .  co m
 * @param description
 */
public void addDescription(String desc) {
    XmpArray array = new XmpArray(XmpArray.ALTERNATIVE);
    array.add(desc);
    setProperty(DESCRIPTION, array);
}

From source file:org.crossref.pdfmark.XmpUtils.java

License:Open Source License

private static XmpArray parseRdfList(Element list) {
    XmpArray ary = new XmpArray("rdf:" + list.getLocalName());
    NodeList items = list.getChildNodes();
    for (int i = 0; i < items.getLength(); i++) {
        Node n = items.item(i);// w ww.  j a  v  a 2  s  . c om
        if (n instanceof Element) {
            ary.add(n.getTextContent());
        }
    }
    return ary;
}