Class ContactCartElement

  • All Implemented Interfaces:
    CartElement

    public class ContactCartElement
    extends java.lang.Object
    implements CartElement
    Since:
    MicroStrategy Web 9.0.0
    • Method Detail

      • newElement

        public static ContactCartElement newElement​(java.lang.String displayName,
                                                    int type,
                                                    java.lang.String key)
      • getDisplayName

        public java.lang.String getDisplayName()
        Description copied from interface: CartElement
        Get display name to be used in HTML field.
        Specified by:
        getDisplayName in interface CartElement
        Returns:
        String
      • getValue

        public java.lang.String getValue()
        Description copied from interface: CartElement
        Gets formatted text for value field.
        Specified by:
        getValue in interface CartElement
        Returns:
        String
      • isSelected

        public boolean isSelected()
        Description copied from interface: CartElement
        Indicates whether given Cart element is selected or not.
        Specified by:
        isSelected in interface CartElement
        Returns:
        boolean value
      • setSelected

        public void setSelected​(boolean flag)
        Description copied from interface: CartElement
        Specifies whether this element has been selected.
        Specified by:
        setSelected in interface CartElement
        Parameters:
        flag - boolean value
      • getKey

        public java.lang.String getKey()
      • getType

        public int getType()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • mapToContactType

        public static int mapToContactType​(int cartElementType)
        Translate from cart element type to contact type
        Parameters:
        cartElementType - int cart element type to be translated to a contact type
        Returns:
        int from EnumDSSXMLSubscriptionContactType