UBLPEDocumentTypes { @Nullable public static Schema getSchemaOfImplementationClass (@Nullable final Class <?> aImplClass) { final EUBLPEDocumentType eDocType = getDocumentTypeOfImplementationClass (aImplClass); return eDocType == null ? null : eDocType.getSchema (); } private  UBLPEDocumentTypes(); @Nonnull @ReturnsMutableCopy static ICommonsSet <String> getAllLocalNames(); @Nullable static EUBLPEDocumentType getDocumentTypeOfLocalName(@Nullable final String sLocalName); @Nullable static Class <?> getImplementationClassOfLocalName(@Nullable final String sLocalName); @Nullable static EUBLPEDocumentType 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 (UBLPEDocumentTypes.getDocumentTypeOfImplementationClass (null)); assertNull (UBLPEDocumentTypes.getSchemaOfImplementationClass (null)); assertNull (UBLPEDocumentTypes.getSchemaOfImplementationClass (String.class)); for (final EUBLPEDocumentType eDocType : EUBLPEDocumentType.values ()) { assertSame (eDocType, UBLPEDocumentTypes.getDocumentTypeOfImplementationClass (eDocType.getImplementationClass ())); assertSame (eDocType.getSchema (), UBLPEDocumentTypes.getSchemaOfImplementationClass (eDocType.getImplementationClass ())); assertNotNull (eDocType.getValidator (null)); } }