1 // $Id: TypeInspectionCommand.java 165 2009-05-28 21:46:38Z agony $
2 /*
3 * xsAnalyzer - XML schema analyzing tool. Copyright (C) 2008 Michael Engelhardt
4 *
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
6 * License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
7 * version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
10 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
13 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 */
15 /**
16 *
17 */
18 package de.mindcrimeilab.xsanalyzer.actions;
19
20 import java.util.Map;
21
22 import org.apache.xerces.xs.XSObject;
23 import org.springframework.binding.value.ValueModel;
24 import org.springframework.richclient.command.ParameterizableActionCommandExecutor;
25
26 import de.mindcrimeilab.util.Accessor;
27
28 /**
29 *
30 * @author Michael Engelhardt<me@mindcrime-ilab.de>
31 * @author $Author: agony $
32 * @version $Revision: 165 $
33 *
34 */
35 public class TypeInspectionCommand extends AbstractXSObjectCommand {
36
37 private final ParameterizableActionCommandExecutor executer = new TypeInspectionExecutor();
38
39 public TypeInspectionCommand() {
40 this(null, null);
41 }
42
43 public TypeInspectionCommand(ValueModel valueModel) {
44 this(valueModel, null);
45 }
46
47 public TypeInspectionCommand(ValueModel valueModel, Accessor accessor) {
48 super("typeInspectionCommand", valueModel, accessor);
49
50 }
51
52 /*
53 * (non-Javadoc)
54 *
55 * @see de.mindcrimeilab.xsanalyzer.actions.AbstractXSObjectCommand#executeWrappedExecutor(java.util.Map)
56 */
57 @Override
58 protected void executeWrappedExecutor(Map<String, XSObject> parameter) {
59 executer.execute(parameter);
60 }
61
62 }