public void setVariables(CS_DocketIndexGetData_Properties fromClient) { int tempInt = 0; String tempString = null; try { tempString = fromClient.getHPubMacroMessage(); this.setHPubMacroMessage(tempString); } catch (Exception e) { } try { tempString = fromClient.getHPubScreenState(); this.setHPubScreenState(tempString); } catch (Exception e) { } try { tempString = fromClient.getHPubEndChainName(); this.setHPubEndChainName(tempString); } catch (Exception e) { } try { tempInt = fromClient.getHPubEndType(); this.setHPubEndType(tempInt); } catch (Exception e) { } try { tempString = fromClient.getHPubLinkKey(); this.setHPubLinkKey(tempString); } catch (Exception e) { } try { tempString = fromClient.getHPubStartChainName(); this.setHPubStartChainName(tempString); } catch (Exception e) { } try { tempString = fromClient.getHPubStartPoolName(); this.setHPubStartPoolName(tempString); } catch (Exception e) { } try { tempInt = fromClient.getHPubStartType(); this.setHPubStartType(tempInt); } catch (Exception e) { } try { styleSheet = fromClient.getHPubStyleSheet(); } catch (Exception e) { } }
public void fixNullOutputsForSOAP(CS_DocketIndexGetData_Properties fromClient) { // Transform null to "null" Class c = fromClient.getClass(); java.beans.BeanInfo beanInfo = null; try { beanInfo = java.beans.Introspector.getBeanInfo(c); } catch (Exception e) { } java.beans.PropertyDescriptor[] properties = beanInfo.getPropertyDescriptors(); for (int i = 0; i < properties.length; i++) { java.beans.PropertyDescriptor property = properties[i]; java.lang.reflect.Method readMethod = property.getReadMethod(); java.lang.reflect.Method writeMethod = property.getWriteMethod(); if ((readMethod != null) && (writeMethod != null)) { String currentvalue = new String(""); if (readMethod.getReturnType() == currentvalue.getClass()) { try { currentvalue = (String) (readMethod.invoke(fromClient, null)); } catch (java.lang.reflect.InvocationTargetException a1) // Null argument { try { Object[] args1 = new Object[1]; args1[0] = new String("null"); writeMethod.invoke(fromClient, args1); } catch (Exception e2) { } } catch (Exception e1) { } } else { } } } }
public void fixNullInputsForSOAP(CS_DocketIndexGetData_Properties fromClient) { // Transform "null" to null Class c = fromClient.getClass(); java.beans.BeanInfo beanInfo = null; try { beanInfo = java.beans.Introspector.getBeanInfo(c); } catch (Exception e) { } java.beans.PropertyDescriptor[] properties = beanInfo.getPropertyDescriptors(); for (int i = 0; i < properties.length; i++) { java.beans.PropertyDescriptor property = properties[i]; java.lang.reflect.Method readMethod = property.getReadMethod(); java.lang.reflect.Method writeMethod = property.getWriteMethod(); if ((readMethod != null) && (writeMethod != null)) { String currentvalue = new String(""); if (readMethod.getReturnType() == currentvalue.getClass()) { try { currentvalue = (String) readMethod.invoke(fromClient, null); } catch (Exception e1) { } if (currentvalue != null) { if (currentvalue.equals("null")) { try { Object[] args1 = new Object[1]; args1[0] = null; writeMethod.invoke(fromClient, args1); } catch (Exception e2) { } } if ((currentvalue.length() < 1) && (writeMethod.getName().indexOf("PubStartPoolName") > -1)) { try { Object[] args1 = new Object[1]; args1[0] = "ICONEJB/null"; writeMethod.invoke(fromClient, args1); } catch (Exception e2) { } } if ((currentvalue.length() < 1) && (writeMethod.getName().indexOf("PubLinkKey") > -1)) { try { Object[] args1 = new Object[1]; args1[0] = null; writeMethod.invoke(fromClient, args1); } catch (Exception e2) { } } } } else { } } } }
public CS_DocketIndexGetData_Properties processIORequest() throws BeanException { CS_DocketIndexGetData_Properties toClient = new CS_DocketIndexGetData_Properties(); if ((styleSheet != null) && (styleSheet.length() > 0)) { try { String xmlData = getHPubXMLProperties(styleSheet); toClient.setHPubXMLData(xmlData); } catch (Exception e) { e.printStackTrace(System.err); } } else this.processRequest(); try { toClient.setHPubMacroMessage(this.getHPubMacroMessage()); } catch (Exception e) { } try { toClient.setHPubScreenState(this.getHPubScreenState()); } catch (Exception e) { } try { toClient.setCourt(this.getCourt()); } catch (Exception e) { } try { toClient.setDocketIndexList(this.getDocketIndexList()); } catch (Exception e) { } try { toClient.setDocketIndexListDocketDay(this.getDocketIndexListDocketDay()); } catch (Exception e) { } try { toClient.setDocketIndexListDocketMonth(this.getDocketIndexListDocketMonth()); } catch (Exception e) { } try { toClient.setDocketIndexListDocketType(this.getDocketIndexListDocketType()); } catch (Exception e) { } try { toClient.setDocketIndexListDocketYear(this.getDocketIndexListDocketYear()); } catch (Exception e) { } try { toClient.setDocketIndexListLines(this.getDocketIndexListLines()); } catch (Exception e) { } try { toClient.setDocketIndexListLinesUpdated(this.getDocketIndexListLinesUpdated()); } catch (Exception e) { } try { toClient.setDocketIndexListRoom(this.getDocketIndexListRoom()); } catch (Exception e) { } try { toClient.setDocketIndexListStatus(this.getDocketIndexListStatus()); } catch (Exception e) { } try { toClient.setDocketIndexListTime(this.getDocketIndexListTime()); } catch (Exception e) { } try { toClient.setHPubBeanName(this.getHPubBeanName()); } catch (Exception e) { } try { toClient.setHPubBeanType(this.getHPubBeanType()); } catch (Exception e) { } try { toClient.setHPubEndChainName(this.getHPubEndChainName()); } catch (Exception e) { } try { toClient.setHPubEndType(this.getHPubEndType()); } catch (Exception e) { } try { toClient.setHPubErrorException(this.getHPubErrorException()); } catch (Exception e) { } try { toClient.setHPubErrorMessage(this.getHPubErrorMessage()); } catch (Exception e) { } try { toClient.setHPubErrorOccurred(this.getHPubErrorOccurred()); } catch (Exception e) { } try { toClient.setHPubLinkKey(this.getHPubLinkKey()); } catch (Exception e) { } try { toClient.setHPubOutputParmSuffix(this.getHPubOutputParmSuffix()); } catch (Exception e) { } try { toClient.setHPubStartChainName(this.getHPubStartChainName()); } catch (Exception e) { } try { toClient.setHPubStartPoolName(this.getHPubStartPoolName()); } catch (Exception e) { } try { toClient.setHPubStartType(this.getHPubStartType()); } catch (Exception e) { } try { toClient.setHPubXMLPropertiesWithoutInvoking(this.getHPubXMLPropertiesWithoutInvoking()); } catch (Exception e) { } try { toClient.setMore(this.getMore()); } catch (Exception e) { } try { toClient.setSelectionDay(this.getSelectionDay()); } catch (Exception e) { } try { toClient.setSelectionMonth(this.getSelectionMonth()); } catch (Exception e) { } try { toClient.setSelectionYear(this.getSelectionYear()); } catch (Exception e) { } try { toClient.setHPubXMLProperties(this.getHPubXMLProperties()); } catch (Exception e) { } return toClient; }