Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Nilsson
OwlCompiler
Commits
e29eaa71
Commit
e29eaa71
authored
Feb 28, 2007
by
Anders Nilsson
Browse files
Fixed generation of ValueElement, without annoying whitespace.
parent
54c2b20f
Changes
4
Hide whitespace changes
Inline
Side-by-side
.bzrignore
View file @
e29eaa71
...
...
@@ -16,3 +16,4 @@ siaras/ontology.owl
siaras/javadoc
siaras/OntologyCompiler.jar
*.repository
siaras/ontology.pprj
owl.jjt
View file @
e29eaa71
...
...
@@ -393,7 +393,7 @@ String getData() {
}
s
.
append
(
t
.
image
);
}
return
s
.
toString
();
return
s
.
toString
()
.
trim
()
;
}
//
void
StringElement
()
#
StringElement
:
{
Token
t
;
}
...
...
siaras/OntologyGeneration.jrag
View file @
e29eaa71
...
...
@@ -44,6 +44,24 @@ aspect OntologyGeneration {
}
}
public void ValueElement.genOntology(String ind, PrintStream pStream) {
pStream.print(ind+"<"+name());
for (int i=0; i<getNumAttribute(); i++) {
pStream.print(" ");
getAttribute(i).genOntology(pStream);
}
if (getNumElement() > 0) {
pStream.println();
pStream.print(ind+">");
for (int i=0; i<getNumElement(); i++) {
getElement(i).genOntology(ind+" ", pStream);
}
pStream.println("</"+name()+">");
} else {
pStream.println("/>");
}
}
// public void Thing.genOntology(String ind, PrintStream pStream) {
// }
...
...
siaras/Siaras.jjt
View file @
e29eaa71
...
...
@@ -378,7 +378,7 @@ String getData() {
}
s
.
append
(
t
.
image
);
}
return
s
.
toString
();
return
s
.
toString
()
.
trim
()
;
}
...
...
Write
Preview
Supports
Markdown
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