Class AccountParty


  • public class AccountParty
    extends Object
    AccountParty
    • Constructor Detail

      • AccountParty

        public AccountParty()
    • Method Detail

      • identity

        public AccountParty identity​(Identity identity)
        identity
        Parameters:
        identity -
        Returns:
        the current AccountParty instance, allowing for method chaining
      • getIdentity

        public Identity getIdentity()
        Get identity
        Returns:
        identity
      • setIdentity

        public void setIdentity​(Identity identity)
        identity
        Parameters:
        identity -
      • role

        public AccountParty role​(PartyRole role)
        role
        Parameters:
        role -
        Returns:
        the current AccountParty instance, allowing for method chaining
      • getRole

        public PartyRole getRole()
        Get role
        Returns:
        role
      • setRole

        public void setRole​(PartyRole role)
        role
        Parameters:
        role -
      • equals

        public boolean equals​(Object o)
        Return true if this AccountParty object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static AccountParty fromJson​(String jsonString)
                                     throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of AccountParty given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of AccountParty
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to AccountParty
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of AccountParty to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException