jf开发中的问题

由于JF中form 到model 是属性复制的,属性类型都一样的。
那么如果我有一个需求是:方案是否公开= 公开, 认购后公开 ,截止后公开
这样子。在界面一级一般表示为 0 ,1 ,2
但我想在model一级中用一个对象表示即值对象Vo 来实现值对象共享。
在model一级中我应该在何处转换?

====
public class PurchaseTypeFactory {
private ArrayList<String> al;
public PurchaseTypeFactory(){
al.add("合买");
al.add("追号合买");
al.add("追号代购");
al.add("代购");
}
private Hashtable<Integer, PurchaseType> purchaseTypes;
public PurchaseType getPurchaseType(Integer key) {

PurchaseType purchaseType = (PurchaseType) purchaseTypes.get(key);
if( purchaseType == null && al.get(key)!= null ) {
purchaseType = new PurchaseType(key,al.get(key));
purchaseTypes.put( key, purchaseType );
}
return purchaseType;
}

// 返回所有
public Collection getPurchaseTypes( ) {
return al;
}

}

public class PurchaseType implements Serializable {

private Integer TypeId;
private String Desc;

public Integer getTypeId() {
return TypeId;
}
public void setTypeId(Integer typeId) {
TypeId = typeId;
}

public String getDesc() {
return Desc;
}
public void setDesc(String desc) {
Desc = desc;
}
public PurchaseType(Integer Key,String str){
TypeId = Key;
Desc = str;
}
}

>在界面一级一般表示为 0 ,1 ,2
在界面模型和Model之间复制,可以采取变通方式,在界面模型Form将有关界面0 1 2之类表达和值对象之间做个转换,然后做成和Model一样的set/get方法,这样就可以。