Commit 2b273a00 authored by Anders Nilsson's avatar Anders Nilsson
Browse files

Added prettyprinting of attributes

parent 2c2fb5ee
...@@ -135,6 +135,11 @@ aspect GenPrettyPrinter { ...@@ -135,6 +135,11 @@ aspect GenPrettyPrinter {
pStream.println(" getElement(i).prettyPrint(indent,pStream);"); pStream.println(" getElement(i).prettyPrint(indent,pStream);");
pStream.println(" }"); pStream.println(" }");
pStream.println(" }\n"); pStream.println(" }\n");
pStream.println(" syn String Attribute.id() = \"\";");
pStream.println(" eq RdfId.id() = \"Rdf:ID\";");
pStream.println(" public void Attribute.prettyPrint(String indent, PrintStream pStream) {");
pStream.println(" System.out.print(\" \"+id()+\"=\"+getValue().getSTRING_LITERAL());");
pStream.println(" }\n");
super.genPrettyPrinter(pStream); super.genPrettyPrinter(pStream);
pStream.println("}\n"); pStream.println("}\n");
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment