Example usage for javax.xml.registry.infomodel Slot setValues

List of usage examples for javax.xml.registry.infomodel Slot setValues

Introduction

In this page you can find the example usage for javax.xml.registry.infomodel Slot setValues.

Prototype

public void setValues(Collection values) throws JAXRException;

Source Link

Document

Sets the values for this Slot.

Usage

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

public void setSlotValues(String valuesString) throws JAXRException {
    try {// w w  w .ja v a 2  s  .c  o m
        String[] values = valuesString.split("\\|");
        ArrayList<String> valList = new ArrayList<String>();
        for (int i = 0; i < values.length; i++) {
            valList.add(values[i]);
        }
        // Presume that the nonRegistryObject is a Slot when this method
        // is invoked. Catch ClassCastExceptions
        Slot slot = (SlotImpl) this.nonRegistryObject;
        slot.setValues(valList);
    } catch (ClassCastException ex) {
        log.error(WebUIResourceBundle.getInstance().getString("message.TheNonRegistryObjectIsNotASlot"));
    }
}