UBL21DocumentTypes { @Nullable public static Schema getSchemaOfImplementationClass (@Nullable final Class <?> aImplClass) { final EUBL21DocumentType eDocType = getDocumentTypeOfImplementationClass (aImplClass); return eDocType == null ? null : eDocType.getSchema (); } private  UBL21DocumentTypes(); @Nonnull @ReturnsMutableCopy static ICommonsSet <String> getAllNamespaces(); @Nullable static EUBL21DocumentType getDocumentTypeOfNamespace(@Nullable final String sNamespace); @Nullable static Class <?> getImplementationClassOfNamespace(@Nullable final String sNamespace); @Nullable static EUBL21DocumentType getDocumentTypeOfImplementationClass(@Nullable final Class <?> aImplClass); @Nullable static Schema getSchemaOfNamespace(@Nullable final String sNamespace); @Nonnull @ReturnsMutableCopy static ICommonsSet <String> getAllLocalNames(); @Nullable static EUBL21DocumentType getDocumentTypeOfLocalName(@Nullable final String sLocalName); @Nullable static Class <?> getImplementationClassOfLocalName(@Nullable final String sLocalName); @Nullable static Schema getSchemaOfLocalName(@Nullable final String sLocalName); @Nullable static Schema getSchemaOfImplementationClass(@Nullable final Class <?> aImplClass);  }
@Test public void testGetSchemaOfImplementationClass () { assertNull (UBL21DocumentTypes.getDocumentTypeOfImplementationClass (null)); assertNull (UBL21DocumentTypes.getSchemaOfImplementationClass (null)); assertNull (UBL21DocumentTypes.getSchemaOfImplementationClass (String.class)); for (final EUBL21DocumentType eDocType : EUBL21DocumentType.values ()) { assertSame (eDocType, UBL21DocumentTypes.getDocumentTypeOfImplementationClass (eDocType.getImplementationClass ())); assertSame (eDocType.getSchema (), UBL21DocumentTypes.getSchemaOfImplementationClass (eDocType.getImplementationClass ())); assertNotNull (eDocType.getValidator ()); } }