List of usage examples for javax.xml.registry.infomodel Slot setValues
public void setValues(Collection values) throws JAXRException;
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")); } }