com.billpringle.utils
Class WrpValidateCsv.GoToLoc

java.lang.Object
  extended by com.billpringle.utils.WrpValidateCsv.GoToLoc
Enclosing class:
WrpValidateCsv

public class WrpValidateCsv.GoToLoc
extends java.lang.Object

Inner class for statement label

A statement can have a statement label, which can then be used as a destination if a rule fires. A statement label can also be used for documentation, and do not require that a rule specifies the statement as a destination.

For efficiency sake, the index into the labels vector is stored so that the program doesn't have to search for the statement during run time.

Author:
Bill Pringle

Field Summary
(package private)  int loc
          index into rules for statement
(package private)  java.lang.String name
          the statement label
(package private)  int seq
          the statement sequence number
 
Constructor Summary
WrpValidateCsv.GoToLoc()
           
 
Method Summary
 int getLoc()
          Get the location in rules for the rule associated with this statement label
 java.lang.String getName()
          Get the name of this statement label
 int getSeq()
          Return the sequence number of the rule associated with this statement label.
 void setLoc(int loc)
          Set the location within rules of the rule associated with this statement label.
 void setName(java.lang.String name)
          Set the name of this statement label.
 void setSeq(int seq)
          Set the statement number for the rule associated with this statement label
 java.lang.String toString()
          Build string representation for this label
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

java.lang.String name
the statement label


seq

int seq
the statement sequence number


loc

int loc
index into rules for statement

Constructor Detail

WrpValidateCsv.GoToLoc

public WrpValidateCsv.GoToLoc()
Method Detail

getName

public java.lang.String getName()
Get the name of this statement label

Returns:
the name

setName

public void setName(java.lang.String name)
Set the name of this statement label. This name should be unique.

Parameters:
name - the name to set

getSeq

public int getSeq()
Return the sequence number of the rule associated with this statement label.

Returns:
the seq

setSeq

public void setSeq(int seq)
Set the statement number for the rule associated with this statement label

Parameters:
seq - the seq to set

getLoc

public int getLoc()
Get the location in rules for the rule associated with this statement label

Returns:
the location of the rule

setLoc

public void setLoc(int loc)
Set the location within rules of the rule associated with this statement label.

Parameters:
loc - the loc to set

toString

public java.lang.String toString()
Build string representation for this label

Overrides:
toString in class java.lang.Object