|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Task org.apache.torque.task.TorqueMergeXMLDoc
public class TorqueMergeXMLDoc
This ant task will merge the schema-desc.xml with schema.xml, if schema-description.xml exists
Constructor Summary | |
---|---|
TorqueMergeXMLDoc()
|
Method Summary | |
---|---|
Document |
createNewXML(Document dbSchemaDoc,
Document schemaWithDescDoc)
merges the two xml document. |
void |
execute()
|
File |
getDbSchema()
|
void |
mergeSchemas(File schemaWithDesc,
File dbSchema)
performs the merge operation by taking two input files as input and then merges the file with description into the existing schema.xml file |
void |
setDbSchema(String dbSchemaString)
|
void |
setDbSchemaString(String dbSchemaString)
|
static Document |
setDocument(File file)
creates a document object from an input file |
void |
setSchemaWithDesc(String schemaWithDescString)
|
void |
setSchemaWithDescString(String schemaWithDescString)
|
void |
writeXMLToFile(Document newXMLDocument)
writes the document object to an output file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TorqueMergeXMLDoc()
Method Detail |
---|
public void setDbSchemaString(String dbSchemaString)
public void setSchemaWithDescString(String schemaWithDescString)
public File getDbSchema()
public void setSchemaWithDesc(String schemaWithDescString)
public void setDbSchema(String dbSchemaString)
public static Document setDocument(File file) throws ParserConfigurationException, SAXException, IOException
file
-
ParserConfigurationException
SAXException
IOException
public void mergeSchemas(File schemaWithDesc, File dbSchema) throws Exception
schemaWithDesc
- dbSchema
-
Exception
public Document createNewXML(Document dbSchemaDoc, Document schemaWithDescDoc) throws Exception
Exception
public void writeXMLToFile(Document newXMLDocument) throws Exception
newXMLDocument
- output xml document
Exception
public void execute() throws BuildException
BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |