/**
  * Makes a XML text representation.
  *
  * @param buffer
  */
 public void makeTextElement(PrintWriter buffer) {
   int size;
   String prefix =
       rNSContext_.getPrefixByUri("http://www.iso_relax.org/xmlns/miaou/binaryTreeAutomaton");
   buffer.print("<");
   URelaxer.makeQName(prefix, "nonExistentAttributeTransition", buffer);
   rNSContext_.makeNSMappings(buffer);
   buffer.print(" ");
   buffer.print("target");
   buffer.print("=\"");
   buffer.print(URelaxer.getString(getTarget()));
   buffer.print("\"");
   buffer.print(" ");
   buffer.print("nameClass");
   buffer.print("=\"");
   buffer.print(URelaxer.getString(getNameClass()));
   buffer.print("\"");
   if (exceptNameClass_ != null) {
     buffer.print(" ");
     buffer.print("exceptNameClass");
     buffer.print("=\"");
     buffer.print(URelaxer.getString(getExceptNameClass()));
     buffer.print("\"");
   }
   buffer.print(" ");
   buffer.print("right");
   buffer.print("=\"");
   buffer.print(URelaxer.getString(getRight()));
   buffer.print("\"");
   buffer.print(">");
   buffer.print("</");
   URelaxer.makeQName(prefix, "nonExistentAttributeTransition", buffer);
   buffer.print(">");
 }
コード例 #2
0
 /**
  * Makes a XML text representation.
  *
  * @param buffer
  */
 public void makeTextElement(PrintWriter buffer) {
   int size;
   String prefix =
       rNSContext_.getPrefixByUri("http://www.iso_relax.org/xmlns/miaou/binaryTreeAutomaton");
   buffer.print("<");
   URelaxer.makeQName(prefix, "textTransition", buffer);
   rNSContext_.makeNSMappings(buffer);
   buffer.print(" ");
   buffer.print("target");
   buffer.print("=\"");
   buffer.print(URelaxer.getString(getTarget()));
   buffer.print("\"");
   buffer.print(" ");
   buffer.print("right");
   buffer.print("=\"");
   buffer.print(URelaxer.getString(getRight()));
   buffer.print("\"");
   buffer.print(">");
   buffer.print("</");
   URelaxer.makeQName(prefix, "textTransition", buffer);
   buffer.print(">");
 }