@Test public void testRemoveUmlPrefixes2() { String fullQualifiedName = "Data::de.crowdcode.test.Company"; String result = packageHelper.removeUmlPrefixes(fullQualifiedName); assertEquals("Data::de.crowdcode.test.Company", result); }
public String removeUmlPrefixes(final String fullQualifiedName) { String result = fullQualifiedName.replace( UmlTypePrefix.MAGIC_DRAW_PROFILE_DATATYPES.getValue(), ""); result = result.replace(UmlTypePrefix.UML_PRIMITIVE_TYPES.getValue(), ""); result = result.replace(UmlTypePrefix.JAVA_PRIMITIVE_TYPES.getValue(), ""); result = result.replace( UmlTypePrefix.VALIDATION_PROFILE_OCL_LIBRARY.getValue(), ""); if (StringUtils .contains(result, UmlTypePrefix.DATA_DATATYPE.getValue())) { result = result.replace(UmlTypePrefix.DATA_DATATYPE.getValue(), ""); } if (StringUtils.contains(result, UmlTypePrefix.DATA_DATATYPE_BINDINGS.getValue())) { result = result.replace( UmlTypePrefix.DATA_DATATYPE_BINDINGS.getValue(), ""); } return result; }
PackageHelper { public String removeUmlPrefixes(final String fullQualifiedName) { String result = fullQualifiedName.replace( UmlTypePrefix.MAGIC_DRAW_PROFILE_DATATYPES.getValue(), ""); result = result.replace(UmlTypePrefix.UML_PRIMITIVE_TYPES.getValue(), ""); result = result.replace(UmlTypePrefix.JAVA_PRIMITIVE_TYPES.getValue(), ""); result = result.replace( UmlTypePrefix.VALIDATION_PROFILE_OCL_LIBRARY.getValue(), ""); if (StringUtils .contains(result, UmlTypePrefix.DATA_DATATYPE.getValue())) { result = result.replace(UmlTypePrefix.DATA_DATATYPE.getValue(), ""); } if (StringUtils.contains(result, UmlTypePrefix.DATA_DATATYPE_BINDINGS.getValue())) { result = result.replace( UmlTypePrefix.DATA_DATATYPE_BINDINGS.getValue(), ""); } return result; } }
PackageHelper { public String removeUmlPrefixes(final String fullQualifiedName) { String result = fullQualifiedName.replace( UmlTypePrefix.MAGIC_DRAW_PROFILE_DATATYPES.getValue(), ""); result = result.replace(UmlTypePrefix.UML_PRIMITIVE_TYPES.getValue(), ""); result = result.replace(UmlTypePrefix.JAVA_PRIMITIVE_TYPES.getValue(), ""); result = result.replace( UmlTypePrefix.VALIDATION_PROFILE_OCL_LIBRARY.getValue(), ""); if (StringUtils .contains(result, UmlTypePrefix.DATA_DATATYPE.getValue())) { result = result.replace(UmlTypePrefix.DATA_DATATYPE.getValue(), ""); } if (StringUtils.contains(result, UmlTypePrefix.DATA_DATATYPE_BINDINGS.getValue())) { result = result.replace( UmlTypePrefix.DATA_DATATYPE_BINDINGS.getValue(), ""); } return result; }  }
PackageHelper { public String removeUmlPrefixes(final String fullQualifiedName) { String result = fullQualifiedName.replace( UmlTypePrefix.MAGIC_DRAW_PROFILE_DATATYPES.getValue(), ""); result = result.replace(UmlTypePrefix.UML_PRIMITIVE_TYPES.getValue(), ""); result = result.replace(UmlTypePrefix.JAVA_PRIMITIVE_TYPES.getValue(), ""); result = result.replace( UmlTypePrefix.VALIDATION_PROFILE_OCL_LIBRARY.getValue(), ""); if (StringUtils .contains(result, UmlTypePrefix.DATA_DATATYPE.getValue())) { result = result.replace(UmlTypePrefix.DATA_DATATYPE.getValue(), ""); } if (StringUtils.contains(result, UmlTypePrefix.DATA_DATATYPE_BINDINGS.getValue())) { result = result.replace( UmlTypePrefix.DATA_DATATYPE_BINDINGS.getValue(), ""); } return result; }  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 removeUmlPrefixes(final String fullQualifiedName) { String result = fullQualifiedName.replace( UmlTypePrefix.MAGIC_DRAW_PROFILE_DATATYPES.getValue(), ""); result = result.replace(UmlTypePrefix.UML_PRIMITIVE_TYPES.getValue(), ""); result = result.replace(UmlTypePrefix.JAVA_PRIMITIVE_TYPES.getValue(), ""); result = result.replace( UmlTypePrefix.VALIDATION_PROFILE_OCL_LIBRARY.getValue(), ""); if (StringUtils .contains(result, UmlTypePrefix.DATA_DATATYPE.getValue())) { result = result.replace(UmlTypePrefix.DATA_DATATYPE.getValue(), ""); } if (StringUtils.contains(result, UmlTypePrefix.DATA_DATATYPE_BINDINGS.getValue())) { result = result.replace( UmlTypePrefix.DATA_DATATYPE_BINDINGS.getValue(), ""); } return result; }  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);  }