@Test public void testGetFullPackageNameWithString() { String sourceDirectoryPackageName = "Data"; String umlPackageNameWithClass = "Data::de.crowdcode.test.Company"; String result = packageHelper.getFullPackageName( umlPackageNameWithClass, sourceDirectoryPackageName); assertEquals("de.crowdcode.test.Company", result); }
public String getFullPackageName(Classifier clazz, String sourceDirectoryPackageName) { logger.log(Level.FINE, "Qualified name: " + clazz.getQualifiedName()); String toBeDeleted = sourceDirectoryPackageName + "::"; String fullPackageName = clazz.getQualifiedName().replaceFirst( toBeDeleted, ""); toBeDeleted = "::" + clazz.getName(); fullPackageName = fullPackageName.replaceFirst(toBeDeleted, ""); fullPackageName = fullPackageName.replaceAll("::", "."); logger.log(Level.FINE, "Real package name: " + fullPackageName); return fullPackageName; }
PackageHelper { public String getFullPackageName(Classifier clazz, String sourceDirectoryPackageName) { logger.log(Level.FINE, "Qualified name: " + clazz.getQualifiedName()); String toBeDeleted = sourceDirectoryPackageName + "::"; String fullPackageName = clazz.getQualifiedName().replaceFirst( toBeDeleted, ""); toBeDeleted = "::" + clazz.getName(); fullPackageName = fullPackageName.replaceFirst(toBeDeleted, ""); fullPackageName = fullPackageName.replaceAll("::", "."); logger.log(Level.FINE, "Real package name: " + fullPackageName); return fullPackageName; } }
PackageHelper { public String getFullPackageName(Classifier clazz, String sourceDirectoryPackageName) { logger.log(Level.FINE, "Qualified name: " + clazz.getQualifiedName()); String toBeDeleted = sourceDirectoryPackageName + "::"; String fullPackageName = clazz.getQualifiedName().replaceFirst( toBeDeleted, ""); toBeDeleted = "::" + clazz.getName(); fullPackageName = fullPackageName.replaceFirst(toBeDeleted, ""); fullPackageName = fullPackageName.replaceAll("::", "."); logger.log(Level.FINE, "Real package name: " + fullPackageName); return fullPackageName; }  }
PackageHelper { public String getFullPackageName(Classifier clazz, String sourceDirectoryPackageName) { logger.log(Level.FINE, "Qualified name: " + clazz.getQualifiedName()); String toBeDeleted = sourceDirectoryPackageName + "::"; String fullPackageName = clazz.getQualifiedName().replaceFirst( toBeDeleted, ""); toBeDeleted = "::" + clazz.getName(); fullPackageName = fullPackageName.replaceFirst(toBeDeleted, ""); fullPackageName = fullPackageName.replaceAll("::", "."); logger.log(Level.FINE, "Real package name: " + fullPackageName); return fullPackageName; }  org.eclipse.uml2.uml.Package getRootPackage(Context context); String getFullPackageName(Classifier clazz,
			String sourceDirectoryPackageName); String getFullPackageName(String umlPackageNameWithClass,
			String sourceDirectoryPackageName); String removeUmlPrefixes(final String fullQualifiedName); }
PackageHelper { public String getFullPackageName(Classifier clazz, String sourceDirectoryPackageName) { logger.log(Level.FINE, "Qualified name: " + clazz.getQualifiedName()); String toBeDeleted = sourceDirectoryPackageName + "::"; String fullPackageName = clazz.getQualifiedName().replaceFirst( toBeDeleted, ""); toBeDeleted = "::" + clazz.getName(); fullPackageName = fullPackageName.replaceFirst(toBeDeleted, ""); fullPackageName = fullPackageName.replaceAll("::", "."); logger.log(Level.FINE, "Real package name: " + fullPackageName); return fullPackageName; }  org.eclipse.uml2.uml.Package getRootPackage(Context context); String getFullPackageName(Classifier clazz,
			String sourceDirectoryPackageName); String getFullPackageName(String umlPackageNameWithClass,
			String sourceDirectoryPackageName); String removeUmlPrefixes(final String fullQualifiedName);  }