Преглед на файлове

Set empty string as default value for documentation

Thomas Kutz преди 7 години
родител
ревизия
091292f52a

+ 2 - 1
plugins/org.yakindu.base.types/model/base.ecore

@@ -5,7 +5,8 @@
     <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
   </eClassifiers>
   <eClassifiers xsi:type="ecore:EClass" name="DocumentedElement">
-    <eStructuralFeatures xsi:type="ecore:EAttribute" name="documentation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+    <eStructuralFeatures xsi:type="ecore:EAttribute" name="documentation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+        defaultValueLiteral=""/>
   </eClassifiers>
   <eClassifiers xsi:type="ecore:EClass" name="DomainElement">
     <eStructuralFeatures xsi:type="ecore:EAttribute" name="domainID" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"

+ 2 - 1
plugins/org.yakindu.base.types/src-gen/org/yakindu/base/base/DocumentedElement.java

@@ -23,6 +23,7 @@ import org.eclipse.emf.ecore.EObject;
 public interface DocumentedElement extends EObject {
 	/**
 	 * Returns the value of the '<em><b>Documentation</b></em>' attribute.
+	 * The default value is <code>""</code>.
 	 * <!-- begin-user-doc -->
 	 * <p>
 	 * If the meaning of the '<em>Documentation</em>' attribute isn't clear,
@@ -32,7 +33,7 @@ public interface DocumentedElement extends EObject {
 	 * @return the value of the '<em>Documentation</em>' attribute.
 	 * @see #setDocumentation(String)
 	 * @see org.yakindu.base.base.BasePackage#getDocumentedElement_Documentation()
-	 * @model
+	 * @model default=""
 	 * @generated
 	 */
 	String getDocumentation();

+ 1 - 1
plugins/org.yakindu.base.types/src-gen/org/yakindu/base/base/impl/BasePackageImpl.java

@@ -231,7 +231,7 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage {
 		initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
 
 		initEClass(documentedElementEClass, DocumentedElement.class, "DocumentedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-		initEAttribute(getDocumentedElement_Documentation(), ecorePackage.getEString(), "documentation", null, 0, 1, DocumentedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+		initEAttribute(getDocumentedElement_Documentation(), ecorePackage.getEString(), "documentation", "", 0, 1, DocumentedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
 
 		initEClass(domainElementEClass, DomainElement.class, "DomainElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
 		initEAttribute(getDomainElement_DomainID(), ecorePackage.getEString(), "domainID", "org.yakindu.domain.default", 0, 1, DomainElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

+ 1 - 1
plugins/org.yakindu.base.types/src-gen/org/yakindu/base/base/impl/DocumentedElementImpl.java

@@ -31,7 +31,7 @@ public class DocumentedElementImpl extends EObjectImpl implements DocumentedElem
 	 * @generated
 	 * @ordered
 	 */
-	protected static final String DOCUMENTATION_EDEFAULT = null;
+	protected static final String DOCUMENTATION_EDEFAULT = "";
 
 	/**
 	 * The cached value of the '{@link #getDocumentation() <em>Documentation</em>}' attribute.

+ 1 - 1
plugins/org.yakindu.sct.model.sgraph/src/org/yakindu/sct/model/sgraph/impl/StateImpl.java

@@ -153,7 +153,7 @@ public class StateImpl extends SpecificationElementImpl implements State {
 	 * @generated
 	 * @ordered
 	 */
-	protected static final String DOCUMENTATION_EDEFAULT = null;
+	protected static final String DOCUMENTATION_EDEFAULT = "";
 
 	/**
 	 * The cached value of the '{@link #getDocumentation() <em>Documentation</em>}' attribute.

+ 1 - 1
plugins/org.yakindu.sct.model.sgraph/src/org/yakindu/sct/model/sgraph/impl/StatechartImpl.java

@@ -126,7 +126,7 @@ public class StatechartImpl extends SpecificationElementImpl implements
 	 * @generated
 	 * @ordered
 	 */
-	protected static final String DOCUMENTATION_EDEFAULT = null;
+	protected static final String DOCUMENTATION_EDEFAULT = "";
 
 	/**
 	 * The cached value of the '{@link #getDocumentation() <em>Documentation</em>}' attribute.

+ 1 - 1
plugins/org.yakindu.sct.model.sgraph/src/org/yakindu/sct/model/sgraph/impl/TransitionImpl.java

@@ -95,7 +95,7 @@ public class TransitionImpl extends SpecificationElementImpl implements Transiti
 	 * @generated
 	 * @ordered
 	 */
-	protected static final String DOCUMENTATION_EDEFAULT = null;
+	protected static final String DOCUMENTATION_EDEFAULT = "";
 
 	/**
 	 * The cached value of the '{@link #getDocumentation() <em>Documentation</em>}' attribute.