package com.unionpaysmart.boss.model.dto.iface;
import java.io.Serializable;
import java.util.Set;
import com.unionpaysmart.boss.orm.domain.trans.sys.SysInterface;
/**
* @author yida
* @date 2015年5月18日 下午8:30:28
*/
public class IfaceDto implements Serializable, Comparable {
private static final long serialVersionUID = 6808646640186815222L;
protected Integer id;// sys_interface Id
protected String ifCode;
protected String description;
protected String ifCodeCh;
protected String uri;
protected Boolean checked;
protected Set ifaceCategorys;
@Override
public int compareTo(IfaceDto ifaceDto) {
if (this == ifaceDto) {
return 0;
} else if (ifaceDto != null) {
IfaceDto u = ifaceDto;
if (id <= u.id) {
return -1;
} else {
return 1;
}
} else {
return -1;
}
}
public IfaceDto() {
super();
}
public IfaceDto(SysInterface sysInterface) {
super();
if (null != sysInterface) {
this.id = sysInterface.getId();
this.ifCode = sysInterface.getIfCode();
this.description = sysInterface.getDescription();
this.ifCodeCh = sysInterface.getIfCodeCh();
this.uri = sysInterface.getUri();
}
}
public Boolean getChecked() {
return checked;
}
public void setChecked(Boolean checked) {
this.checked = checked;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getIfCode() {
return ifCode;
}
public void setIfCode(String ifCode) {
this.ifCode = ifCode;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getIfCodeCh() {
return ifCodeCh;
}
public void setIfCodeCh(String ifCodeCh) {
this.ifCodeCh = ifCodeCh;
}
public String getUri() {
return uri;
}
public void setUri(String uri) {
this.uri = uri;
}
public Set getIfaceCategorys() {
return ifaceCategorys;
}
public void setIfaceCategorys(Set ifaceCategorys) {
this.ifaceCategorys = ifaceCategorys;
}
@Override
public String toString() {
return "IfaceDto [id=" + id + ", ifCode=" + ifCode + ", description=" + description + ", ifCodeCh=" + ifCodeCh + ", uri=" + uri + ", checked=" + checked + "]";
}
}
Set ifaceDtos = new TreeSet();