Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Alignment API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
moex
Alignment API
Commits
b42764e3
Commit
b42764e3
authored
15 years ago
by
Jérôme Euzenat
Browse files
Options
Downloads
Patches
Plain Diff
- largely rewrote printout
parent
2bfda6d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fr/inrialpes/exmo/align/service/AlignmentIds.java
+31
-23
31 additions, 23 deletions
src/fr/inrialpes/exmo/align/service/AlignmentIds.java
with
31 additions
and
23 deletions
src/fr/inrialpes/exmo/align/service/AlignmentIds.java
+
31
−
23
View file @
b42764e3
...
...
@@ -38,42 +38,50 @@ public class AlignmentIds extends Success {
this
.
pretty
=
pretty
;
}
public
String
HTMLString
(){
String
result
=
"Alignment Ids: <ul>"
;
String
id
[]
=
content
.
split
(
" "
);
String
pid
[]
=
pretty
.
split
(
":"
);
for
(
int
i
=
id
.
length
-
1
;
i
>=
0
;
i
--
){
String
result
=
"No alignment."
;
if
(
id
.
length
>=
1
)
{
result
=
"Alignment Ids: <ul>"
;
for
(
int
i
=
id
.
length
-
1
;
i
>=
0
;
i
--
){
//System.err.println("id["+i+"]"+id[i]);
result
+=
"<li><a href=\"../html/retrieve?method=fr.inrialpes.exmo.align.impl.renderer.HTMLRendererVisitor&id="
+
id
[
i
]+
"\">"
;
result
+=
id
[
i
];
String
pp
=
null
;
if
(
pid
!=
null
)
{
try
{
result
+=
"<li><a href=\"../html/retrieve?method=fr.inrialpes.exmo.align.impl.renderer.HTMLRendererVisitor&id="
+
id
[
i
]+
"\">"
;
result
+=
id
[
i
];
String
pp
=
null
;
if
(
pid
!=
null
)
{
try
{
pp
=
pid
[
i
];
if
(
pp
!=
null
&&
!
pp
.
equals
(
""
)
&&
!
pp
.
equals
(
"null"
))
{
result
+=
" ("
+
pp
+
")"
;
result
+=
" ("
+
pp
+
")"
;
}
//System.err.println("pid["+i+"]="+pp);
}
catch
(
Exception
ex
)
{
}
}
result
+=
"</a></li>"
;
}
catch
(
Exception
ex
)
{
}
}
result
+=
"</a></li>"
;
}
result
+=
"</ul>"
;
}
return
result
+=
"</ul>"
;
return
result
;
}
public
String
HTMLRESTString
(){
String
result
=
"
A
lignment
Ids: <ul>
"
;
String
result
=
"
No a
lignment
.
"
;
String
id
[]
=
content
.
split
(
" "
);
for
(
int
i
=
id
.
length
-
1
;
i
>=
0
;
i
--
){
result
+=
"<li><a href=\"../rest/retrieve?method=fr.inrialpes.exmo.align.impl.renderer.HTMLRendererVisitor&id="
+
id
[
i
]+
"\">"
+
id
[
i
]+
"</a>"
;
result
+=
"<table><tr>"
;
result
+=
"<td><form action=\"getID\"><input type=\"hidden\" name=\"id\" value=\""
+
id
[
i
]+
"\"/><input type=\"submit\" name=\"action\" value=\"GetID\" disabled=\"disabled\"/></form></td>"
;
result
+=
"<td><form action=\"metadata\"><input type=\"hidden\" name=\"id\" value=\""
+
id
[
i
]+
"\"/><input type=\"submit\" name=\"action\" value=\"Metadata\"/></form></td>"
;
result
+=
"</li>"
;
if
(
id
.
length
>=
1
)
{
result
=
"Alignment Ids: <ul>"
;
for
(
int
i
=
id
.
length
-
1
;
i
>=
0
;
i
--
){
result
+=
"<li><a href=\"../rest/retrieve?method=fr.inrialpes.exmo.align.impl.renderer.HTMLRendererVisitor&id="
+
id
[
i
]+
"\">"
+
id
[
i
]+
"</a>"
;
result
+=
"<table><tr>"
;
result
+=
"<td><form action=\"getID\"><input type=\"hidden\" name=\"id\" value=\""
+
id
[
i
]+
"\"/><input type=\"submit\" name=\"action\" value=\"GetID\" disabled=\"disabled\"/></form></td>"
;
result
+=
"<td><form action=\"metadata\"><input type=\"hidden\" name=\"id\" value=\""
+
id
[
i
]+
"\"/><input type=\"submit\" name=\"action\" value=\"Metadata\"/></form></td>"
;
result
+=
"</li>"
;
}
result
+=
"</ul>"
;
}
return
result
+=
"</ul>"
;
return
result
;
}
public
String
RESTString
(){
...
...
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