1 /*
2 * @(#)$Id: JdomCommandElement.java 689 2009-07-22 00:10:27Z bsigner $
3 *
4 * Author : Michele Croci, mcroci@gmail.com
5 *
6 * Purpose : XML support for the <command> element.
7 *
8 * -----------------------------------------------------------------------
9 *
10 * Revision Information:
11 *
12 * Date Who Reason
13 *
14 * Dec 06, 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
26 package org.ximtec.igesture.geco.xml;
27
28 import org.jdom.Element;
29 import org.ximtec.igesture.geco.action.CommandExecutor;
30
31
32
33
34 /**
35 * XML support for the <command> element.
36 *
37 * @version 0.9, Dec 06, 2007
38 * @author Michele Croci, mcroci@gmail.com
39 */
40 public class JdomCommandElement extends Element {
41
42 private static final String COMMAND = "command";
43
44
45 public JdomCommandElement(CommandExecutor action) {
46 this(COMMAND, action.toString());
47 } // JdomCommandElement
48
49
50 public JdomCommandElement(String name, String content) {
51 super(name);
52 this.addContent(content);
53 } // JdomCommandElement
54
55 }
56