public class XmlHandler
extends java.lang.Object
Constructor and Description |
---|
XmlHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
copyPrepTextToSundanceInput()
Copies the text between the
|
static void |
copyPrepTextToSundanceInput(java.lang.String xmlSource)
Copies the text between the
|
static java.util.HashSet<java.lang.String> |
getProductList(java.lang.String xmlSource)
Returns the product/ingredient list of a process description
|
static boolean |
isIngOptional(java.lang.String ing)
Tests if the keyword "optional" is in an ingredient
|
static boolean |
isMeanwhileStep(java.lang.String raw)
Tests if a step starts with "Meanwhile"
|
static int |
isPreMeanwhileStep(java.lang.String raw)
Tests if a step is preceding a Meanwhile step
|
static void |
setInputFile(java.io.File inf)
Configure handler for a new file
|
public static void setInputFile(java.io.File inf)
inf
- public static void copyPrepTextToSundanceInput()
public static void copyPrepTextToSundanceInput(java.lang.String xmlSource)
public static boolean isMeanwhileStep(java.lang.String raw)
raw
- public static int isPreMeanwhileStep(java.lang.String raw)
raw
- public static boolean isIngOptional(java.lang.String ing)
ing
- public static java.util.HashSet<java.lang.String> getProductList(java.lang.String xmlSource)
xmlSource
-