Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CadastrosImpGarInTabBat implements KvmSerializable {
- private String codBar;
- private String codRef;
- private String datFab;
- private String datVct;
- private String defOri;
- private String desDef;
- public String getCodBar() {
- return codBar;
- }
- public void setCodBar(String codBar) {
- this.codBar = codBar;
- }
- public String getCodRef() {
- return codRef;
- }
- public void setCodRef(String codRef) {
- this.codRef = codRef;
- }
- public String getDatFab() {
- return datFab;
- }
- public void setDatFab(String datFab) {
- this.datFab = datFab;
- }
- public String getDatVct() {
- return datVct;
- }
- public void setDatVct(String datVct) {
- this.datVct = datVct;
- }
- public String getDefOri() {
- return defOri;
- }
- public void setDefOri(String defOri) {
- this.defOri = defOri;
- }
- public String getDesDef() {
- return desDef;
- }
- public void setDesDef(String desDef) {
- this.desDef = desDef;
- }
- public CadastrosImpGarInTabBat() {
- }
- public CadastrosImpGarInTabBat(String codBar, String codRef, String datFab,
- String datVct, String defOri, String desDef) {
- this.codBar = codBar;
- this.codRef = codRef;
- this.datFab = datFab;
- this.datVct = datVct;
- this.defOri = defOri;
- this.desDef = desDef;
- }
- @Override
- public Object getProperty(int index) {
- switch (index) {
- case 0:
- return codBar;
- case 1:
- return codRef;
- case 2:
- return datFab;
- case 3:
- return datVct;
- case 4:
- return defOri;
- case 5:
- return desDef;
- default:
- return null;
- }
- }
- @Override
- public int getPropertyCount() {
- return 6;
- }
- @SuppressWarnings("rawtypes")
- @Override
- public void getPropertyInfo(int index, Hashtable hash, PropertyInfo info) {
- switch (index) {
- case 0:
- info.type = PropertyInfo.STRING_CLASS;
- info.name = "codBar";
- break;
- case 1:
- info.type = PropertyInfo.STRING_CLASS;
- info.name = "codRef";
- break;
- case 2:
- info.type = PropertyInfo.STRING_CLASS;
- info.name = "datFab";
- break;
- case 3:
- info.type = PropertyInfo.STRING_CLASS;
- info.name = "datVct";
- break;
- case 4:
- info.type = PropertyInfo.STRING_CLASS;
- info.name = "defOri";
- break;
- case 5:
- info.type = PropertyInfo.STRING_CLASS;
- info.name = "desDef";
- break;
- default:
- break;
- }
- }
- @Override
- public void setProperty(int index, Object value) {
- switch (index) {
- case 0:
- codBar = value.toString();
- break;
- case 1:
- codRef = value.toString();
- break;
- case 2:
- datFab = value.toString();
- break;
- case 3:
- datVct = value.toString();
- break;
- case 4:
- defOri = value.toString();
- break;
- case 5:
- desDef = value.toString();
- break;
- default:
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement