e39b30155c1bf94e271fa75f0df29b0578a23907.svn-base 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package com.sysmodel.listmodel.xmlmodel.impl;
  2. import com.sysmodel.listmodel.xmlmodel.able.PramField;
  3. public class PramFieldImpl implements PramField, Cloneable{
  4. private int classid = 0;
  5. /**
  6. * 参数名称
  7. */
  8. private String name = null;
  9. /**
  10. * 参数值获得的数据库中对应的字段
  11. */
  12. private String valuefrom = null;
  13. /**
  14. * 是否作为CHECKBOX的参数
  15. */
  16. private boolean isInput = false;
  17. public boolean isInput() {
  18. return isInput;
  19. }
  20. public void setCheckbox(boolean isInput) {
  21. this.isInput = isInput;
  22. }
  23. public String getName() {
  24. return name;
  25. }
  26. public void setName(String name) {
  27. this.name = name;
  28. }
  29. public String getValuefrom() {
  30. return valuefrom;
  31. }
  32. public void setValuefrom(String valuefrom) {
  33. this.valuefrom = valuefrom;
  34. }
  35. public String getFieldDefine() {
  36. StringBuffer sb = new StringBuffer();
  37. sb.append("url参数字段定义:参数名:" + this.getName());
  38. sb.append(" 从表:" + this.getClassid());
  39. sb.append(" 字段:" + this.getValuefrom() + "中获得显示值");
  40. return sb.toString();
  41. }
  42. public Object clone() {
  43. PramFieldImpl o = null;
  44. try {
  45. o = (PramFieldImpl) super.clone();
  46. } catch (CloneNotSupportedException e) {
  47. e.printStackTrace();
  48. }
  49. return o;
  50. }
  51. public int getClassid() {
  52. return classid;
  53. }
  54. public void setClassid(int classid) {
  55. this.classid = classid;
  56. }
  57. }