Le serveur gitlab sera inaccessible le mercredi 19 février 2020 de 13h à 14h pour une intervention de maintenance programmée.

Commit bc0eb73e authored by Dominique Marcadet's avatar Dominique Marcadet

add link from TitledClass to Doc

parent 36c5337e
Pipeline #7667 passed with stages
in 31 seconds
......@@ -583,3 +583,6 @@ _UI_Enumeration_referredByAttributeType_feature = Referred By Attribute Type
_UI_AgAttributeType_refersToBasicType_feature = Refers To Basic Type
_UI_AgAttributeType_refersToConstructedAttribute_feature = Refers To Constructed Attribute
_UI_AgAttributeType_refersToEnumeration_feature = Refers To Enumeration
_UI_Doc_referredByTitledClass_feature = Referred By Titled Class
_UI_DocumentedClass_refersToDescDoc_feature = Refers To Desc Doc
_UI_TitledClass_refersToTitleDoc_feature = Refers To Title Doc
......@@ -78,6 +78,7 @@ public class DocItemProvider extends NsdObjectItemProvider {
addReferredByDocumentedClassPropertyDescriptor( object );
addReferredByFunctionalConstraintPropertyDescriptor( object );
addReferredByAgPresenceConditionDerivedStatisticsPropertyDescriptor( object );
addReferredByTitledClassPropertyDescriptor( object );
}
return itemPropertyDescriptors;
}
......@@ -279,6 +280,28 @@ public class DocItemProvider extends NsdObjectItemProvider {
null ) );
}
/**
* This adds a property descriptor for the Referred By Titled Class feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addReferredByTitledClassPropertyDescriptor( Object object ) {
itemPropertyDescriptors.add(
createItemPropertyDescriptor( ( ( ComposeableAdapterFactory ) adapterFactory ).getRootAdapterFactory(),
getResourceLocator(),
getString( "_UI_Doc_referredByTitledClass_feature" ),
getString( "_UI_PropertyDescriptor_description", "_UI_Doc_referredByTitledClass_feature",
"_UI_Doc_type" ),
NsdPackage.Literals.DOC__REFERRED_BY_TITLED_CLASS,
true,
false,
true,
null,
null,
null ) );
}
/**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
......
......@@ -63,7 +63,7 @@ public class DocumentedClassItemProvider extends NsdObjectItemProvider {
addDeprecatedPropertyDescriptor( object );
addDescIDPropertyDescriptor( object );
addInformativePropertyDescriptor( object );
addRefersToDocPropertyDescriptor( object );
addRefersToDescDocPropertyDescriptor( object );
}
return itemPropertyDescriptors;
}
......@@ -135,19 +135,19 @@ public class DocumentedClassItemProvider extends NsdObjectItemProvider {
}
/**
* This adds a property descriptor for the Refers To Doc feature.
* This adds a property descriptor for the Refers To Desc Doc feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addRefersToDocPropertyDescriptor( Object object ) {
protected void addRefersToDescDocPropertyDescriptor( Object object ) {
itemPropertyDescriptors.add(
createItemPropertyDescriptor( ( ( ComposeableAdapterFactory ) adapterFactory ).getRootAdapterFactory(),
getResourceLocator(),
getString( "_UI_DocumentedClass_refersToDoc_feature" ),
getString( "_UI_PropertyDescriptor_description", "_UI_DocumentedClass_refersToDoc_feature",
getString( "_UI_DocumentedClass_refersToDescDoc_feature" ),
getString( "_UI_PropertyDescriptor_description", "_UI_DocumentedClass_refersToDescDoc_feature",
"_UI_DocumentedClass_type" ),
NsdPackage.Literals.DOCUMENTED_CLASS__REFERS_TO_DOC,
NsdPackage.Literals.DOCUMENTED_CLASS__REFERS_TO_DESC_DOC,
true,
false,
true,
......
......@@ -62,6 +62,7 @@ public class TitledClassItemProvider extends DocumentedClassItemProvider {
super.getPropertyDescriptors( object );
addTitleIDPropertyDescriptor( object );
addRefersToTitleDocPropertyDescriptor( object );
}
return itemPropertyDescriptors;
}
......@@ -88,6 +89,28 @@ public class TitledClassItemProvider extends DocumentedClassItemProvider {
null ) );
}
/**
* This adds a property descriptor for the Refers To Title Doc feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addRefersToTitleDocPropertyDescriptor( Object object ) {
itemPropertyDescriptors.add(
createItemPropertyDescriptor( ( ( ComposeableAdapterFactory ) adapterFactory ).getRootAdapterFactory(),
getResourceLocator(),
getString( "_UI_TitledClass_refersToTitleDoc_feature" ),
getString( "_UI_PropertyDescriptor_description", "_UI_TitledClass_refersToTitleDoc_feature",
"_UI_TitledClass_type" ),
NsdPackage.Literals.TITLED_CLASS__REFERS_TO_TITLE_DOC,
true,
false,
true,
null,
null,
null ) );
}
/**
* This returns TitledClass.gif.
* <!-- begin-user-doc -->
......
......@@ -919,13 +919,16 @@
eOpposite="#//BasicType/refersToDoc"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="referredByDocumentedClass"
ordered="false" upperBound="-1" eType="#//DocumentedClass" transient="true"
unsettable="true" resolveProxies="false" eOpposite="#//DocumentedClass/refersToDoc"/>
unsettable="true" resolveProxies="false" eOpposite="#//DocumentedClass/refersToDescDoc"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="referredByFunctionalConstraint"
ordered="false" upperBound="-1" eType="#//FunctionalConstraint" transient="true"
unsettable="true" resolveProxies="false" eOpposite="#//FunctionalConstraint/refersToDoc"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="referredByAgPresenceConditionDerivedStatistics"
ordered="false" upperBound="-1" eType="#//AgPresenceConditionDerivedStatistics"
transient="true" unsettable="true" resolveProxies="false" eOpposite="#//AgPresenceConditionDerivedStatistics/refersToDsPresCondArgsDoc"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="referredByTitledClass"
ordered="false" upperBound="-1" eType="#//TitledClass" transient="true" unsettable="true"
resolveProxies="false" eOpposite="#//TitledClass/refersToTitleDoc"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DocumentedClass" abstract="true" eSuperTypes="#//NsdObject">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
......@@ -953,7 +956,7 @@
<details key="name" value="informative"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="refersToDoc" ordered="false"
<eStructuralFeatures xsi:type="ecore:EReference" name="refersToDescDoc" ordered="false"
eType="#//Doc" transient="true" unsettable="true" resolveProxies="false" eOpposite="#//Doc/referredByDocumentedClass"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Enumeration" eSuperTypes="#//TitledClass">
......@@ -1885,6 +1888,8 @@
<details key="name" value="titleID"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="refersToTitleDoc" ordered="false"
eType="#//Doc" transient="true" unsettable="true" resolveProxies="false" eOpposite="#//Doc/referredByTitledClass"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="UndefinedAttributeTypeKind">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
......
......@@ -257,12 +257,13 @@
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference nsd.ecore#//Doc/referredByDocumentedClass"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference nsd.ecore#//Doc/referredByFunctionalConstraint"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference nsd.ecore#//Doc/referredByAgPresenceConditionDerivedStatistics"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference nsd.ecore#//Doc/referredByTitledClass"/>
</genClasses>
<genClasses ecoreClass="nsd.ecore#//DocumentedClass">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute nsd.ecore#//DocumentedClass/deprecated"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute nsd.ecore#//DocumentedClass/descID"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute nsd.ecore#//DocumentedClass/informative"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference nsd.ecore#//DocumentedClass/refersToDoc"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference nsd.ecore#//DocumentedClass/refersToDescDoc"/>
</genClasses>
<genClasses ecoreClass="nsd.ecore#//Enumeration">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference nsd.ecore#//Enumeration/literal"/>
......@@ -436,6 +437,7 @@
</genClasses>
<genClasses ecoreClass="nsd.ecore#//TitledClass">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute nsd.ecore#//TitledClass/titleID"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference nsd.ecore#//TitledClass/refersToTitleDoc"/>
</genClasses>
<genClasses image="false" ecoreClass="nsd.ecore#//NsdObject">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute nsd.ecore#//NsdObject/lineNumber"/>
......
......@@ -44,6 +44,7 @@ import org.eclipse.emf.ecore.util.FeatureMap;
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.Doc#getReferredByDocumentedClass <em>Referred By Documented Class</em>}</li>
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.Doc#getReferredByFunctionalConstraint <em>Referred By Functional Constraint</em>}</li>
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.Doc#getReferredByAgPresenceConditionDerivedStatistics <em>Referred By Ag Presence Condition Derived Statistics</em>}</li>
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.Doc#getReferredByTitledClass <em>Referred By Titled Class</em>}</li>
* </ul>
*
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.NsdPackage#getDoc()
......@@ -366,15 +367,15 @@ public interface Doc extends NsdObject {
/**
* Returns the value of the '<em><b>Referred By Documented Class</b></em>' reference list.
* The list contents are of type {@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass}.
* It is bidirectional and its opposite is '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getRefersToDoc <em>Refers To Doc</em>}'.
* It is bidirectional and its opposite is '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getRefersToDescDoc <em>Refers To Desc Doc</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Referred By Documented Class</em>' reference list.
* @see #isSetReferredByDocumentedClass()
* @see #unsetReferredByDocumentedClass()
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.NsdPackage#getDoc_ReferredByDocumentedClass()
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getRefersToDoc
* @model opposite="refersToDoc" resolveProxies="false" unsettable="true" transient="true" ordered="false"
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getRefersToDescDoc
* @model opposite="refersToDescDoc" resolveProxies="false" unsettable="true" transient="true" ordered="false"
* @generated
*/
EList< DocumentedClass > getReferredByDocumentedClass();
......@@ -474,4 +475,41 @@ public interface Doc extends NsdObject {
*/
boolean isSetReferredByAgPresenceConditionDerivedStatistics();
/**
* Returns the value of the '<em><b>Referred By Titled Class</b></em>' reference list.
* The list contents are of type {@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.TitledClass}.
* It is bidirectional and its opposite is '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.TitledClass#getRefersToTitleDoc <em>Refers To Title Doc</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Referred By Titled Class</em>' reference list.
* @see #isSetReferredByTitledClass()
* @see #unsetReferredByTitledClass()
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.NsdPackage#getDoc_ReferredByTitledClass()
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.TitledClass#getRefersToTitleDoc
* @model opposite="refersToTitleDoc" resolveProxies="false" unsettable="true" transient="true" ordered="false"
* @generated
*/
EList< TitledClass > getReferredByTitledClass();
/**
* Unsets the value of the '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.Doc#getReferredByTitledClass <em>Referred By Titled Class</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isSetReferredByTitledClass()
* @see #getReferredByTitledClass()
* @generated
*/
void unsetReferredByTitledClass();
/**
* Returns whether the value of the '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.Doc#getReferredByTitledClass <em>Referred By Titled Class</em>}' reference list is set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return whether the value of the '<em>Referred By Titled Class</em>' reference list is set.
* @see #unsetReferredByTitledClass()
* @see #getReferredByTitledClass()
* @generated
*/
boolean isSetReferredByTitledClass();
} // Doc
......@@ -31,7 +31,7 @@ package fr.centralesupelec.edf.riseclipse.iec61850.nsd;
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#isDeprecated <em>Deprecated</em>}</li>
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getDescID <em>Desc ID</em>}</li>
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#isInformative <em>Informative</em>}</li>
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getRefersToDoc <em>Refers To Doc</em>}</li>
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getRefersToDescDoc <em>Refers To Desc Doc</em>}</li>
* </ul>
*
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.NsdPackage#getDocumentedClass()
......@@ -193,54 +193,54 @@ public interface DocumentedClass extends NsdObject {
boolean isSetInformative();
/**
* Returns the value of the '<em><b>Refers To Doc</b></em>' reference.
* Returns the value of the '<em><b>Refers To Desc Doc</b></em>' reference.
* It is bidirectional and its opposite is '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.Doc#getReferredByDocumentedClass <em>Referred By Documented Class</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Refers To Doc</em>' reference.
* @see #isSetRefersToDoc()
* @see #unsetRefersToDoc()
* @see #setRefersToDoc(Doc)
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.NsdPackage#getDocumentedClass_RefersToDoc()
* @return the value of the '<em>Refers To Desc Doc</em>' reference.
* @see #isSetRefersToDescDoc()
* @see #unsetRefersToDescDoc()
* @see #setRefersToDescDoc(Doc)
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.NsdPackage#getDocumentedClass_RefersToDescDoc()
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.Doc#getReferredByDocumentedClass
* @model opposite="referredByDocumentedClass" resolveProxies="false" unsettable="true" transient="true" ordered="false"
* @generated
*/
Doc getRefersToDoc();
Doc getRefersToDescDoc();
/**
* Sets the value of the '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getRefersToDoc <em>Refers To Doc</em>}' reference.
* Sets the value of the '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getRefersToDescDoc <em>Refers To Desc Doc</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Refers To Doc</em>' reference.
* @see #isSetRefersToDoc()
* @see #unsetRefersToDoc()
* @see #getRefersToDoc()
* @param value the new value of the '<em>Refers To Desc Doc</em>' reference.
* @see #isSetRefersToDescDoc()
* @see #unsetRefersToDescDoc()
* @see #getRefersToDescDoc()
* @generated
*/
void setRefersToDoc( Doc value );
void setRefersToDescDoc( Doc value );
/**
* Unsets the value of the '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getRefersToDoc <em>Refers To Doc</em>}' reference.
* Unsets the value of the '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getRefersToDescDoc <em>Refers To Desc Doc</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isSetRefersToDoc()
* @see #getRefersToDoc()
* @see #setRefersToDoc(Doc)
* @see #isSetRefersToDescDoc()
* @see #getRefersToDescDoc()
* @see #setRefersToDescDoc(Doc)
* @generated
*/
void unsetRefersToDoc();
void unsetRefersToDescDoc();
/**
* Returns whether the value of the '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getRefersToDoc <em>Refers To Doc</em>}' reference is set.
* Returns whether the value of the '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.DocumentedClass#getRefersToDescDoc <em>Refers To Desc Doc</em>}' reference is set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return whether the value of the '<em>Refers To Doc</em>' reference is set.
* @see #unsetRefersToDoc()
* @see #getRefersToDoc()
* @see #setRefersToDoc(Doc)
* @return whether the value of the '<em>Refers To Desc Doc</em>' reference is set.
* @see #unsetRefersToDescDoc()
* @see #getRefersToDescDoc()
* @see #setRefersToDescDoc(Doc)
* @generated
*/
boolean isSetRefersToDoc();
boolean isSetRefersToDescDoc();
} // DocumentedClass
......@@ -29,6 +29,7 @@ package fr.centralesupelec.edf.riseclipse.iec61850.nsd;
* </p>
* <ul>
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.TitledClass#getTitleID <em>Title ID</em>}</li>
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.TitledClass#getRefersToTitleDoc <em>Refers To Title Doc</em>}</li>
* </ul>
*
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.NsdPackage#getTitledClass()
......@@ -89,4 +90,55 @@ public interface TitledClass extends DocumentedClass {
*/
boolean isSetTitleID();
/**
* Returns the value of the '<em><b>Refers To Title Doc</b></em>' reference.
* It is bidirectional and its opposite is '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.Doc#getReferredByTitledClass <em>Referred By Titled Class</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Refers To Title Doc</em>' reference.
* @see #isSetRefersToTitleDoc()
* @see #unsetRefersToTitleDoc()
* @see #setRefersToTitleDoc(Doc)
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.NsdPackage#getTitledClass_RefersToTitleDoc()
* @see fr.centralesupelec.edf.riseclipse.iec61850.nsd.Doc#getReferredByTitledClass
* @model opposite="referredByTitledClass" resolveProxies="false" unsettable="true" transient="true" ordered="false"
* @generated
*/
Doc getRefersToTitleDoc();
/**
* Sets the value of the '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.TitledClass#getRefersToTitleDoc <em>Refers To Title Doc</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Refers To Title Doc</em>' reference.
* @see #isSetRefersToTitleDoc()
* @see #unsetRefersToTitleDoc()
* @see #getRefersToTitleDoc()
* @generated
*/
void setRefersToTitleDoc( Doc value );
/**
* Unsets the value of the '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.TitledClass#getRefersToTitleDoc <em>Refers To Title Doc</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isSetRefersToTitleDoc()
* @see #getRefersToTitleDoc()
* @see #setRefersToTitleDoc(Doc)
* @generated
*/
void unsetRefersToTitleDoc();
/**
* Returns whether the value of the '{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.TitledClass#getRefersToTitleDoc <em>Refers To Title Doc</em>}' reference is set.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return whether the value of the '<em>Refers To Title Doc</em>' reference is set.
* @see #unsetRefersToTitleDoc()
* @see #getRefersToTitleDoc()
* @see #setRefersToTitleDoc(Doc)
* @generated
*/
boolean isSetRefersToTitleDoc();
} // TitledClass
......@@ -581,10 +581,11 @@ public class AbbreviationImpl extends NsdObjectImpl implements Abbreviation {
@Override
public boolean buildExplicitLinks( IRiseClipseConsole console, boolean forceUpdate ) {
if( super.buildExplicitLinks( console, forceUpdate ) ) return true;
if( isSetDescID() ) {
if( this.eResource().getResourceSet() instanceof NsdResourceSetImpl ) {
Doc doc = (( NsdResourceSetImpl ) this.eResource().getResourceSet() ).findDoc( new NsIdentification( getParentAbbreviations().getParentNS() ), getDescID() );
Doc doc = ( ( NsdResourceSetImpl ) this.eResource().getResourceSet() )
.findDoc( new NsIdentification( getParentAbbreviations().getParentNS() ), getDescID() );
if( doc != null ) setRefersToDoc( doc );
}
}
......
......@@ -545,7 +545,7 @@ public class ConstructedAttributeImpl extends TitledClassImpl implements Constru
if( getParentConstructedAttributes() != null ) {
ns = getParentConstructedAttributes().getParentNS();
}
if(( ns == null ) && ( getParentServiceTypeRealizations() != null ) ) {
if( ( ns == null ) && ( getParentServiceTypeRealizations() != null ) ) {
ns = getParentServiceTypeRealizations().getParentServiceNS();
}
return new NsIdentification( ns );
......
......@@ -31,6 +31,7 @@ import fr.centralesupelec.edf.riseclipse.iec61850.nsd.NSDoc;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.NsdPackage;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.PresenceCondition;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.TitledClass;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
......@@ -67,6 +68,7 @@ import org.eclipse.emf.ecore.util.InternalEList;
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.impl.DocImpl#getReferredByDocumentedClass <em>Referred By Documented Class</em>}</li>
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.impl.DocImpl#getReferredByFunctionalConstraint <em>Referred By Functional Constraint</em>}</li>
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.impl.DocImpl#getReferredByAgPresenceConditionDerivedStatistics <em>Referred By Ag Presence Condition Derived Statistics</em>}</li>
* <li>{@link fr.centralesupelec.edf.riseclipse.iec61850.nsd.impl.DocImpl#getReferredByTitledClass <em>Referred By Titled Class</em>}</li>
* </ul>
*
* @generated
......@@ -191,6 +193,16 @@ public class DocImpl extends NsdObjectImpl implements Doc {
*/
protected EList< AgPresenceConditionDerivedStatistics > referredByAgPresenceConditionDerivedStatistics;
/**
* The cached value of the '{@link #getReferredByTitledClass() <em>Referred By Titled Class</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getReferredByTitledClass()
* @generated
* @ordered
*/
protected EList< TitledClass > referredByTitledClass;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
......@@ -526,7 +538,7 @@ public class DocImpl extends NsdObjectImpl implements Doc {
if( referredByDocumentedClass == null ) {
referredByDocumentedClass = new EObjectWithInverseEList.Unsettable< DocumentedClass >(
DocumentedClass.class, this, NsdPackage.DOC__REFERRED_BY_DOCUMENTED_CLASS,
NsdPackage.DOCUMENTED_CLASS__REFERS_TO_DOC );
NsdPackage.DOCUMENTED_CLASS__REFERS_TO_DESC_DOC );
}
return referredByDocumentedClass;
}
......@@ -627,6 +639,40 @@ public class DocImpl extends NsdObjectImpl implements Doc {
&& ( ( InternalEList.Unsettable< ? > ) referredByAgPresenceConditionDerivedStatistics ).isSet();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EList< TitledClass > getReferredByTitledClass() {
if( referredByTitledClass == null ) {
referredByTitledClass = new EObjectWithInverseEList.Unsettable< TitledClass >( TitledClass.class, this,
NsdPackage.DOC__REFERRED_BY_TITLED_CLASS, NsdPackage.TITLED_CLASS__REFERS_TO_TITLE_DOC );
}
return referredByTitledClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void unsetReferredByTitledClass() {
if( referredByTitledClass != null ) ( ( InternalEList.Unsettable< ? > ) referredByTitledClass ).unset();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean isSetReferredByTitledClass() {
return referredByTitledClass != null && ( ( InternalEList.Unsettable< ? > ) referredByTitledClass ).isSet();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
......@@ -664,6 +710,9 @@ public class DocImpl extends NsdObjectImpl implements Doc {
case NsdPackage.DOC__REFERRED_BY_AG_PRESENCE_CONDITION_DERIVED_STATISTICS:
return ( ( InternalEList< InternalEObject > ) ( InternalEList< ? > ) getReferredByAgPresenceConditionDerivedStatistics() )
.basicAdd( otherEnd, msgs );
case NsdPackage.DOC__REFERRED_BY_TITLED_CLASS:
return ( ( InternalEList< InternalEObject > ) ( InternalEList< ? > ) getReferredByTitledClass() )
.basicAdd( otherEnd, msgs );
}
return super.eInverseAdd( otherEnd, featureID, msgs );
}
......@@ -701,6 +750,8 @@ public class DocImpl extends NsdObjectImpl implements Doc {
case NsdPackage.DOC__REFERRED_BY_AG_PRESENCE_CONDITION_DERIVED_STATISTICS:
return ( ( InternalEList< ? > ) getReferredByAgPresenceConditionDerivedStatistics() ).basicRemove( otherEnd,
msgs );
case NsdPackage.DOC__REFERRED_BY_TITLED_CLASS:
return ( ( InternalEList< ? > ) getReferredByTitledClass() ).basicRemove( otherEnd, msgs );
}
return super.eInverseRemove( otherEnd, featureID, msgs );
}
......@@ -756,6 +807,8 @@ public class DocImpl extends NsdObjectImpl implements Doc {
return getReferredByFunctionalConstraint();
case NsdPackage.DOC__REFERRED_BY_AG_PRESENCE_CONDITION_DERIVED_STATISTICS:
return getReferredByAgPresenceConditionDerivedStatistics();
case NsdPackage.DOC__REFERRED_BY_TITLED_CLASS:
return getReferredByTitledClass();
}
return super.eGet( featureID, resolve, coreType );
}
......@@ -817,6 +870,10 @@ public class DocImpl extends NsdObjectImpl implements Doc {
getReferredByAgPresenceConditionDerivedStatistics()
.addAll( ( Collection< ? extends AgPresenceConditionDerivedStatistics > ) newValue );
return;
case NsdPackage.DOC__REFERRED_BY_TITLED_CLASS:
getReferredByTitledClass().clear();
getReferredByTitledClass().addAll( ( Collection< ? extends TitledClass > ) newValue );
return;
}
super.eSet( featureID, newValue );
}
......@@ -868,6 +925,9 @@ public class DocImpl extends NsdObjectImpl implements Doc {
case NsdPackage.DOC__REFERRED_BY_AG_PRESENCE_CONDITION_DERIVED_STATISTICS:
unsetReferredByAgPresenceConditionDerivedStatistics();
return;
case NsdPackage.DOC__REFERRED_BY_TITLED_CLASS:
unsetReferredByTitledClass();
return;
}
super.eUnset( featureID );
}
......@@ -906,6 +966,8 @@ public class DocImpl extends NsdObjectImpl implements Doc {
return isSetReferredByFunctionalConstraint();
case NsdPackage.DOC__REFERRED_BY_AG_PRESENCE_CONDITION_DERIVED_STATISTICS:
return isSetReferredByAgPresenceConditionDerivedStatistics();
case NsdPackage.DOC__REFERRED_BY_TITLED_CLASS:
return isSetReferredByTitledClass();
}
return super.eIsSet( featureID );
}
......
......@@ -22,8 +22,6 @@ package fr.centralesupelec.edf.riseclipse.iec61850.nsd.impl;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.LNClass;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.LNClasses;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.NsdPackage;
import fr.centralesupelec.edf.riseclipse.iec61850.nsd.util.NsIdentification;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
......
......@@ -1984,6 +1984,16 @@ public class NsdPackageImpl extends EPackageImpl implements NsdPackage {
return ( EReference ) docEClass.getEStructuralFeatures().get( 12 );
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EReference getDoc_ReferredByTitledClass() {
return ( EReference ) docEClass.getEStructuralFeatures().get( 13 );
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
......@@ -2030,7 +2040,7 @@ public class NsdPackageImpl extends EPackageImpl implements NsdPackage {
* @generated
*/
@Override
public EReference getDocumentedClass_RefersToDoc() {
public EReference getDocumentedClass_RefersToDescDoc() {
return ( EReference ) documentedClassEClass.getEStructuralFeatures().get( 3 );
}
......@@ -3334,6 +3344,16 @@ public class NsdPackageImpl extends EPackageImpl implements NsdPackage {
return ( EAttribute ) titledClassEClass.getEStructuralFeatures().get( 0 );
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EReference getTitledClass_RefersToTitleDoc() {
return ( EReference ) titledClassEClass.getEStructuralFeatures().get( 1 );
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
......@@ -4133,12 +4153,13 @@ public class NsdPackageImpl extends EPackageImpl implements NsdPackage {
createEReference( docEClass, DOC__REFERRED_BY_DOCUMENTED_CLASS );
createEReference( docEClass, DOC__REFERRED_BY_FUNCTIONAL_CONSTRAINT );
createEReference( docEClass, DOC__REFERRED_BY_AG_PRESENCE_CONDITION_DERIVED_STATISTICS );
createEReference( docEClass, DOC__REFERRED_BY_TITLED_CLASS );
documentedClassEClass = createEClass( DOCUMENTED_CLASS );
createEAttribute( documentedClassEClass, DOCUMENTED_CLASS__DEPRECATED );
createEAttribute( documentedClassEClass, DOCUMENTED_CLASS__DESC_ID );
createEAttribute( documentedClassEClass, DOCUMENTED_CLASS__INFORMATIVE );
createEReference( documentedClassEClass, DOCUMENTED_CLASS__REFERS_TO_DOC );
createEReference( documentedClassEClass, DOCUMENTED_CLASS__REFERS_TO_DESC_DOC );
enumerationEClass = createEClass( ENUMERATION );
createEReference( enumerationEClass, ENUMERATION__LITERAL );
......@@ -4296,6 +4317,7 @@ public class NsdPackageImpl extends EPackageImpl implements NsdPackage {
titledClassEClass = createEClass( TITLED_CLASS );
createEAttribute( titledClassEClass, TITLED_CLASS__TITLE_ID );
createEReference( titledClassEClass, TITLED_CLASS__REFERS_TO_TITLE_DOC );
nsdObjectEClass = createEClass( NSD_OBJECT );
createEAttribute( nsdObjectEClass, NSD_OBJECT__LINE_NUMBER );
......@@ -4876,7 +4898,7 @@ public class NsdPackageImpl extends EPackageImpl implements NsdPackage {
"referredByBasicType", null, 0, -1, Doc.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
!IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED );
initEReference( getDoc_ReferredByDocumentedClass(), this.getDocumentedClass(),
this.getDocumentedClass_RefersToDoc(), "referredByDocumentedClass", null, 0, -1, Doc.class,
this.getDocumentedClass_RefersToDescDoc(), "referredByDocumentedClass", null, 0, -1, Doc.class,
IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE,
!IS_DERIVED, !IS_ORDERED );
initEReference( getDoc_ReferredByFunctionalConstraint(), this.getFunctionalConstraint(),
......@@ -4888,6 +4910,9 @@ public class NsdPackageImpl extends EPackageImpl implements NsdPackage {
this.getAgPresenceConditionDerivedStatistics_RefersToDsPresCondArgsDoc(),
"referredByAgPresenceConditionDerivedStatistics", null, 0, -1, Doc.class, IS_TRANSIENT, !IS_VOLATILE,