public class DSDParticipantIDProviderConstant extends Object implements IDSDParticipantIDProvider
IDSDParticipantIDProvider interface using a
constant set of participant identifiers. This implementation is meant for
testing purposes only. Don't use in production.| Constructor and Description |
|---|
DSDParticipantIDProviderConstant()
Constructor to return an empty participant identifier set.
|
DSDParticipantIDProviderConstant(com.helger.peppolid.IParticipantIdentifier... aPIs)
Constructor with an array of participant IDs
|
DSDParticipantIDProviderConstant(com.helger.peppolid.IParticipantIdentifier aPI)
Constructor with a single participant ID.
|
DSDParticipantIDProviderConstant(Iterable<? extends com.helger.peppolid.IParticipantIdentifier> aPIs)
Constructor with a collection of participant IDs
|
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.collection.impl.ICommonsOrderedSet<com.helger.peppolid.IParticipantIdentifier> |
getAllParticipantIDs(String sLogPrefix,
String sDatasetType,
String sCountryCode,
com.helger.peppolid.IDocumentTypeIdentifier aDocumentTypeID,
ITCErrorHandler aErrorHandler)
Get all participant IDs that match the provided country code and document
type ID.
|
String |
toString() |
public DSDParticipantIDProviderConstant()
public DSDParticipantIDProviderConstant(@Nonnull com.helger.peppolid.IParticipantIdentifier aPI)
aPI - The participant ID to return. May not be null.public DSDParticipantIDProviderConstant(@Nonnull Iterable<? extends com.helger.peppolid.IParticipantIdentifier> aPIs)
aPIs - The participant IDs to be returned. May not be null and
may not contain null values.public DSDParticipantIDProviderConstant(@Nonnull com.helger.peppolid.IParticipantIdentifier... aPIs)
aPIs - The participant IDs to be returned. May not be null and
may not contain null values.@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedSet<com.helger.peppolid.IParticipantIdentifier> getAllParticipantIDs(@Nonnull String sLogPrefix, @Nonnull String sDatasetType, @Nullable String sCountryCode, @Nonnull com.helger.peppolid.IDocumentTypeIdentifier aDocumentTypeID, @Nonnull ITCErrorHandler aErrorHandler)
IDSDParticipantIDProvidergetAllParticipantIDs in interface IDSDParticipantIDProvidersLogPrefix - The logging prefix to be used. May not be null.sDatasetType - Dataset Type to query. May not be null.sCountryCode - Country code to use. Must be a 2-digit string. May be
null.aDocumentTypeID - Document type ID to query. May not be null.aErrorHandler - The error handler to be used. May not be null.null but maybe empty set of Participant IDs.Copyright © 2020 toop.eu. All rights reserved.