Enum DocumentType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DocumentType>

    public enum DocumentType
    extends java.lang.Enum<DocumentType>
    Enumeration representing all the different document kinds an sales document can have.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ACTIVITY
      Constant defining the document type for an opportunity.
      BASKET
      Constant defining the document type for a basket.
      BILLING
      Constant defining the common document type for billing (e.g.
      COMPLAINT
      Constant defining the document type for complaint
      CONFIRMATION
      Constant defining the document type for service confirmation
      CREDIT_MEMO
      Constant defining the common document type for credit memo
      CREDIT_MEMO_CNC
      Constant defining the common document type for credit memo cancellation
      DELIVERY
      Constant defining the document type for delivery
      INVOICE
      Constant defining the common document type for invoice
      INVOICE_CNC
      Constant defining the common document type for invoice cancellation
      INVOICE_CRMBILL
      Constant defining the common document type for CRM billing invoice
      LEAD
      Constant defining the document type for a lead.
      ORDER
      Constant defining the document type for an order.
      QUOTATION
      Constant defining the document type for a quotation.
      RETURNS
      Constant defining the document type for returns
      RFQ
      Constant defining the document type for an request for quotation (rfq).
      SERVICECONTRACT
      Constant defining the document type for service contract
      SERVICEORDER
      Constant defining the document type for service order
      UNKNOWN
      Document type is undefined
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DocumentType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DocumentType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • BASKET

        public static final DocumentType BASKET
        Constant defining the document type for a basket.
      • ORDER

        public static final DocumentType ORDER
        Constant defining the document type for an order.
      • QUOTATION

        public static final DocumentType QUOTATION
        Constant defining the document type for a quotation.
      • RFQ

        public static final DocumentType RFQ
        Constant defining the document type for an request for quotation (rfq).
      • LEAD

        public static final DocumentType LEAD
        Constant defining the document type for a lead. There exists no Business Object right now, to represent a lead. This Constant is only used, for the predecessor document type
      • ACTIVITY

        public static final DocumentType ACTIVITY
        Constant defining the document type for an opportunity.
      • BILLING

        public static final DocumentType BILLING
        Constant defining the common document type for billing (e.g. invoice, credit memo, ...)
      • INVOICE

        public static final DocumentType INVOICE
        Constant defining the common document type for invoice
      • INVOICE_CNC

        public static final DocumentType INVOICE_CNC
        Constant defining the common document type for invoice cancellation
      • INVOICE_CRMBILL

        public static final DocumentType INVOICE_CRMBILL
        Constant defining the common document type for CRM billing invoice
      • CREDIT_MEMO

        public static final DocumentType CREDIT_MEMO
        Constant defining the common document type for credit memo
      • CREDIT_MEMO_CNC

        public static final DocumentType CREDIT_MEMO_CNC
        Constant defining the common document type for credit memo cancellation
      • DELIVERY

        public static final DocumentType DELIVERY
        Constant defining the document type for delivery
      • RETURNS

        public static final DocumentType RETURNS
        Constant defining the document type for returns
      • COMPLAINT

        public static final DocumentType COMPLAINT
        Constant defining the document type for complaint
      • SERVICECONTRACT

        public static final DocumentType SERVICECONTRACT
        Constant defining the document type for service contract
      • SERVICEORDER

        public static final DocumentType SERVICEORDER
        Constant defining the document type for service order
      • CONFIRMATION

        public static final DocumentType CONFIRMATION
        Constant defining the document type for service confirmation
      • UNKNOWN

        public static final DocumentType UNKNOWN
        Document type is undefined
    • Method Detail

      • values

        public static DocumentType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DocumentType c : DocumentType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DocumentType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null