Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gazelle Objects Checker
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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Show more breadcrumbs
Gazelle
Library
Gazelle Objects Checker
Commits
e391a2ef
Commit
e391a2ef
authored
2 years ago
by
Achraf Achkari
Browse files
Options
Downloads
Patches
Plain Diff
Choices initial solution structure
parent
f5afbfc1
No related branches found
No related tags found
2 merge requests
!30
Develop
,
!28
Feature/choices implementation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hl7templates/hl7templates-generator-jar/src/main/java/net/ihe/gazelle/tempgen/flatten/action/RuleDefinitionFlattenProc.java
+8
-7
8 additions, 7 deletions
...lle/tempgen/flatten/action/RuleDefinitionFlattenProc.java
with
8 additions
and
7 deletions
hl7templates/hl7templates-generator-jar/src/main/java/net/ihe/gazelle/tempgen/flatten/action/RuleDefinitionFlattenProc.java
+
8
−
7
View file @
e391a2ef
...
@@ -8,10 +8,7 @@ import net.ihe.gazelle.tempmodel.dpath.model.DElement;
...
@@ -8,10 +8,7 @@ import net.ihe.gazelle.tempmodel.dpath.model.DElement;
import
net.ihe.gazelle.tempmodel.dpath.model.DParent
;
import
net.ihe.gazelle.tempmodel.dpath.model.DParent
;
import
net.ihe.gazelle.tempmodel.dpath.utils.DPathExtractor
;
import
net.ihe.gazelle.tempmodel.dpath.utils.DPathExtractor
;
import
net.ihe.gazelle.tempmodel.org.decor.art.model.*
;
import
net.ihe.gazelle.tempmodel.org.decor.art.model.*
;
import
net.ihe.gazelle.tempmodel.org.decor.art.utils.RuleDefinitionUtil
;
import
net.ihe.gazelle.tempmodel.org.decor.art.utils.*
;
import
net.ihe.gazelle.tempmodel.org.decor.art.utils.RulesUtil
;
import
net.ihe.gazelle.tempmodel.org.decor.art.utils.TemplateDefinitionUtil
;
import
net.ihe.gazelle.tempmodel.org.decor.art.utils.VocabularyUtil
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -111,9 +108,9 @@ public class RuleDefinitionFlattenProc extends RuleDefinitionProcessorImpl {
...
@@ -111,9 +108,9 @@ public class RuleDefinitionFlattenProc extends RuleDefinitionProcessorImpl {
@Override
@Override
public
void
processName
(
String
nameParam
)
{
public
void
processName
(
String
nameParam
)
{
if
(
currentRuleDefinition
.
getParentObject
()
instanceof
ChoiceDefinition
){
//
if(currentRuleDefinition.getParentObject() instanceof ChoiceDefinition){
return
;
//
return;
}
//
}
String
name
=
nameParam
;
String
name
=
nameParam
;
if
(
name
==
null
)
{
if
(
name
==
null
)
{
return
;
return
;
...
@@ -141,6 +138,10 @@ public class RuleDefinitionFlattenProc extends RuleDefinitionProcessorImpl {
...
@@ -141,6 +138,10 @@ public class RuleDefinitionFlattenProc extends RuleDefinitionProcessorImpl {
}
}
}
}
}
else
{
}
else
{
Assert
customAssert
=
new
Assert
();
customAssert
.
setTest
(
AssertUtil
.
extractAssertFromName
(
this
.
currentRuleDefinition
.
getName
()));
this
.
currentRuleDefinition
.
getLetOrAssertOrReport
().
add
(
customAssert
);
this
.
currentRuleDefinition
.
setName
(
RuleDefinitionUtil
.
getRealNameOfRuleDefinition
(
currentRuleDefinition
));
this
.
currentRdNameAsXpath
.
setProcessed
(
false
);
this
.
currentRdNameAsXpath
.
setProcessed
(
false
);
ProblemHandler
.
handleRuleDefinitionError
(
currentRuleDefinition
,
ProblemHandler
.
handleRuleDefinitionError
(
currentRuleDefinition
,
"The name specified cannot be processed by the tool : "
+
name
,
"The name specified cannot be processed by the tool : "
+
name
,
...
...
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