com.ds.fw.parse
Class FwCommandFormat

java.lang.Object
  |
  +--com.ds.fw.parse.FwCommandFormat

public class FwCommandFormat
extends java.lang.Object

FwCommandFormat classd provides format information for a given command, used when parsing that command.


Field Summary
 int commCode
          The command name
 java.lang.String commName
           
 java.util.Vector nameArg
          The type of an argument
 int numbArgs
          The command code
 boolean repeated_arg
          The name of an argument
 java.util.Vector typeArg
          The number of command's arguments
 
Constructor Summary
FwCommandFormat(java.lang.String txtFormat, int code)
          The FwCommandFormat constructor parses the comannd text format (txtFormat arguments) and adds their names to the vector nameArg.
FwCommandFormat(java.lang.String txtFormat, int code, boolean repeated)
          Another constructor which is used for commands with a repetition of N arguments of the same type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commName

public java.lang.String commName

commCode

public int commCode
The command name


numbArgs

public int numbArgs
The command code


typeArg

public java.util.Vector typeArg
The number of command's arguments


nameArg

public java.util.Vector nameArg
The type of an argument


repeated_arg

public boolean repeated_arg
The name of an argument

Constructor Detail

FwCommandFormat

public FwCommandFormat(java.lang.String txtFormat,
                       int code)
The FwCommandFormat constructor parses the comannd text format (txtFormat arguments) and adds their names to the vector nameArg. The arguments type codes are added to the typeArg vector.


FwCommandFormat

public FwCommandFormat(java.lang.String txtFormat,
                       int code,
                       boolean repeated)
Another constructor which is used for commands with a repetition of N arguments of the same type.