Class Identity


  • public class Identity
    extends Object
    Identity
    • Constructor Detail

      • Identity

        public Identity()
    • Method Detail

      • fullLegalName

        public Identity fullLegalName​(String fullLegalName)
        The complete legal name of the individual or entity.
        Parameters:
        fullLegalName - The complete legal name of the individual or entity.
        Returns:
        the current Identity instance, allowing for method chaining
      • getFullLegalName

        public String getFullLegalName()
        The complete legal name of the individual or entity.
        Returns:
        fullLegalName The complete legal name of the individual or entity.
      • setFullLegalName

        public void setFullLegalName​(String fullLegalName)
        The complete legal name of the individual or entity.
        Parameters:
        fullLegalName - The complete legal name of the individual or entity.
      • name

        public Identity name​(String name)
        A commonly used or human-readable name for the individual or entity.
        Parameters:
        name - A commonly used or human-readable name for the individual or entity.
        Returns:
        the current Identity instance, allowing for method chaining
      • getName

        public String getName()
        A commonly used or human-readable name for the individual or entity.
        Returns:
        name A commonly used or human-readable name for the individual or entity.
      • setName

        public void setName​(String name)
        A commonly used or human-readable name for the individual or entity.
        Parameters:
        name - A commonly used or human-readable name for the individual or entity.
      • equals

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

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

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

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