1 /*
2 * @(#)$Id: JdomGestureSetName.java 689 2009-07-22 00:10:27Z bsigner $
3 *
4 * Author : Michele Croci, mcroci@gmail.com
5 *
6 * Purpose : XML support for the <gestureSet> element.
7 *
8 * -----------------------------------------------------------------------
9 *
10 * Revision Information:
11 *
12 * Date Who Reason
13 *
14 * Nov 28, 2007 crocimi Initial Release
15 *
16 * -----------------------------------------------------------------------
17 *
18 * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
19 *
20 * This software is the proprietary information of ETH Zurich.
21 * Use is subject to license terms.
22 *
23 */
24
25 package org.ximtec.igesture.geco.xml;
26
27 import org.jdom.Element;
28
29 /**
30 * XML support for the <gestureSet> element.
31 *
32 * @version 0.9, Nov 28, 2007
33 * @author Michele Croci, mcroci@gmail.com
34 */
35 public class JdomGestureSetName extends Element {
36
37 public static final String ROOT_TAG = "gestureSet";
38
39 public JdomGestureSetName(String gestureSetFileName) {
40 super(ROOT_TAG);
41 if (gestureSetFileName != null)
42 this.addContent(gestureSetFileName);
43 }
44
45 public static Object unmarshal(Element gestureSetElement) {
46 return gestureSetElement.getValue();
47 } // unmarshal
48
49 }