PeppolParticipantIdentifier extends ParticipantIdentifierType implements
                                         IParticipantIdentifier,
                                         IPeppolIdentifier,
                                         IMutableIdentifier,
                                         Comparable <PeppolParticipantIdentifier>,
                                         ICloneable <PeppolParticipantIdentifier> { public boolean hasDefaultScheme () { return hasScheme (PeppolIdentifierHelper.DEFAULT_PARTICIPANT_SCHEME); } @DevelopersNote ("Don't invoke manually. Always use the IdentifierFactory!")  PeppolParticipantIdentifier(@Nonnull final IParticipantIdentifier aIdentifier); @DevelopersNote ("Don't invoke manually. Always use the IdentifierFactory!")  PeppolParticipantIdentifier(@Nullable final String sScheme, @Nonnull final String sValue); protected  PeppolParticipantIdentifier(final boolean bVerified, @Nonnull final String sScheme, @Nonnull final String sValue); boolean hasDefaultScheme(); boolean isSemanticallyValid(); @Nullable String getIssuingAgencyID(); @Nullable String getLocalParticipantID(); int compareTo(@Nonnull final PeppolParticipantIdentifier aOther); @Override @Nonnull @ReturnsMutableCopy PeppolParticipantIdentifier getClone(); @Override boolean equals(final Object o); @Override int hashCode(); @Nullable static PeppolParticipantIdentifier createIfValid(@Nullable final String sScheme, @Nullable final String sValue); static boolean isValidValueWithDefaultScheme(@Nonnull final String sValue);  }
@Test public void testHasDefaultScheme () { final IIdentifierFactory aIF = PeppolIdentifierFactory.INSTANCE; assertTrue (aIF.createParticipantIdentifierWithDefaultScheme ("abc").hasScheme (PeppolIdentifierHelper.DEFAULT_PARTICIPANT_SCHEME)); assertFalse (new PeppolParticipantIdentifier ("dummy-actorid-upis", "abc").hasDefaultScheme ()); }