Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
XSF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
fleet
formats
XSF
Commits
f1759f9c
Commit
f1759f9c
authored
May 18, 2020
by
PONCELET
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
3dd1b75e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sources/xsf.generator/src/main/java/fr/ifremer/fr/xsf/generator/model/SCAttributeAdapter.java
...fr/ifremer/fr/xsf/generator/model/SCAttributeAdapter.java
+2
-2
No files found.
sources/xsf.generator/src/main/java/fr/ifremer/fr/xsf/generator/model/SCAttributeAdapter.java
View file @
f1759f9c
...
...
@@ -14,9 +14,9 @@ public class SCAttributeAdapter {
if
(
attribute
.
getType
()==
null
)
{
//treat as String
return
Arrays
.
asList
(
String
.
format
(
"addAttribute(
\"%s\"
, \"%s\");"
,
"ATT_"
+
attribute
.
name
.
toUpperCase
(),
attribute
.
value
==
null
?
""
:
attribute
.
value
.
replace
(
"+"
,
""
)));
return
Arrays
.
asList
(
String
.
format
(
"addAttribute(
%s
, \"%s\");"
,
"ATT_"
+
attribute
.
name
.
toUpperCase
(),
attribute
.
value
==
null
?
""
:
attribute
.
value
.
replace
(
"+"
,
""
)));
}
return
Arrays
.
asList
(
String
.
format
(
"addAttribute(
\"%s\"
, %s);"
,
"ATT_"
+
attribute
.
name
.
toUpperCase
(),
formatAttribute
(
attribute
,
attribute
.
getType
())));
return
Arrays
.
asList
(
String
.
format
(
"addAttribute(
%s
, %s);"
,
"ATT_"
+
attribute
.
name
.
toUpperCase
(),
formatAttribute
(
attribute
,
attribute
.
getType
())));
}
public
static
List
<
String
>
getSourceCode
(
Variable
variable
,
Attribute
attribute
)
{
if
(
attribute
.
getName
().
compareTo
(
"_FillValue"
)==
0
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment