|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.output.XMLStringOutput
public abstract class XMLStringOutput
Create an XML file but return a String instead of a file
| Field Summary | |
|---|---|
protected IOutputFileModel |
model
Model that defines the setup |
protected Element |
root
This is the root tag of the XML document |
| Constructor Summary | |
|---|---|
XMLStringOutput()
|
|
| Method Summary | |
|---|---|
protected void |
addAttribute(Element e,
java.lang.String attrName,
java.lang.String attrValue)
Add an attribute to the element |
protected void |
addElement(Element parent,
Element child)
Add a child element |
protected void |
addText(Element parent,
java.lang.String text)
Add text to an element |
java.lang.String |
getAbsoluteOutputLoacation()
Retrieve the absolute path to the file output location based on the initialized model |
protected Element |
getRoot()
Retrieve the root element |
boolean |
isGeneratedOutputFile()
This generator class IGeneralFileGenerator.generate() method returns an IFile instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.sahits.codegen.generator.IGeneralFileGenerator |
|---|
generate |
| Methods inherited from interface ch.sahits.codegen.generator.IGeneralGenerator |
|---|
createModel, init |
| Field Detail |
|---|
protected IOutputFileModel model
protected Element root
| Constructor Detail |
|---|
public XMLStringOutput()
| Method Detail |
|---|
protected final Element getRoot()
protected final void addAttribute(Element e,
java.lang.String attrName,
java.lang.String attrValue)
e - Element to add the attribute toattrName - name of the attributeattrValue - value of the attribute
protected final void addElement(Element parent,
Element child)
parent - Element to add the child tochild - Element to add
protected final void addText(Element parent,
java.lang.String text)
parent - Element the text should be added totext - to addpublic final java.lang.String getAbsoluteOutputLoacation()
getAbsoluteOutputLoacation in interface IGeneralFileGeneratorpublic final boolean isGeneratedOutputFile()
IGeneralFileGenerator.generate() method returns an IFile instance
isGeneratedOutputFile in interface IGeneralGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||