|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcometa.execute.ExecuteCombinationProcedure
public class ExecuteCombinationProcedure
This class executes a combination procedure file, generated by the metadata combination phase.
Constructor Summary | |
---|---|
ExecuteCombinationProcedure(java.lang.String combinationProcedure,
boolean showReview)
This method shows the procedure review window. |
Method Summary | |
---|---|
static java.io.File |
appendToFile(java.lang.String filename,
java.lang.String content)
This method appends a String to an existing file. |
void |
combineData()
Given the procedure file, this method go through all the |
java.lang.String |
convertEntities(java.lang.String input)
It convert the html entities (used to stored special characters in the XML database) to normal characters. |
java.lang.String |
executeCommand(java.lang.String command)
This method is used to run a shell command in a UNIX environment. |
java.lang.String |
reverseString(java.lang.String inputString)
This method reverses a given input string. |
static java.io.File |
writeToFile(java.lang.String filename,
java.lang.String content)
This method writes a String to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExecuteCombinationProcedure(java.lang.String combinationProcedure, boolean showReview)
combinationProcedure
- The string representing the path to the combination procedure file.showReview
- Trueif the combination procedure has to be displayed for editing before the execution. If
false, the procedure is executed without review.
Method Detail |
---|
public java.lang.String executeCommand(java.lang.String command) throws java.io.IOException
command
- The command to execute.
java.io.IOException
- Throws an exception if something went wrong (usually, if the UNIX program could not be executed).public java.lang.String convertEntities(java.lang.String input)
input
- A string.
public java.lang.String reverseString(java.lang.String inputString)
inputString
- The string to be reversed.
public void combineData()
exectags and it executes the corresponding UNIX commands.
public static java.io.File writeToFile(java.lang.String filename, java.lang.String content)
filename
- The path and filename where the file has to be written.content
- The content to be written to the file.
Filecorresponding to the created file, or
nullif something went wrong.
public static java.io.File appendToFile(java.lang.String filename, java.lang.String content)
filename
- The name of the file to which the content has to be appended.content
- The content to be appended to the file.
Fileto which the content has been appended, or
nullif something went wrong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |