|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.util.XMLTool
public class XMLTool
Provides static methods with XML import/export functionality.
| Field Summary | |
|---|---|
static String |
ROOT_TAG
|
static String |
TEST_SETS_TAG
|
| Constructor Summary | |
|---|---|
XMLTool()
|
|
| Method Summary | |
|---|---|
static String |
exportBatchResultSet(BatchResultSet resultSet)
Exports a batch result set to its XML representation. |
static void |
exportBatchResultSet(BatchResultSet resultSet,
File file)
Exports a batch result set. |
static void |
exportConfiguration(Configuration configuration,
File file)
Exports a configuration. |
static InputStream |
exportConfigurationAsStream(Configuration configuration)
Exports a Configuration as XML Stream |
static void |
exportGestureSet(GestureSet set,
File file)
Exports a gesture set. |
static void |
exportGestureSet(List<GestureSet> sets,
File file)
Exports a list of gesture sets. |
static InputStream |
exportGestureSetAsStream(GestureSet set)
Exports a Gesture Set as Input Stream |
static InputStream |
exportGestureSetsAsStream(List<GestureSet> sets)
Exports a list of Gesture Sets as InputStream |
static void |
exportTestSet(List<TestSet> testSetList,
File file)
Exports a list of test sets. |
static void |
exportTestSet(TestSet testSet,
File file)
Exports a test set. |
static InputStream |
exportTestSetAsStream(TestSet testSet)
Exports a Test Set as XML Stream |
static BatchProcessContainer |
importBatchProcessContainer(File file)
Imports an XML File and builds up the object tree. |
static Configuration |
importConfiguration(File file)
Imports a configuration |
static Configuration |
importConfiguration(InputStream inputStream)
Imports a configuration. |
static org.jdom.Document |
importDocument(File file)
Imports an XML Document from a file. |
static org.jdom.Document |
importDocument(InputStream inputStream)
Imports an XML document. |
static GestureSet |
importGestureSet(File file)
|
static GestureSet |
importGestureSet(InputStream inputStream)
Imports a gesture set. |
static TestSet |
importTestSet(File file)
Imports a list of test sets. |
static TestSet |
importTestSet(InputStream inputStream)
Imports a list of test sets from an XML document. |
static String |
transform(String xmlDocument,
InputStream xsl)
XSL transformation. |
static String |
transform(String xmlDocument,
String xslFile)
Transforms an XML Document using XSLT |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ROOT_TAG
public static final String TEST_SETS_TAG
| Constructor Detail |
|---|
public XMLTool()
| Method Detail |
|---|
public static GestureSet importGestureSet(InputStream inputStream)
file - the XML file.
public static GestureSet importGestureSet(File file)
public static void exportGestureSet(GestureSet set,
File file)
set - the gesture set to be exported.file - the XML file.public static InputStream exportGestureSetAsStream(GestureSet set)
set -
public static InputStream exportGestureSetsAsStream(List<GestureSet> sets)
sets -
public static void exportGestureSet(List<GestureSet> sets,
File file)
sets - the gesture sets to be exported.file - the XML file.
public static void exportTestSet(TestSet testSet,
File file)
testSet - the test set to be exported.file - the XML file.
public static void exportTestSet(List<TestSet> testSetList,
File file)
testSetList - the list of test sets to be exported.file - the XML file.public static TestSet importTestSet(File file)
file - the XML File
public static TestSet importTestSet(InputStream inputStream)
inputStream - the input stream of the XML document
public static Configuration importConfiguration(InputStream inputStream)
file - the XML file
public static Configuration importConfiguration(File file)
file -
public static void exportConfiguration(Configuration configuration,
File file)
configuration - the configuration to be exported.file - the XML file.public static InputStream exportConfigurationAsStream(Configuration configuration)
configuration -
public static InputStream exportTestSetAsStream(TestSet testSet)
testSet -
public static void exportBatchResultSet(BatchResultSet resultSet,
File file)
resultSet - the batch result set to be exportedfile - the XML filepublic static String exportBatchResultSet(BatchResultSet resultSet)
resultSet - the batch result set to be exported.
public static org.jdom.Document importDocument(InputStream inputStream)
file - the XML file.
public static org.jdom.Document importDocument(File file)
file -
public static BatchProcessContainer importBatchProcessContainer(File file)
file - the XML file to be imported.
public static String transform(String xmlDocument,
String xslFile)
throws TransformerException,
TransformerConfigurationException,
TransformerFactoryConfigurationError
xmlDocument - the XML DocumentxslFile - the XSL Document
TransformerException
TransformerConfigurationException
TransformerFactoryConfigurationError
public static String transform(String xmlDocument,
InputStream xsl)
throws TransformerException,
TransformerConfigurationException,
TransformerFactoryConfigurationError
xmlDocument - XML document (String)xsl - XSL document (InputStream)
TransformerException
TransformerConfigurationException
TransformerFactoryConfigurationError
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||