List of usage examples for javax.xml.registry.infomodel SpecificationLink setUsageParameters
void setUsageParameters(Collection usageParameters) throws JAXRException;
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"); } }