Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.concern.client.commandline
Class XMLCommand  view XMLCommand download XMLCommand.java

java.lang.Object
  extended byorg.concern.client.commandline.Command
      extended byorg.concern.client.commandline.XMLCommand
All Implemented Interfaces:
java.lang.Runnable

public class XMLCommand
extends Command

Run command from XML file.

Version:
$Revision: 1.1 $

Field Summary
(package private)  java.lang.String fileName
           
 
Fields inherited from class org.concern.client.commandline.Command
args, controller
 
Constructor Summary
XMLCommand()
           
 
Method Summary
private  Command decode(java.io.File file)
           
 java.lang.String getFileName()
           
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 void setArguments(java.lang.String[] args)
           
 void setFileName(java.lang.String fileName)
           
 
Methods inherited from class org.concern.client.commandline.Command
setController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileName

java.lang.String fileName
Constructor Detail

XMLCommand

public XMLCommand()
Method Detail

getFileName

public java.lang.String getFileName()

setFileName

public void setFileName(java.lang.String fileName)

setArguments

public void setArguments(java.lang.String[] args)
Overrides:
setArguments in class Command

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class Command

decode

private Command decode(java.io.File file)
                throws java.io.FileNotFoundException