1 4 package com.openedit.store; 5 6 10 public class OrderState 11 { 12 protected boolean fieldOk; 13 protected String fieldId; 14 15 protected String fieldDescription; 16 public String getDescription() 17 { 18 if ( fieldDescription == null) 19 { 20 return "No Order Details Available"; 21 } 22 return fieldDescription; 23 } 24 public void setDescription(String inDescription) 25 { 26 fieldDescription = inDescription; 27 } 28 public boolean isOk() 29 { 30 return fieldOk; 31 } 32 public void setOk(boolean inOk) 33 { 34 fieldOk = inOk; 35 } 36 37 public String toString() 38 { 39 return getDescription(); 40 } 41 public String getId() 42 { 43 return fieldId; 44 } 45 public void setId(String inId) 46 { 47 fieldId = inId; 48 } 49 public OrderState copy() 50 { 51 OrderState state = new OrderState(); 52 state.setId( getId()); 53 state.setOk(isOk()); 54 state.setDescription(getDescription()); 55 return state; 56 } 57 } 58 | Popular Tags |