UBL23DocumentTypes { @Nonnull @ReturnsMutableCopy public static ICommonsSet <String> getAllNamespaces () { return s_aNamespace2DocType.copyOfKeySet (); } private  UBL23DocumentTypes(); @Nonnull @ReturnsMutableCopy static ICommonsSet <String> getAllNamespaces(); @Nullable static EUBL23DocumentType getDocumentTypeOfNamespace(@Nullable final String sNamespace); @Nullable static Class <?> getImplementationClassOfNamespace(@Nullable final String sNamespace); @Nullable static EUBL23DocumentType getDocumentTypeOfImplementationClass(@Nullable final Class <?> aImplClass); @Nullable static Schema getSchemaOfNamespace(@Nullable final String sNamespace); @Nonnull @ReturnsMutableCopy static ICommonsSet <String> getAllLocalNames(); @Nullable static EUBL23DocumentType 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 testGetAllNamespaces () { assertNotNull (UBL23DocumentTypes.getAllNamespaces ()); assertNotNull (UBL23DocumentTypes.getAllLocalNames ()); assertEquals (UBL23DocumentTypes.getAllNamespaces ().size (), UBL23DocumentTypes.getAllLocalNames ().size ()); for (final String sNamespace : UBL23DocumentTypes.getAllNamespaces ()) { assertNotNull (UBL23DocumentTypes.getDocumentTypeOfNamespace (sNamespace)); assertNotNull (UBL23DocumentTypes.getImplementationClassOfNamespace (sNamespace)); assertNotNull (UBL23DocumentTypes.getSchemaOfNamespace (sNamespace)); } assertNull (UBL23DocumentTypes.getDocumentTypeOfNamespace ("any")); assertNull (UBL23DocumentTypes.getImplementationClassOfNamespace ("any")); assertNull (UBL23DocumentTypes.getSchemaOfNamespace ("any")); assertNull (UBL23DocumentTypes.getDocumentTypeOfNamespace (null)); assertNull (UBL23DocumentTypes.getImplementationClassOfNamespace (null)); assertNull (UBL23DocumentTypes.getSchemaOfNamespace (null)); for (final String sNamespace : UBL23DocumentTypes.getAllLocalNames ()) { assertNotNull (UBL23DocumentTypes.getDocumentTypeOfLocalName (sNamespace)); assertNotNull (UBL23DocumentTypes.getImplementationClassOfLocalName (sNamespace)); assertNotNull (UBL23DocumentTypes.getSchemaOfLocalName (sNamespace)); } assertNull (UBL23DocumentTypes.getDocumentTypeOfLocalName ("any")); assertNull (UBL23DocumentTypes.getImplementationClassOfLocalName ("any")); assertNull (UBL23DocumentTypes.getSchemaOfLocalName ("any")); assertNull (UBL23DocumentTypes.getDocumentTypeOfLocalName (null)); assertNull (UBL23DocumentTypes.getImplementationClassOfLocalName (null)); assertNull (UBL23DocumentTypes.getSchemaOfLocalName (null)); }