60 lines
4.5 KiB
Java
60 lines
4.5 KiB
Java
|
package pyUML.backend;
|
||
|
|
||
|
public class PyUMLProfile {
|
||
|
|
||
|
/**
|
||
|
* @return the pyUML XMLProfile as a string;
|
||
|
* the hard-coded profile String can be replaces by a method
|
||
|
* loading a profile UML file
|
||
|
*/
|
||
|
public static String getProfileString() {
|
||
|
return profileString;
|
||
|
}
|
||
|
|
||
|
private static String profileString =
|
||
|
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
|
||
|
"<uml:Profile xmi:version=\"2.1\" xmlns:xmi=\"http://schema.omg.org/spec/XMI/2.1\" xmlns:ecore=\"http://www.eclipse.org/emf/2002/Ecore\" xmlns:uml=\"http://www.eclipse.org/uml2/2.1.0/UML\" xmi:id=\"_7Y-UAKi8Edyr_pXRyLU3wA\" name=\"PyUMLProfile\" metaclassReference=\"_ZtOxIKjHEdym48zZ96s2nA\" metamodelReference=\"_bkzWwKjHEdym48zZ96s2nA\">\n" +
|
||
|
" <eAnnotations xmi:id=\"_oyijYKjHEdym48zZ96s2nA\" source=\"http://www.eclipse.org/uml2/2.0.0/UML\">\n" +
|
||
|
" <contents xmi:type=\"ecore:EPackage\" xmi:id=\"_bm4k8KjIEdym48zZ96s2nA\" name=\"PyUMLProfile\" nsURI=\"http:///schemas/PyUMLProfile/_bm06kKjIEdym48zZ96s2nA/1\" nsPrefix=\"PyUMLProfile\">\n" +
|
||
|
" <eClassifiers xmi:type=\"ecore:EClass\" xmi:id=\"_bm4k8ajIEdym48zZ96s2nA\" name=\"BeanClass\">\n" +
|
||
|
" <eAnnotations xmi:id=\"_bm4k8qjIEdym48zZ96s2nA\" source=\"http://www.eclipse.org/uml2/2.0.0/UML\" references=\"_e8aLwKjHEdym48zZ96s2nA\"/>\n" +
|
||
|
" <eAnnotations xmi:id=\"_bm4k86jIEdym48zZ96s2nA\" source=\"duplicates\">\n" +
|
||
|
" <contents xmi:type=\"ecore:EReference\" xmi:id=\"_bm4k9KjIEdym48zZ96s2nA\" name=\"base_Class\" ordered=\"false\" lowerBound=\"1\">\n" +
|
||
|
" <eAnnotations xmi:id=\"_bm4k9ajIEdym48zZ96s2nA\" source=\"redefines\" references=\"_bm4k-ajIEdym48zZ96s2nA\"/>\n" +
|
||
|
" <eType xmi:type=\"ecore:EClass\" href=\"http://www.eclipse.org/uml2/2.1.0/UML#//Class\"/>\n" +
|
||
|
" </contents>\n" +
|
||
|
" </eAnnotations>\n" +
|
||
|
" <eStructuralFeatures xmi:type=\"ecore:EAttribute\" xmi:id=\"_bm4k96jIEdym48zZ96s2nA\" name=\"TestProperty\" ordered=\"false\" lowerBound=\"1\">\n" +
|
||
|
" <eType xmi:type=\"ecore:EDataType\" href=\"http://www.eclipse.org/emf/2002/Ecore#//EString\"/>\n" +
|
||
|
" </eStructuralFeatures>\n" +
|
||
|
" <eStructuralFeatures xmi:type=\"ecore:EReference\" xmi:id=\"_bm4k-ajIEdym48zZ96s2nA\" name=\"base_Class\" ordered=\"false\" lowerBound=\"1\">\n" +
|
||
|
" <eType xmi:type=\"ecore:EClass\" href=\"http://www.eclipse.org/uml2/2.1.0/UML#//Class\"/>\n" +
|
||
|
" </eStructuralFeatures>\n" +
|
||
|
" </eClassifiers>\n" +
|
||
|
" </contents>\n" +
|
||
|
" <contents xmi:type=\"ecore:EPackage\" xmi:id=\"_oyjKcKjHEdym48zZ96s2nA\" name=\"PyUMLProfile\" nsURI=\"http:///schemas/PyUMLProfile/_oyfgEKjHEdym48zZ96s2nA/0\" nsPrefix=\"PyUMLProfile\">\n" +
|
||
|
" <eClassifiers xmi:type=\"ecore:EClass\" xmi:id=\"_oyjKcajHEdym48zZ96s2nA\" name=\"BeanClass\">\n" +
|
||
|
" <eAnnotations xmi:id=\"_oyjKcqjHEdym48zZ96s2nA\" source=\"http://www.eclipse.org/uml2/2.0.0/UML\" references=\"_e8aLwKjHEdym48zZ96s2nA\"/>\n" +
|
||
|
" </eClassifiers>\n" +
|
||
|
" </contents>\n" +
|
||
|
" </eAnnotations>\n" +
|
||
|
" <elementImport xmi:id=\"_ZtOxIKjHEdym48zZ96s2nA\">\n" +
|
||
|
" <importedElement xmi:type=\"uml:Class\" href=\"pathmap://UML_METAMODELS/UML.metamodel.uml#Class\"/>\n" +
|
||
|
" </elementImport>\n" +
|
||
|
" <packageImport xmi:id=\"_bkzWwKjHEdym48zZ96s2nA\">\n" +
|
||
|
" <importedPackage xmi:type=\"uml:Model\" href=\"pathmap://UML_METAMODELS/UML.metamodel.uml#_0\"/>\n" +
|
||
|
" </packageImport>\n" +
|
||
|
" <packagedElement xmi:type=\"uml:Stereotype\" xmi:id=\"_e8aLwKjHEdym48zZ96s2nA\" name=\"BeanClass\">\n" +
|
||
|
" <ownedAttribute xmi:id=\"_OAXE4KjIEdym48zZ96s2nA\" name=\"base_Class\">\n" +
|
||
|
" <type xmi:type=\"uml:Class\" href=\"pathmap://UML_METAMODELS/UML.metamodel.uml#Class\"/>\n" +
|
||
|
" </ownedAttribute>\n" +
|
||
|
" <ownedAttribute xmi:id=\"_S_NkgKjIEdym48zZ96s2nA\" name=\"base_Class\" association=\"_S_MWYKjIEdym48zZ96s2nA\">\n" +
|
||
|
" <type xmi:type=\"uml:Class\" href=\"pathmap://UML_METAMODELS/UML.metamodel.uml#Class\"/>\n" +
|
||
|
" </ownedAttribute>\n" +
|
||
|
" </packagedElement>\n" +
|
||
|
" <packagedElement xmi:type=\"uml:Extension\" xmi:id=\"_S_MWYKjIEdym48zZ96s2nA\" name=\"Class_BeanClass\" memberEnd=\"_S_M9cKjIEdym48zZ96s2nA _S_NkgKjIEdym48zZ96s2nA\">\n" +
|
||
|
" <ownedEnd xmi:type=\"uml:ExtensionEnd\" xmi:id=\"_S_M9cKjIEdym48zZ96s2nA\" name=\"extension_BeanClass\" type=\"_e8aLwKjHEdym48zZ96s2nA\" aggregation=\"composite\" association=\"_S_MWYKjIEdym48zZ96s2nA\"/>\n" +
|
||
|
" </packagedElement>\n" +
|
||
|
"</uml:Profile>\n" ;
|
||
|
}
|