此内容没有您所选择的语言版本。
2.20. Edifact Java Compiler Example
The Edifact Java Compiler allows you to write simple Java code such as the following:
// Create an instance of the EJC generated Factory class. This should normally be cached and reused... OrderFactory orderFactory = OrderFactory.getInstance(); // Bind the EDI message stream data into the EJC generated Order model... Order order = orderFactory.fromEDI(ediStream); // Process the order data... Header header = order.getHeader(); Name name = header.getCustomerDetails().getName(); List<OrderItem> orderItems = order.getOrderItems();