Example usage for javax.xml.registry.infomodel SpecificationLink setUsageParameters

List of usage examples for javax.xml.registry.infomodel SpecificationLink setUsageParameters

Introduction

In this page you can find the example usage for javax.xml.registry.infomodel SpecificationLink setUsageParameters.

Prototype

void setUsageParameters(Collection usageParameters) throws JAXRException;

Source Link

Document

Sets any usage parameters.

Usage

From source file:it.cnr.icar.eric.client.ui.thin.RegistryObjectBean.java

public void setUsageParamString(String usageParamString) throws JAXRException {
    try {//  www  .j  a va 2 s.c o m
        String[] values = usageParamString.split("\\|");
        List<String> valList = new ArrayList<String>();
        for (int i = 0; i < values.length; i++) {
            valList.add(values[i].trim());
        }
        // Presume that the nonRegistryObject is a SpecificationLink when
        // this method is invoked. Catch ClassCastExceptions
        SpecificationLink specLink = (SpecificationLink) this.registryObject;
        specLink.setUsageParameters(valList);
    } catch (ClassCastException ex) {
        log.error("The non registry object is not a SpecificationLink");
    }
}