/** * Copyright (C) 2008 Maurice Zeijen <maurice@zeijen.net> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package example.edi_to_java_transformation.model; import java.math.BigDecimal; import java.util.Date; /** * * @author <a href="mailto:maurice@zeijen.net">Maurice Zeijen</a> */ public class Header { private String orderId; private long orderStatus; private BigDecimal netAmount; private BigDecimal totalAmount; private BigDecimal tax; private Date date; private Customer customer; public String getOrderId() { return orderId; } public void setOrderId(String orderId) { this.orderId = orderId; } public long getOrderStatus() { return orderStatus; } public void setOrderStatus(long orderStatus) { this.orderStatus = orderStatus; } public BigDecimal getNetAmount() { return netAmount; } public void setNetAmount(BigDecimal netAmount) { this.netAmount = netAmount; } public BigDecimal getTotalAmount() { return totalAmount; } public void setTotalAmount(BigDecimal totalAmount) { this.totalAmount = totalAmount; } public BigDecimal getTax() { return tax; } public void setTax(BigDecimal tax) { this.tax = tax; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } @Override public String toString() { StringBuffer desc = new StringBuffer(); desc.append("\tCustomer: " + customer + "\n"); desc.append("\tDate: " + date + "\n"); desc.append("\tDetails: ID=" + orderId + ", Status=" + orderStatus + ", Total=" + totalAmount + "\n"); return desc.toString(); } }