Example usage for javax.xml.registry.infomodel ExtrinsicObject setRepositoryItem

List of usage examples for javax.xml.registry.infomodel ExtrinsicObject setRepositoryItem

Introduction

In this page you can find the example usage for javax.xml.registry.infomodel ExtrinsicObject setRepositoryItem.

Prototype

public void setRepositoryItem(javax.activation.DataHandler repositoryItem) throws JAXRException;

Source Link

Document

Sets the repository item for this object.

Usage

From source file:it.cnr.icar.eric.client.xml.registry.LifeCycleManagerImpl.java

/**
 * Creates an ExtrinsicObject instance using the specified parameters.
 * //from  ww  w .j av a2s  .  c om
 * 
 * <p>
 * <DL>
 * <DT><B>Capability Level: 1 </B>
 * </DL>
 * 
 * @param repositoryItem
 *            the DataHandler for the repository item. Must not be null.
 * 
 * @return the ExtrinsicObject instance created
 * 
 * @throws JAXRException
 *             if the JAXR provider encounters an internal error
 * 
 */
public ExtrinsicObject createExtrinsicObject(javax.activation.DataHandler repositoryItem)
        throws javax.xml.registry.JAXRException {
    ExtrinsicObject eo = imFactory.createExtrinsicObject(this, (String) null);

    if (repositoryItem != null) {
        eo.setRepositoryItem(repositoryItem);
    }

    return eo;
}