test_class.file: org.eclipse.winery.repository/src/test/java/org/eclipse/winery/repository/backend/filebased/JsonBasedNamespaceManagerTest.java
test_class.identifier: JsonBasedNamespaceManagerTest
test_case.body: @Test
      public void getNamespacePrefix() {
          String systemTmpDir = System.getProperty("java.io.tmpdir");
          File f = new File(systemTmpDir + "/org.eclipse.winery.test/namespace.json");
          f.delete();
  
          JsonBasedNamespaceManager namespaceManager = new JsonBasedNamespaceManager(f);
  
          String prefix = namespaceManager.getPrefix(Namespaces.TOSCA_WINERY_EXTENSIONS_NAMESPACE);
          
          assertEquals("winery", prefix);
          assertFalse(f.exists());
      }
test_case.class_method_signature: JsonBasedNamespaceManagerTest.getNamespacePrefix()
test_case.full_signature: @Test public void getNamespacePrefix()
test_case.identifier: getNamespacePrefix
test_case.invocations: getProperty delete getPrefix assertEquals assertFalse exists
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getNamespacePrefix()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(JsonBasedNamespaceManager.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(JsonBasedNamespaceManager.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: file
focal_class.modifier: private final
focal_class.original_string: private final File file;
focal_class.type: File
focal_class.var_name: file
focal_class.declarator: namespaceProperties
focal_class.modifier: private
focal_class.original_string: private Map<String, NamespaceProperties> namespaceProperties;
focal_class.type: Map<String, NamespaceProperties>
focal_class.var_name: namespaceProperties
focal_class.file: org.eclipse.winery.repository/src/main/java/org/eclipse/winery/repository/backend/filebased/JsonBasedNamespaceManager.java
focal_class.identifier: JsonBasedNamespaceManager
focal_class.class_method_signature: JsonBasedNamespaceManager.JsonBasedNamespaceManager(File file)
focal_class.full_signature: public  JsonBasedNamespaceManager(File file)
focal_class.identifier: JsonBasedNamespaceManager
focal_class.modifiers: public
focal_class.parameters: (File file)
focal_class.signature:  JsonBasedNamespaceManager(File file)
focal_class.class_method_signature: JsonBasedNamespaceManager.JsonBasedNamespaceManager(File file, boolean local)
focal_class.full_signature: public  JsonBasedNamespaceManager(File file, boolean local)
focal_class.identifier: JsonBasedNamespaceManager
focal_class.modifiers: public
focal_class.parameters: (File file, boolean local)
focal_class.signature:  JsonBasedNamespaceManager(File file, boolean local)
focal_class.class_method_signature: JsonBasedNamespaceManager.getAllPrefixes(String namespace)
focal_class.full_signature: @Override protected Set<String> getAllPrefixes(String namespace)
focal_class.identifier: getAllPrefixes
focal_class.modifiers: @Override protected
focal_class.parameters: (String namespace)
focal_class.return: Set<String>
focal_class.signature: Set<String> getAllPrefixes(String namespace)
focal_class.class_method_signature: JsonBasedNamespaceManager.getPrefix(String namespace)
focal_class.full_signature: @Override public String getPrefix(String namespace)
focal_class.identifier: getPrefix
focal_class.modifiers: @Override public
focal_class.parameters: (String namespace)
focal_class.return: String
focal_class.signature: String getPrefix(String namespace)
focal_class.class_method_signature: JsonBasedNamespaceManager.getNamespaceProperties(String namespace)
focal_class.full_signature: @NonNull public NamespaceProperties getNamespaceProperties(String namespace)
focal_class.identifier: getNamespaceProperties
focal_class.modifiers: @NonNull public
focal_class.parameters: (String namespace)
focal_class.return: NamespaceProperties
focal_class.signature: NamespaceProperties getNamespaceProperties(String namespace)
focal_class.class_method_signature: JsonBasedNamespaceManager.save()
focal_class.full_signature: private void save()
focal_class.identifier: save
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void save()
focal_class.class_method_signature: JsonBasedNamespaceManager.hasPermanentProperties(String namespace)
focal_class.full_signature: @Override public boolean hasPermanentProperties(String namespace)
focal_class.identifier: hasPermanentProperties
focal_class.modifiers: @Override public
focal_class.parameters: (String namespace)
focal_class.return: boolean
focal_class.signature: boolean hasPermanentProperties(String namespace)
focal_class.class_method_signature: JsonBasedNamespaceManager.removeNamespaceProperties(String namespace)
focal_class.full_signature: @Override public void removeNamespaceProperties(String namespace)
focal_class.identifier: removeNamespaceProperties
focal_class.modifiers: @Override public
focal_class.parameters: (String namespace)
focal_class.return: void
focal_class.signature: void removeNamespaceProperties(String namespace)
focal_class.class_method_signature: JsonBasedNamespaceManager.setNamespaceProperties(String namespace, NamespaceProperties properties)
focal_class.full_signature: @Override public void setNamespaceProperties(String namespace, NamespaceProperties properties)
focal_class.identifier: setNamespaceProperties
focal_class.modifiers: @Override public
focal_class.parameters: (String namespace, NamespaceProperties properties)
focal_class.return: void
focal_class.signature: void setNamespaceProperties(String namespace, NamespaceProperties properties)
focal_class.class_method_signature: JsonBasedNamespaceManager.getAllNamespaces()
focal_class.full_signature: @Override public Map<String, NamespaceProperties> getAllNamespaces()
focal_class.identifier: getAllNamespaces
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, NamespaceProperties>
focal_class.signature: Map<String, NamespaceProperties> getAllNamespaces()
focal_class.class_method_signature: JsonBasedNamespaceManager.clear()
focal_class.full_signature: @Override public void clear()
focal_class.identifier: clear
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: JsonBasedNamespaceManager.loadNamespacePropertiesFromFile()
focal_class.full_signature: private Map<String, NamespaceProperties> loadNamespacePropertiesFromFile()
focal_class.identifier: loadNamespacePropertiesFromFile
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Map<String, NamespaceProperties>
focal_class.signature: Map<String, NamespaceProperties> loadNamespacePropertiesFromFile()
focal_class.class_method_signature: JsonBasedNamespaceManager.addAllPermanent(Collection<NamespaceProperties> properties)
focal_class.full_signature: @Override public void addAllPermanent(Collection<NamespaceProperties> properties)
focal_class.identifier: addAllPermanent
focal_class.modifiers: @Override public
focal_class.parameters: (Collection<NamespaceProperties> properties)
focal_class.return: void
focal_class.signature: void addAllPermanent(Collection<NamespaceProperties> properties)
focal_class.class_method_signature: JsonBasedNamespaceManager.replaceAll(Map<String, NamespaceProperties> map)
focal_class.full_signature: @Override public void replaceAll(Map<String, NamespaceProperties> map)
focal_class.identifier: replaceAll
focal_class.modifiers: @Override public
focal_class.parameters: (Map<String, NamespaceProperties> map)
focal_class.return: void
focal_class.signature: void replaceAll(Map<String, NamespaceProperties> map)
focal_class.class_method_signature: JsonBasedNamespaceManager.isPatternNamespace(String namespace)
focal_class.full_signature: @Override public boolean isPatternNamespace(String namespace)
focal_class.identifier: isPatternNamespace
focal_class.modifiers: @Override public
focal_class.parameters: (String namespace)
focal_class.return: boolean
focal_class.signature: boolean isPatternNamespace(String namespace)
focal_class.class_method_signature: JsonBasedNamespaceManager.isSecureCollection(String namespace)
focal_class.full_signature: @Override public boolean isSecureCollection(String namespace)
focal_class.identifier: isSecureCollection
focal_class.modifiers: @Override public
focal_class.parameters: (String namespace)
focal_class.return: boolean
focal_class.signature: boolean isSecureCollection(String namespace)
focal_class.class_method_signature: JsonBasedNamespaceManager.isGeneratedNamespace(String namespace)
focal_class.full_signature: @Override public boolean isGeneratedNamespace(String namespace)
focal_class.identifier: isGeneratedNamespace
focal_class.modifiers: @Override public
focal_class.parameters: (String namespace)
focal_class.return: boolean
focal_class.signature: boolean isGeneratedNamespace(String namespace)
focal_class.superclass: extends AbstractNamespaceManager
focal_method.body: @Override
      public String getPrefix(String namespace) {
          return getNamespaceProperties(Objects.isNull(namespace) ? "" : namespace).getPrefix();
      }
focal_method.class_method_signature: JsonBasedNamespaceManager.getPrefix(String namespace)
focal_method.full_signature: @Override public String getPrefix(String namespace)
focal_method.identifier: getPrefix
focal_method.invocations: getPrefix getNamespaceProperties isNull
focal_method.modifiers: @Override public
focal_method.parameters: (String namespace)
focal_method.return: String
focal_method.signature: String getPrefix(String namespace)