Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TOP IDE
Manage
Activity
Members
Labels
Plan
Issues
49
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
TDL Open Source
TOP IDE
Commits
0fb31bfa
Commit
0fb31bfa
authored
1 year ago
by
Martti Käärik
Browse files
Options
Downloads
Patches
Plain Diff
Keyword escape support for GRIdentifier rule.
parent
900da81f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/org.etsi.mts.tdl.common/src/org/etsi/mts/tdl/TDLValueConverterService.java
+12
-3
12 additions, 3 deletions
...common/src/org/etsi/mts/tdl/TDLValueConverterService.java
with
12 additions
and
3 deletions
plugins/org.etsi.mts.tdl.common/src/org/etsi/mts/tdl/TDLValueConverterService.java
+
12
−
3
View file @
0fb31bfa
...
...
@@ -34,6 +34,16 @@ public class TDLValueConverterService extends EString2XtextConverter {
public
IValueConverter
<
String
>
TDLtxQIdentifier
()
{
return
this
.
QIdentifier
();
}
@ValueConverter
(
rule
=
"org.etsi.mts.tdl.TDLtx.GRIdentifier"
)
public
IValueConverter
<
String
>
GRIdentifier
()
{
return
this
.
QIdentifier
();
}
@ValueConverter
(
rule
=
"GRIdentifier"
)
public
IValueConverter
<
String
>
TDLtxGRIdentifier
()
{
return
this
.
GRIdentifier
();
}
}
class
IdentifierValueConverter
extends
AbstractValueConverter
<
String
>
{
...
...
@@ -55,13 +65,12 @@ class IdentifierValueConverter extends AbstractValueConverter<String> {
}
class
QIdentifierValueConverter
extends
IdentifierValueConverter
{
public
QIdentifierValueConverter
(
IValueConverter
<
String
>
iValueConverter
)
{
super
(
iValueConverter
);
}
@Override
public
String
toValue
(
String
string
,
INode
node
)
throws
ValueConverterException
{
String
[]
parts
=
string
.
split
(
"\\."
);
...
...
@@ -70,7 +79,7 @@ class QIdentifierValueConverter extends IdentifierValueConverter {
}
return
String
.
join
(
"."
,
parts
);
}
@Override
public
String
toString
(
String
value
)
throws
ValueConverterException
{
String
[]
parts
=
value
.
split
(
"\\."
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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