Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Verification for Decision Model and Notation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container registry
Model registry
Monitor
Service Desk
Analyze
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
Jonas Blatt
Verification for Decision Model and Notation
Commits
b2c82193
Commit
b2c82193
authored
5 years ago
by
Jonas Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Fix Name: auto cut length of name, if it is greater than the max length
parent
e70ef5bc
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
dmnverifierapi/src/main/java/de/unikoblenz/fgbks/base/domain/Name.java
+9
-1
9 additions, 1 deletion
...i/src/main/java/de/unikoblenz/fgbks/base/domain/Name.java
with
9 additions
and
1 deletion
dmnverifierapi/src/main/java/de/unikoblenz/fgbks/base/domain/Name.java
+
9
−
1
View file @
b2c82193
...
...
@@ -18,8 +18,16 @@ public class Name extends AbstractStringValueObject {
super
(
initialValue
);
}
@Override
protected
String
validateAndNormalize
(
String
newValue
)
{
if
(
newValue
.
length
()
>
getMaxLength
())
{
newValue
=
newValue
.
substring
(
0
,
getMaxLength
()
-
2
)
+
".."
;
}
return
super
.
validateAndNormalize
(
newValue
);
}
@Override
protected
Integer
getMaxLength
()
{
return
5
0
;
return
6
0
;
}
}
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