概述
//AggVO
package nc.ui.so.m30;
import nc.vo.pub.AggregatedValueObject;
import nc.vo.pub.CircularlyAccessibleValueObject;
/**
* add by xms 2015年6月11日14:29:26
* 记录出库单车辆GPS信息VO
* @author xms
*
*/
public class AggGPSBillVO extends AggregatedValueObject {
private static final long serialVersionUID = 722545634369966539L;
private GPSBodyVO[] m_children;
private GPSHeaderVO m_parent;
public AggGPSBillVO() {
}
public CircularlyAccessibleValueObject[] getChildrenVO() {
return this.m_children;
}
public CircularlyAccessibleValueObject getParentVO() {
return this.m_parent;
}
public void setChildrenVO(CircularlyAccessibleValueObject[] children) {
this.m_children = ((GPSBodyVO[]) children);
}
public void setParentVO(CircularlyAccessibleValueObject parent) {
this.m_parent = ((GPSHeaderVO) parent);
}
}
//BodyVO
package nc.ui.so.m30;
import nc.vo.pub.CircularlyAccessibleValueObject;
import nc.vo.pub.ValidationException;
/**
* add by xms 2015年6月11日14:29:26
* 记录出库单车辆GPS信息VO
* @author xms
*
*/
public class GPSBodyVO extends CircularlyAccessibleValueObject{
private String vehicle; //车牌号
private String gpstime; //GPS时间
private String longitude; //经度(度)
private String latitude; //纬度(度)
private String cstatus; //状态
private String velocity;//velocity
private String angle; //angle
private String oil; //oil
private String mile; //里程(米)
private String sensor; //传感器
private String positioninfo; //位置描述
@Override
public String[] getAttributeNames() {
return null;
}
@Override
public Object getAttributeValue(String paramString) {
if(paramString.equals("vehicle"))
return vehicle;
if(paramString.equals("gpstime"))
return gpstime;
if(paramString.equals("longitude"))
return longitude;
if(paramString.equals("latitude"))
return latitude;
if(paramString.equals("cstatus"))
return cstatus;
if(paramString.equals("velocity"))
return velocity;
if(paramString.equals("angle"))
return angle;
if(paramString.equals("oil"))
return oil;
if(paramString.equals("mile"))
return mile;
if(paramString.equals("sensor"))
return sensor;
if(paramString.equals("positioninfo"))
return positioninfo;
else
return null;
}
@Override
public void setAttributeValue(String paramString, Object paramObject) {
if(paramString.equals("vehicle"))
vehicle=(String) paramObject;
if(paramString.equals("gpstime"))
gpstime=(String) paramObject;
if(paramString.equals("longitude"))
longitude=(String) paramObject;
if(paramString.equals("latitude"))
latitude=(String) paramObject;
if(paramString.equals("cstatus"))
cstatus=(String) paramObject;
if(paramString.equals("velocity"))
velocity=(String) paramObject;
if(paramString.equals("angle"))
angle=(String) paramObject;
if(paramString.equals("oil"))
oil=(String) paramObject;
if(paramString.equals("mile"))
mile=(String) paramObject;
if(paramString.equals("sensor"))
sensor=(String) paramObject;
if(paramString.equals("positioninfo"))
positioninfo=(String) paramObject;
}
@Override
public String getEntityName() {
return null;
}
@Override
public void validate() throws ValidationException {
}
public String getVehicle() {
return vehicle;
}
public void setVehicle(String vehicle) {
this.vehicle = vehicle;
}
public String getGpstime() {
return gpstime;
}
public void setGpstime(String gpstime) {
this.gpstime = gpstime;
}
public String getLongitude() {
return longitude;
}
public void setLongitude(String longitude) {
this.longitude = longitude;
}
public String getLatitude() {
return latitude;
}
public void setLatitude(String latitude) {
this.latitude = latitude;
}
public String getCstatus() {
return cstatus;
}
public void setCstatus(String cstatus) {
this.cstatus = cstatus;
}
public String getVelocity() {
return velocity;
}
public void setVelocity(String velocity) {
this.velocity = velocity;
}
public String getAngle() {
return angle;
}
public void setAngle(String angle) {
this.angle = angle;
}
public String getOil() {
return oil;
}
public void setOil(String oil) {
this.oil = oil;
}
public String getMile() {
return mile;
}
public void setMile(String mile) {
this.mile = mile;
}
public String getSensor() {
return sensor;
}
public void setSensor(String sensor) {
this.sensor = sensor;
}
public String getPositioninfo() {
return positioninfo;
}
public void setPositioninfo(String positioninfo) {
this.positioninfo = positioninfo;
}
}
//HeadVO
package nc.ui.so.m30;
import nc.vo.pub.CircularlyAccessibleValueObject;
import nc.vo.pub.ValidationException;
/**
* add by xms 2015年6月11日14:29:26
* 记录出库单车辆GPS信息VO
* @author xms
*
*/
public class GPSHeaderVO extends CircularlyAccessibleValueObject {
@Override
public String[] getAttributeNames() {
return null;
}
@Override
public Object getAttributeValue(String arg0) {
return null;
}
@Override
public void setAttributeValue(String arg0, Object arg1) {
}
@Override
public String getEntityName() {
return null;
}
@Override
public void validate() throws ValidationException {
}
}
最后
以上就是年轻航空为你收集整理的nc 自定义VO的全部内容,希望文章能够帮你解决nc 自定义VO所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复