EMF-Ecore model overview

xiaoxiao2021-03-05  27

1 ecore model:

1.1 Description: The integration relationship of each class in the entire ECORE model is shown.

2 inheritance

2.1 Description: This section lists the fields included in each class, the value of the field can pass through the Java file, UML map, XML The file or the ECORE model is customized, and the value of the field will directly affect the target code generated by ECORE.

2.2 ESTRUCTUREALFEATURE

2.2.1 Class diagram:

Note: Eattribute and EREFERENCE are primarily used to describe the properties that classes can contain.

2.2.2 field description:

PropertyValueUsageEnameElementName String Name. ETYPEDELEMENTETYPEECLASSIFIER features. For Eattribute, he is the type of Attribute, for EREference, he is the type referenced by Reference. The lower limit of uniquetrue lowerBound integer value characteristic | is false when containing a plurality of characteristic values, characteristic values ​​are integer values ​​allowing repeated upperBound limit EStructuralFeaturechangeabletrue | false can be modified if characteristic transientture | false during serialization, if the characteristic is ignored unsettabletrue | false Can it set the characteristics to "not set" statue itRue | false does not need to provide storage space, generally used to indicate whether the feature exports the RequiredTrue | FALSE feature must be, if it is equivalent to put the lower limit The value is set to 1MANYTRUE | FALSE features are multiple values, if it is equivalent to set the upper limit to the -1defaultvalueliteral string character, the default value, the DEFAULTVALUEJAVA class default value, the Java instance EattributeIDTRUE | false This property is Global Single EREferenceContainmentTrue | false references whether the value reference Container Boolean value If the reference is two-way, the value is TrueResolveProxiestrue | False When the referencer is in different documents, we use a agent to represent the referenced by the reference. Until the first access is an item, then load the content of the referenced and explain. When the referencer is located in the same document with the referenced, we can set it to "false" without using this agent. EOPPOSIEREFERENCE If it is a two-way reference, the value points to the reference in another direction.

2.3 Classifier

2.3.1 Class diagram:

Note: ECLASS is mainly used to describe classes, and EDATYPE is primarily used to describe the type of field.

2.3.2 field description:

PropertyValueUsageENameElementname EClassifierinstanceClassName string name string used to represent the Java class name instanceClassJava type class specified by the class defaultValueJava instanceClassName instance instanceClass corresponding one example EClassabstracttrue | false If true, then the class is an abstract class interfacetrue | false if True, the class is a connection note: ECLASS contains other large numbers of attributes for operation, attribute, association, parent class, etc., EDATYPESERIALIALIZABLETRUE | FALSE identifies whether the type needs to be serialized

2.4 Packages and Factories

2.4.1 Class diagram:

Description: Epackage is mainly used to describe the information of the package, and EFActory is mainly used to provide instantiation of classes within the package.

Convenience method.

2.4.2 field description:

PropertyValueUsageENameElementname reference string name EFactorypackage namespace URI EPackagensURI string (corresponding to the XML) for example corresponding to EPackage namespace prefix nsPrefix string (corresponding to the XML) eCLassifiers references cited eSubpackages sub packet included in the category of EfactoryInstance reference to the corresponding EFActory instance

3 Inter-class relationship diagram

3.1 Description: How many classes describe how many models needed by certain associations.

3.2 Ecore Kernel

Description: Describes the structure of the class, including the properties, associations, and the operations included in the class.

3.3 Packages and Factories

Description: The structure used to describe the package.

转载请注明原文地址:https://www.9cbs.com/read-38994.html

New Post(0)