Example usage for javax.xml.registry.infomodel RegistryObject toXML

List of usage examples for javax.xml.registry.infomodel RegistryObject toXML

Introduction

In this page you can find the example usage for javax.xml.registry.infomodel RegistryObject toXML.

Prototype

String toXML() throws JAXRException;

Source Link

Document

Returns a registry provider specific XML representation of this Object.

Usage

From source file:it.cnr.icar.eric.client.ui.swing.JAXRClient.java

/**
 * DOCUMENT ME!//w w w.  j  ava  2s  . com
 *
 * @param objectsToExport DOCUMENT ME!
 */
public void exportObjects(Collection<?> objectsToExport) {
    try {
        Iterator<?> iter = objectsToExport.iterator();

        while (iter.hasNext()) {
            RegistryObject ro = (RegistryObject) iter.next();
            System.err.println(ro.toXML());
        }
    } catch (JAXRException e) {
        RegistryBrowser.displayError(e);
    }
}