/** * This method implements a procedure from morphing the object into an web page FORM * representation. What I meant to say is that I can say about an object for example: < INPUT * type='hidden" name="searchCriteria" value="natrix"> < INPUT type='hidden" name="oper" * value="1"> < INPUT type='hidden" name="searchType" value="1">. * * @return Web page FORM representation of the object. */ public String toFORMParam() { StringBuffer res = new StringBuffer(); if (null != searchType) { res.append(Utilities.writeFormParameter("searchType", searchType.toString())); } if (null != searchString) { res.append(Utilities.writeFormParameter("searchString", searchString)); } if (null != relationOp) { res.append(Utilities.writeFormParameter("relationOp", relationOp.toString())); } if (null != searchStringMin) { res.append(Utilities.writeFormParameter("searchStringMin", searchStringMin)); } if (null != searchStringMax) { res.append(Utilities.writeFormParameter("searchStringMax", searchStringMax)); } if (null != country) { res.append(Utilities.writeFormParameter("country", country)); } if (null != yearMin) { res.append(Utilities.writeFormParameter("yearMin", yearMin)); } if (null != yearMax) { res.append(Utilities.writeFormParameter("yearMax", yearMax)); } // Search in results if (null != criteriaSearch) { res.append(Utilities.writeFormParameter("criteriaSearch", criteriaSearch)); } if (null != criteriaType) { res.append(Utilities.writeFormParameter("criteriaType", criteriaType.toString())); } if (null != oper) { res.append(Utilities.writeFormParameter("oper", oper.toString())); } return res.toString(); }
/** * This method implements a procedure from morphing the object into an web page FORM * representation. What I meant to say is that I can say about an object for example: < INPUT * type='hidden" name="searchCriteria" value="natrix"> < INPUT type='hidden" name="oper" * value="1"> < INPUT type='hidden" name="searchType" value="1">. * * @return Web page FORM representation of the object. */ public String toFORMParam() { StringBuffer form = new StringBuffer(); if (null != author) { form.append(Utilities.writeFormParameter("author", author)); } if (null != relationOpAuthor) { form.append(Utilities.writeFormParameter("relationOpAuthor", relationOpAuthor.toString())); } if (null != date) { form.append(Utilities.writeFormParameter("date", date)); } if (null != date1) { form.append(Utilities.writeFormParameter("date1", date1)); } if (null != relationOpDate) { form.append(Utilities.writeFormParameter("relationOpDate", relationOpDate.toString())); } if (null != title) { form.append(Utilities.writeFormParameter("title", title)); } if (null != relationOpTitle) { form.append(Utilities.writeFormParameter("relationOpTitle", relationOpTitle.toString())); } if (null != editor) { form.append(Utilities.writeFormParameter("editor", editor)); } if (null != relationOpEditor) { form.append(Utilities.writeFormParameter("relationOpEditor", relationOpEditor.toString())); } if (null != publisher) { form.append(Utilities.writeFormParameter("publisher", publisher)); } if (null != relationOpPublisher) { form.append( Utilities.writeFormParameter("relationOpPublisher", relationOpPublisher.toString())); } // Search in results if (null != criteriaSearch) { form.append(Utilities.writeFormParameter("criteriaSearch", criteriaSearch)); } if (null != criteriaType) { form.append(Utilities.writeFormParameter("criteriaType", criteriaType.toString())); } if (null != oper) { form.append(Utilities.writeFormParameter("oper", oper.toString())); } return form.toString(); }