12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- package com.sysmodel.listmodel.xmlmodel.impl;
- import com.sysmodel.listmodel.xmlmodel.able.PramField;
- public class PramFieldImpl implements PramField, Cloneable{
- private int classid = 0;
- /**
- * 参数名称
- */
- private String name = null;
- /**
- * 参数值获得的数据库中对应的字段
- */
- private String valuefrom = null;
- /**
- * 是否作为CHECKBOX的参数
- */
- private boolean isInput = false;
- public boolean isInput() {
- return isInput;
- }
- public void setCheckbox(boolean isInput) {
- this.isInput = isInput;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getValuefrom() {
- return valuefrom;
- }
- public void setValuefrom(String valuefrom) {
- this.valuefrom = valuefrom;
- }
- public String getFieldDefine() {
- StringBuffer sb = new StringBuffer();
- sb.append("url参数字段定义:参数名:" + this.getName());
- sb.append(" 从表:" + this.getClassid());
- sb.append(" 字段:" + this.getValuefrom() + "中获得显示值");
- return sb.toString();
- }
- public Object clone() {
- PramFieldImpl o = null;
- try {
- o = (PramFieldImpl) super.clone();
- } catch (CloneNotSupportedException e) {
- e.printStackTrace();
- }
- return o;
- }
- public int getClassid() {
- return classid;
- }
- public void setClassid(int classid) {
- this.classid = classid;
- }
- }
|