edu.mssm.crover.webservices.rbde
Class XMLGenerator

java.lang.Object
  |
  +--edu.mssm.crover.webservices.rbde.XMLGenerator

public class XMLGenerator
extends java.lang.Object

Generates the XML needed to generate an RbDg diagram. Only use CustomizedDiagramImpl5_0. ????

Author:
luce

Constructor Summary
XMLGenerator()
           
 
Method Summary
 int getCtermx()
           
 int getCtermy()
           
 int getNtermx()
           
 int getNtermy()
           
 java.lang.String getXML(ServletCentral sc, CustomizedDiagramImpl5_0 cd, AnnotatedBioSequence sequence, javax.servlet.http.HttpSession session)
           
 java.lang.String insertLB(java.lang.String ml)
          Inserts interpretable line breaks into modified ML.
 java.lang.String insertNL(java.lang.String xml_in)
          Inserts new lines into XML code.
 java.lang.String modifyXML(java.lang.String old_xml)
          Modifies an XML file to remove characters interpretable by a browser, and replaces them with the standard numeric entity.
 java.lang.String reformatXML(java.lang.String modified_xml)
          Modifies an XML file to reinsert special characters.
 void setCtermx(int x)
           
 void setCtermy(int y)
           
 void setNtermx(int x)
          Methods to get and set the Nterm and Cterm spacer variables.
 void setNtermy(int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLGenerator

public XMLGenerator()
Method Detail

getXML

public java.lang.String getXML(ServletCentral sc,
                               CustomizedDiagramImpl5_0 cd,
                               AnnotatedBioSequence sequence,
                               javax.servlet.http.HttpSession session)
                        throws java.lang.Exception
java.lang.Exception

modifyXML

public java.lang.String modifyXML(java.lang.String old_xml)
Modifies an XML file to remove characters interpretable by a browser, and replaces them with the standard numeric entity. Characters interpretable by browsers include: "<": < ">": > "\"": "


insertLB

public java.lang.String insertLB(java.lang.String ml)
Inserts interpretable line breaks into modified ML.


reformatXML

public java.lang.String reformatXML(java.lang.String modified_xml)
Modifies an XML file to reinsert special characters.


insertNL

public java.lang.String insertNL(java.lang.String xml_in)
Inserts new lines into XML code.


setNtermx

public void setNtermx(int x)
Methods to get and set the Nterm and Cterm spacer variables.


setNtermy

public void setNtermy(int y)

setCtermx

public void setCtermx(int x)

setCtermy

public void setCtermy(int y)

getNtermx

public int getNtermx()

getNtermy

public int getNtermy()

getCtermx

public int getCtermx()

getCtermy

public int getCtermy()


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.