PeppolDocumentTypeIdentifier extends DocumentIdentifierType implements
                                          IPeppolIdentifier,
                                          IMutableIdentifier,
                                          IDocumentTypeIdentifier,
                                          Comparable <PeppolDocumentTypeIdentifier>,
                                          ICloneable <PeppolDocumentTypeIdentifier> { public boolean hasDefaultScheme () { return hasScheme (PeppolIdentifierHelper.DEFAULT_DOCUMENT_TYPE_SCHEME); } @DevelopersNote ("Don't invoke manually. Always use the IdentifierFactory!")  PeppolDocumentTypeIdentifier(@Nonnull final IDocumentTypeIdentifier aIdentifier); @DevelopersNote ("Don't invoke manually. Always use the IdentifierFactory!")  PeppolDocumentTypeIdentifier(@Nullable final String sScheme, @Nonnull final String sValue); protected  PeppolDocumentTypeIdentifier(final boolean bVerified, @Nonnull final String sScheme, @Nonnull final String sValue); boolean hasDefaultScheme(); int compareTo(@Nonnull final PeppolDocumentTypeIdentifier aOther); @Nonnull IPeppolDocumentTypeIdentifierParts getParts(); @Override @Nonnull @ReturnsMutableCopy PeppolDocumentTypeIdentifier getClone(); @Override boolean equals(final Object o); @Override int hashCode(); @Nullable static PeppolDocumentTypeIdentifier createIfValid(@Nullable final String sScheme, @Nullable final String sValue);  }
@Test public void testHasDefaultDocumentTypeIdentifierScheme () { final IIdentifierFactory aIF = PeppolIdentifierFactory.INSTANCE; assertTrue (aIF.createDocumentTypeIdentifierWithDefaultScheme ("abc").hasScheme (PeppolIdentifierHelper.DEFAULT_DOCUMENT_TYPE_SCHEME)); assertFalse (new PeppolDocumentTypeIdentifier ("doctype", "abc").hasDefaultScheme ()); }