Class MetamodelFactory


  • public final class MetamodelFactory
    extends Object
    Helper methods to create metamodel elements.
    Version:
    $Rev$
    Author:
    herrmama, $Author$
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.eclipse.emf.ecore.EAnnotation newEAnnotation​(org.eclipse.emf.ecore.EModelElement eModelElement, String source)
      Create a new annotation in an element.
      static org.eclipse.emf.ecore.EAttribute newEAttribute​(org.eclipse.emf.ecore.EClass eClass, String name, org.eclipse.emf.ecore.EDataType type)
      Create a new attribute in a class.
      static org.eclipse.emf.ecore.EAttribute newEAttribute​(org.eclipse.emf.ecore.EClass eClass, String name, org.eclipse.emf.ecore.EDataType type, int lowerBound, int upperBound)
      Create a new attribute in a class.
      static org.eclipse.emf.ecore.EAttribute newEAttribute​(org.eclipse.emf.ecore.EClass eClass, String name, org.eclipse.emf.ecore.EDataType type, int lowerBound, int upperBound, String defaultValue)
      Create a new attribute in a class.
      static org.eclipse.emf.ecore.EClass newEClass​(org.eclipse.emf.ecore.EPackage ePackage, String name)
      Create a new class in a package.
      static org.eclipse.emf.ecore.EClass newEClass​(org.eclipse.emf.ecore.EPackage ePackage, String name, Collection<org.eclipse.emf.ecore.EClass> superClasses)
      Create a new class in a package.
      static org.eclipse.emf.ecore.EClass newEClass​(org.eclipse.emf.ecore.EPackage ePackage, String name, Collection<org.eclipse.emf.ecore.EClass> superClasses, boolean abstr)
      Create a new class in a package.
      static org.eclipse.emf.ecore.EClass newEClass​(org.eclipse.emf.ecore.EPackage ePackage, String name, org.eclipse.emf.ecore.EClass superClass)
      Create a new class in a package.
      static org.eclipse.emf.ecore.EDataType newEDataType​(org.eclipse.emf.ecore.EPackage ePackage, String name, String className)
      Create a new data type in a package.
      static org.eclipse.emf.ecore.EEnum newEEnum​(org.eclipse.emf.ecore.EPackage ePackage, String name)
      Create a new enumeration in a package.
      static org.eclipse.emf.ecore.EEnumLiteral newEEnumLiteral​(org.eclipse.emf.ecore.EEnum eEnum, String name)
      Create a new literal in an enumeration.
      static org.eclipse.emf.ecore.EOperation newEOperation​(org.eclipse.emf.ecore.EClass eClass, String name, org.eclipse.emf.ecore.EClassifier type)
      Create a new operation in a class.
      static org.eclipse.emf.ecore.EOperation newEOperation​(org.eclipse.emf.ecore.EClass eClass, String name, org.eclipse.emf.ecore.EClassifier type, int lowerBound, int upperBound)
      Create a new operation in a class.
      static org.eclipse.emf.ecore.EPackage newEPackage​(org.eclipse.emf.ecore.EPackage ePackage, String name, String nsPrefix, String nsURI)
      Create a new package in a package.
      static org.eclipse.emf.ecore.EParameter newEParameter​(org.eclipse.emf.ecore.EOperation eOperation, String name, org.eclipse.emf.ecore.EClassifier type)
      Create a new parameter in an operation.
      static org.eclipse.emf.ecore.EParameter newEParameter​(org.eclipse.emf.ecore.EOperation eOperation, String name, org.eclipse.emf.ecore.EClassifier type, int lowerBound, int upperBound)
      Create a new parameter in an operation.
      static org.eclipse.emf.ecore.EReference newEReference​(org.eclipse.emf.ecore.EClass eClass, String name, org.eclipse.emf.ecore.EClass type)
      Create a new reference in a class.
      static org.eclipse.emf.ecore.EReference newEReference​(org.eclipse.emf.ecore.EClass eClass, String name, org.eclipse.emf.ecore.EClass type, int lowerBound, int upperBound)
      Create a new reference in a class.
      static org.eclipse.emf.ecore.EReference newEReference​(org.eclipse.emf.ecore.EClass eClass, String name, org.eclipse.emf.ecore.EClass type, int lowerBound, int upperBound, boolean containment)
      Create a new reference in a class.
      static org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl newEStringToStringMapEntry​(org.eclipse.emf.ecore.EAnnotation eAnnotation, String key, String value)
      Create a new entry in an annotation.
    • Constructor Detail

      • MetamodelFactory

        public MetamodelFactory()
    • Method Detail

      • newEPackage

        public static org.eclipse.emf.ecore.EPackage newEPackage​(org.eclipse.emf.ecore.EPackage ePackage,
                                                                 String name,
                                                                 String nsPrefix,
                                                                 String nsURI)
        Create a new package in a package.
      • newEClass

        public static org.eclipse.emf.ecore.EClass newEClass​(org.eclipse.emf.ecore.EPackage ePackage,
                                                             String name,
                                                             Collection<org.eclipse.emf.ecore.EClass> superClasses,
                                                             boolean abstr)
        Create a new class in a package.
      • newEClass

        public static org.eclipse.emf.ecore.EClass newEClass​(org.eclipse.emf.ecore.EPackage ePackage,
                                                             String name,
                                                             Collection<org.eclipse.emf.ecore.EClass> superClasses)
        Create a new class in a package.
      • newEClass

        public static org.eclipse.emf.ecore.EClass newEClass​(org.eclipse.emf.ecore.EPackage ePackage,
                                                             String name,
                                                             org.eclipse.emf.ecore.EClass superClass)
        Create a new class in a package.
      • newEClass

        public static org.eclipse.emf.ecore.EClass newEClass​(org.eclipse.emf.ecore.EPackage ePackage,
                                                             String name)
        Create a new class in a package.
      • newEEnum

        public static org.eclipse.emf.ecore.EEnum newEEnum​(org.eclipse.emf.ecore.EPackage ePackage,
                                                           String name)
        Create a new enumeration in a package.
      • newEDataType

        public static org.eclipse.emf.ecore.EDataType newEDataType​(org.eclipse.emf.ecore.EPackage ePackage,
                                                                   String name,
                                                                   String className)
        Create a new data type in a package.
      • newEAttribute

        public static org.eclipse.emf.ecore.EAttribute newEAttribute​(org.eclipse.emf.ecore.EClass eClass,
                                                                     String name,
                                                                     org.eclipse.emf.ecore.EDataType type,
                                                                     int lowerBound,
                                                                     int upperBound,
                                                                     String defaultValue)
        Create a new attribute in a class.
      • newEAttribute

        public static org.eclipse.emf.ecore.EAttribute newEAttribute​(org.eclipse.emf.ecore.EClass eClass,
                                                                     String name,
                                                                     org.eclipse.emf.ecore.EDataType type)
        Create a new attribute in a class.
      • newEAttribute

        public static org.eclipse.emf.ecore.EAttribute newEAttribute​(org.eclipse.emf.ecore.EClass eClass,
                                                                     String name,
                                                                     org.eclipse.emf.ecore.EDataType type,
                                                                     int lowerBound,
                                                                     int upperBound)
        Create a new attribute in a class.
      • newEReference

        public static org.eclipse.emf.ecore.EReference newEReference​(org.eclipse.emf.ecore.EClass eClass,
                                                                     String name,
                                                                     org.eclipse.emf.ecore.EClass type,
                                                                     int lowerBound,
                                                                     int upperBound,
                                                                     boolean containment)
        Create a new reference in a class.
      • newEReference

        public static org.eclipse.emf.ecore.EReference newEReference​(org.eclipse.emf.ecore.EClass eClass,
                                                                     String name,
                                                                     org.eclipse.emf.ecore.EClass type,
                                                                     int lowerBound,
                                                                     int upperBound)
        Create a new reference in a class.
      • newEReference

        public static org.eclipse.emf.ecore.EReference newEReference​(org.eclipse.emf.ecore.EClass eClass,
                                                                     String name,
                                                                     org.eclipse.emf.ecore.EClass type)
        Create a new reference in a class.
      • newEEnumLiteral

        public static org.eclipse.emf.ecore.EEnumLiteral newEEnumLiteral​(org.eclipse.emf.ecore.EEnum eEnum,
                                                                         String name)
        Create a new literal in an enumeration.
      • newEOperation

        public static org.eclipse.emf.ecore.EOperation newEOperation​(org.eclipse.emf.ecore.EClass eClass,
                                                                     String name,
                                                                     org.eclipse.emf.ecore.EClassifier type,
                                                                     int lowerBound,
                                                                     int upperBound)
        Create a new operation in a class.
      • newEOperation

        public static org.eclipse.emf.ecore.EOperation newEOperation​(org.eclipse.emf.ecore.EClass eClass,
                                                                     String name,
                                                                     org.eclipse.emf.ecore.EClassifier type)
        Create a new operation in a class.
      • newEParameter

        public static org.eclipse.emf.ecore.EParameter newEParameter​(org.eclipse.emf.ecore.EOperation eOperation,
                                                                     String name,
                                                                     org.eclipse.emf.ecore.EClassifier type,
                                                                     int lowerBound,
                                                                     int upperBound)
        Create a new parameter in an operation.
      • newEParameter

        public static org.eclipse.emf.ecore.EParameter newEParameter​(org.eclipse.emf.ecore.EOperation eOperation,
                                                                     String name,
                                                                     org.eclipse.emf.ecore.EClassifier type)
        Create a new parameter in an operation.
      • newEAnnotation

        public static org.eclipse.emf.ecore.EAnnotation newEAnnotation​(org.eclipse.emf.ecore.EModelElement eModelElement,
                                                                       String source)
        Create a new annotation in an element.
      • newEStringToStringMapEntry

        public static org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl newEStringToStringMapEntry​(org.eclipse.emf.ecore.EAnnotation eAnnotation,
                                                                                                        String key,
                                                                                                        String value)
        Create a new entry in an annotation.