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

org.openprovenance.prov.sql.QualifiedNameAdapter Maven / Gradle / Ivy

Go to download

Java Objects representing the PROV model, XML serialiser/deserialiser for them, and ORM mapping generated by HyperJaxb.

There is a newer version: 1.0.0
Show newest version
package org.openprovenance.prov.sql;

import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.namespace.QName;

public class QualifiedNameAdapter extends XmlAdapter {
    final ProvFactory pf=new ProvFactory();

    @Override
    public QName marshal(org.openprovenance.prov.model.QualifiedName qualifiedName) throws Exception {
        if (qualifiedName==null) {
            return null;
        } else {
            return qualifiedName.toQName();
        }
    }

    @Override
    public QualifiedName unmarshal(QName q) throws Exception {
        if (q==null) {
            return null;
        } else {
        	QualifiedName qq=new QualifiedName(q);
            return qq;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy