Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
riseclipse-metamodel-scl2003
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
RiseClipseGroup
riseclipse-metamodel-scl2003
Commits
0b917444
Commit
0b917444
authored
5 years ago
by
Dominique Marcadet
Browse files
Options
Downloads
Patches
Plain Diff
put back getNamespace() in DOIImpl
parent
56ebb322
No related branches found
No related tags found
1 merge request
!63
Resolve "code of DOIImpl.getNamespace() deleted by last EMF code generation"
Pipeline
#5167
passed
5 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fr.centralesupelec.edf.riseclipse.iec61850.scl/src/fr/centralesupelec/edf/riseclipse/iec61850/scl/impl/DOIImpl.java
+42
-4
42 additions, 4 deletions
...ralesupelec/edf/riseclipse/iec61850/scl/impl/DOIImpl.java
with
42 additions
and
4 deletions
fr.centralesupelec.edf.riseclipse.iec61850.scl/src/fr/centralesupelec/edf/riseclipse/iec61850/scl/impl/DOIImpl.java
+
42
−
4
View file @
0b917444
...
...
@@ -35,6 +35,7 @@ import org.eclipse.emf.ecore.util.EcoreUtil;
import
org.eclipse.emf.ecore.util.InternalEList
;
import
fr.centralesupelec.edf.riseclipse.iec61850.scl.AnyLN
;
import
fr.centralesupelec.edf.riseclipse.iec61850.scl.DA
;
import
fr.centralesupelec.edf.riseclipse.iec61850.scl.DAI
;
import
fr.centralesupelec.edf.riseclipse.iec61850.scl.DO
;
import
fr.centralesupelec.edf.riseclipse.iec61850.scl.DOI
;
...
...
@@ -593,13 +594,50 @@ public class DOIImpl extends UnNamingImpl implements DOI {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @generated
NOT
*/
@Override
public
String
getNamespace
()
{
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
throw
new
UnsupportedOperationException
();
//@formatter:off
List
<
DAI
>
ldNsDai
=
getDAI
()
.
stream
()
.
filter
(
dai
->
"dataNs"
.
equals
(
dai
.
getName
()
))
.
collect
(
Collectors
.
toList
()
);
if
(
ldNsDai
.
size
()
==
1
)
{
if
((
ldNsDai
.
get
(
0
).
getVal
().
size
()
==
1
)
&&
(
ldNsDai
.
get
(
0
).
getVal
().
get
(
0
).
getValue
()
!=
null
)
&&
(
ldNsDai
.
get
(
0
).
getVal
().
get
(
0
).
getValue
().
length
()
!=
0
))
{
return
ldNsDai
.
get
(
0
).
getVal
().
get
(
0
).
getValue
();
}
if
((
ldNsDai
.
get
(
0
).
getRefersToAbstractDataAttribute
()
!=
null
)
&&
(
ldNsDai
.
get
(
0
).
getRefersToAbstractDataAttribute
().
getVal
().
size
()
==
1
)
&&
(
ldNsDai
.
get
(
0
).
getRefersToAbstractDataAttribute
().
getVal
().
get
(
0
).
getValue
()
!=
null
)
&&
(
ldNsDai
.
get
(
0
).
getRefersToAbstractDataAttribute
().
getVal
().
get
(
0
).
getValue
().
length
()
!=
0
))
{
return
ldNsDai
.
get
(
0
).
getRefersToAbstractDataAttribute
().
getVal
().
get
(
0
).
getValue
();
}
}
if
(
getRefersToDO
()
!=
null
)
{
List
<
DA
>
lnNsDa
=
getRefersToDO
()
.
getRefersToDOType
()
.
getDA
()
.
stream
()
.
filter
(
da
->
"dataNs"
.
equals
(
da
.
getName
()
))
.
collect
(
Collectors
.
toList
()
);
if
(
lnNsDa
.
size
()
==
1
)
{
if
((
lnNsDa
.
get
(
0
).
getVal
().
size
()
==
1
)
&&
(
lnNsDa
.
get
(
0
).
getVal
().
get
(
0
).
getValue
()
!=
null
)
&&
(
lnNsDa
.
get
(
0
).
getVal
().
get
(
0
).
getValue
().
length
()
!=
0
))
{
return
lnNsDa
.
get
(
0
).
getVal
().
get
(
0
).
getValue
();
}
}
}
if
(
getParentAnyLN
()
==
null
)
return
null
;
return
getParentAnyLN
().
getNamespace
();
//@formatter:on
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment