DealAcceptancePoint.java

package com.tradecloud.domain.model.deal;

public enum DealAcceptancePoint {

    /*
        Note: an underscore is appended at the end of the string value,
            to prevent accidental DealCreationPoint and DealAcceptancePoint typos.

            e.g. dealCreationPoint.toString().equals(dealAcceptancePoint.toString()
                should never return true.
    */

    ORDER_CONSIGNED("Order Consigned_"),
    ORDER_FINALISED("Order Finalise_"),
    ORDER_SIGNED_OFF("Order Sign Off_"),
    DOCUMENT_FINALISED("Document Finalise_"),
    ORDER_DELETED("Order Deletion_"),
    ORDER_UNFINALISED("Order Unfinalised_");

    private String stringValue;

    DealAcceptancePoint(String stringValue) {
        this.stringValue = stringValue;
    }

    @Override
    public String toString() {
        return stringValue;
    }
}