Package org.pshdl.interpreter.utils

Examples of org.pshdl.interpreter.utils.IOUtil$IDType


        System.err.println(it.getID().getValue());

        InvoiceType it2 = it;

        IDType id = new IDType();
        id.setValue("100");
        it2.setID(id);

        System.err.println(it2.getID().getValue());

        FileOutputStream fos = new FileOutputStream(new File(new File("E:/Temp/in"), id.getValue()));

        InvoiceTypeMarshaller.marshal(it2, fos);
    }
View Full Code Here


    }

    public String toString() {
        StringBuilder sb = new StringBuilder(super.toString());
        if (invoiceToBeRendered != null) {
            IDType invoiceID = invoiceToBeRendered.getID();
            sb.append(formatKeyValue("invoiceKeyToBeRendered", invoiceID.getValue()));
        }
        return sb.toString();
    }
View Full Code Here

            String issueDateString =
                    CalendarUtil.toLocalDate(invoiceType.getIssueDate().getValue()).toString("yyyy-MM-dd");
            if (issueDateString != null) {
                sb.append(issueDateString);
            }
            IDType invoiceID = invoiceType.getID();
            if (invoiceID != null) {
                if (!sb.toString().isEmpty()) { // it means that the issue date is already appended
                    sb.append("_");
                }
                sb.append(invoiceID.getValue());
            }
            InvoiceCreationInput input = (InvoiceCreationInput)getInput();
            sb.append(input.getInvoiceOutputFormat().getFileSuffix());
        }
        if (!sb.toString().isEmpty()) {
View Full Code Here

        StringBuilder sb = new StringBuilder();
        if (invoiceOutputURI != null) {
            sb.append(StringUtil.formatKeyValue("invoiceOutputURI", getInvoiceOutputURI().getPath()));
        }
        if (generatedInvoiceType != null) {
            IDType invoiceIDType = generatedInvoiceType.getID();
            if (invoiceIDType != null) {
                sb.append(StringUtil.formatKeyValue("generatedInvoiceKey",invoiceIDType.getValue()));
            }

        }
        return sb.toString();
    }
View Full Code Here

TOP

Related Classes of org.pshdl.interpreter.utils.IOUtil$IDType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.