|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opt4j.core.config.ModuleSaver
public class ModuleSaver
Helper class for saving the PropertyModule configurations or adding
these to XML Nodes.
| Constructor Summary | |
|---|---|
ModuleSaver()
|
|
| Method Summary | |
|---|---|
protected org.w3c.dom.Document |
getEmptyDocument()
|
protected org.w3c.dom.Node |
getNode(com.google.inject.Module module,
org.w3c.dom.Document document)
|
protected javax.xml.transform.Transformer |
getStandardTransformer()
|
boolean |
save(java.io.File file,
java.util.Collection<? extends com.google.inject.Module> modules)
Save the module configurations to a File. |
boolean |
save(java.lang.String filename,
java.util.Collection<? extends com.google.inject.Module> modules)
Save the module configurations to a file (as filename). |
java.lang.String |
toXMLString(java.util.Collection<? extends com.google.inject.Module> modules)
Returns the xml representation of the Modules. |
java.lang.String |
toXMLString(com.google.inject.Module module)
Returns the xml representation of the Module. |
boolean |
write(java.io.OutputStream out,
java.util.Collection<? extends com.google.inject.Module> modules)
Save the modules configuration to an OutputStream. |
boolean |
write(java.io.OutputStream out,
com.google.inject.Module module)
Save the module configuration to an OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleSaver()
| Method Detail |
|---|
public boolean save(java.lang.String filename,
java.util.Collection<? extends com.google.inject.Module> modules)
filename - the name of the filemodules - the modules
true if successful
public boolean save(java.io.File file,
java.util.Collection<? extends com.google.inject.Module> modules)
File.
file - the filemodules - the modules
true if successful
public boolean write(java.io.OutputStream out,
java.util.Collection<? extends com.google.inject.Module> modules)
OutputStream.
out - the output streammodules - the modules
true if successful
public boolean write(java.io.OutputStream out,
com.google.inject.Module module)
OutputStream.
out - the output stream}module - the module
true if successfulpublic java.lang.String toXMLString(com.google.inject.Module module)
Module.
module - the module
public java.lang.String toXMLString(java.util.Collection<? extends com.google.inject.Module> modules)
Modules.
modules - the modules
protected org.w3c.dom.Document getEmptyDocument()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
protected javax.xml.transform.Transformer getStandardTransformer()
throws javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerConfigurationException
protected org.w3c.dom.Node getNode(com.google.inject.Module module,
org.w3c.dom.Document document)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||