1 /*
2 * @(#)$Id: JdomBatchValue.java 689 2009-07-22 00:10:27Z bsigner $
3 *
4 * Author : Ueli Kurmann, igesture@uelikurmann.ch
5 *
6 *
7 * Purpose :
8 *
9 * -----------------------------------------------------------------------
10 *
11 * Revision Information:
12 *
13 * Date Who Reason
14 *
15 * 15.10.2008 ukurmann Initial Release
16 *
17 * -----------------------------------------------------------------------
18 *
19 * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
20 *
21 * This software is the proprietary information of ETH Zurich.
22 * Use is subject to license terms.
23 *
24 */
25
26
27 package org.ximtec.igesture.batch.core.jdom;
28
29 import org.jdom.Element;
30 import org.ximtec.igesture.batch.core.BatchValue;
31
32
33
34 /**
35 * Comment
36 * @version 1.0 15.10.2008
37 * @author Ueli Kurmann
38 */
39 public class JdomBatchValue {
40
41 public static String ROOT_TAG = "value";
42
43 /**
44 * Imports a simple value from an XML element.
45 *
46 * @param parameterValue the XML element the value has to be imported form.
47 * @return the batch value imported from the XML element.
48 */
49 public static BatchValue unmarshal(Element parameterValue) {
50 final BatchValue value = new BatchValue();
51 value.setValue(parameterValue.getText());
52 return value;
53 } // unmarshal
54
55
56 }