|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.j2x.Converter
Converts source code to an XML document.
| Constructor Summary | |
Converter(JxProjectRepository repository)
Creates a converter that generates an XML document from source code. |
|
| Method Summary | |
void |
close()
Closes the converter. |
void |
convert(org.eclipse.jdt.core.ICompilationUnit icu)
Generates a DOM document object from input source code and resloves bindings. |
java.lang.String |
getCharsetName()
Returns the name of the converted XML document's charset. |
org.w3c.dom.Document |
getDocument()
Returns a DOM document object of the converted XML document. |
org.w3c.dom.Document |
parse(org.eclipse.jdt.core.ICompilationUnit icu)
Parses input source code and generates its DOM document object. |
void |
setCharsetName(java.lang.String charset)
Sets the name of an XML document's charset. |
void |
setDocument(org.w3c.dom.Document doc)
Sets a DOM document object to be resolved. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Converter(JxProjectRepository repository)
repository - A repository of the current project.| Method Detail |
public void close()
public void setDocument(org.w3c.dom.Document doc)
doc - A DOM document object.
Re-generating a new XML document will be done if this value is null.
Only resolving bindings of the XML document will be done if a DOM document object is given.public org.w3c.dom.Document getDocument()
public void setCharsetName(java.lang.String charset)
charset - A charset name.
Detecting the charset name of the XML document will be skipped if this value is not null.public java.lang.String getCharsetName()
public void convert(org.eclipse.jdt.core.ICompilationUnit icu)
throws JxException
icu - A compilation unit to be converted.
true if the conversion succeeds, otherwise false.
JxException - if an XML document was not generated.
public org.w3c.dom.Document parse(org.eclipse.jdt.core.ICompilationUnit icu)
throws JxException
icu - A compilation unit to be converted.
JxException - if the parsing fails.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||