Class ParticipantId

    • Constructor Detail

      • ParticipantId

        public ParticipantId​(String participantId)
        Constructs a new instance based upon a match of the following patterns :
        1. xxxx:yyyyyy - i.e. a 4 digit ICD followed by a ':' followed by the organisationID
        2. AB999999999 - i.e. a prefix of at least two characters followed by something
        Parameters:
        participantId - participant Id represented as a string
        Throws:
        InvalidPeppolParticipantException - if we are unable to recognize the input as a PEPPOL participant ID
      • ParticipantId

        public ParticipantId​(network.oxalis.vefa.peppol.icd.api.Icd schemeId,
                             String organisationId)
        Uses combination of SchemeId and Organisation identifier to create new instance. The Organisation identifier is validated in accordance with the rules of the scheme.
        Parameters:
        schemeId -
        organisationId -
    • Method Detail

      • valueOf

        public static ParticipantId valueOf​(String participantId)
        Parses the provided participant identifier into a validated instance of ParticipantId
        Parameters:
        participantId - The organisation number as xxxx:yyyy or just an organisation number
        Returns:
        validated instance of Participant Id
      • isValidParticipantIdentifierPattern

        public static boolean isValidParticipantIdentifierPattern​(String value)
        Simple syntax verifier, verifies icd prefix + code
      • hashCode

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

        public network.oxalis.vefa.peppol.common.model.ParticipantIdentifier toVefa()