org.jboss.dashboard.command
Class AbstractCommand
java.lang.Object
org.jboss.dashboard.command.AbstractCommand
- All Implemented Interfaces:
- Command
public abstract class AbstractCommand
- extends Object
- implements Command
Base class for the implementation of custom commands.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected String name
arguments
protected List<String> arguments
dataFilter
protected DataFilter dataFilter
AbstractCommand
public AbstractCommand()
AbstractCommand
public AbstractCommand(String name)
getName
public String getName()
- Specified by:
getName in interface Command
setName
public void setName(String name)
- Specified by:
setName in interface Command
getArguments
public List<String> getArguments()
- Specified by:
getArguments in interface Command
setArguments
public void setArguments(List<String> arguments)
- Specified by:
setArguments in interface Command
getDataFilter
public DataFilter getDataFilter()
- Specified by:
getDataFilter in interface Command
setDataFilter
public void setDataFilter(DataFilter dataFilter)
- Specified by:
setDataFilter in interface Command
getArgument
public String getArgument(int index)
- Specified by:
getArgument in interface Command
containsProperty
public boolean containsProperty(String propertyId)
throws Exception
- Specified by:
containsProperty in interface Command
- Throws:
Exception
execute
public abstract String execute()
throws Exception
- Specified by:
execute in interface Command
- Throws:
Exception
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.