Class ParticipantId
- java.lang.Object
-
- network.oxalis.sniffer.identifier.ParticipantId
-
- All Implemented Interfaces:
Serializable
public class ParticipantId extends Object implements Serializable
- Author:
- Steinar Overbeck Cook, Thore Johnsen
- See Also:
SchemeId, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParticipantId(String participantId)Constructs a new instance based upon a match of the following patterns :xxxx:yyyyyy- i.e.ParticipantId(network.oxalis.vefa.peppol.icd.api.Icd schemeId, String organisationId)Uses combination of SchemeId and Organisation identifier to create new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()static booleanisValidParticipantIdentifierPattern(String value)Simple syntax verifier, verifies icd prefix + codeStringtoString()network.oxalis.vefa.peppol.common.model.ParticipantIdentifiertoVefa()static ParticipantIdvalueOf(String participantId)Parses the provided participant identifier into a validated instance ofParticipantId
-
-
-
Constructor Detail
-
ParticipantId
public ParticipantId(String participantId)
Constructs a new instance based upon a match of the following patterns :xxxx:yyyyyy- i.e. a 4 digit ICD followed by a ':' followed by the organisationID- 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 ofParticipantId- 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
-
toVefa
public network.oxalis.vefa.peppol.common.model.ParticipantIdentifier toVefa()
-
-