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