hmi.util
Class StringUtil.TextPos

java.lang.Object
  extended by hmi.util.StringUtil.TextPos
Enclosing class:
StringUtil

public static class StringUtil.TextPos
extends Object

Local class, for reposting positions in a String in the form of (line-number, line-pos).


Field Summary
private  int lineNumber
           
private  int linePos
           
 
Constructor Summary
StringUtil.TextPos()
          Creates a new undefined LinePos
StringUtil.TextPos(int lineNumber, int linePos)
          Creates a new LinePos
 
Method Summary
 boolean equals(Object textpos)
           
 int getLineNumber()
          returns the line number
 int getLinePos()
          returns the line pos
 int hashCode()
           
 boolean isDefined()
          return true for a defined text position, i.e. when (at least) the line number is >= 0
 void setLineNumber(int lineNumber)
          Sets the line number
 void setLinePos(int linePos)
          Sets the line position
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

lineNumber

private int lineNumber

linePos

private int linePos
Constructor Detail

StringUtil.TextPos

public StringUtil.TextPos()
Creates a new undefined LinePos


StringUtil.TextPos

public StringUtil.TextPos(int lineNumber,
                          int linePos)
Creates a new LinePos

Method Detail

setLineNumber

public void setLineNumber(int lineNumber)
Sets the line number


setLinePos

public void setLinePos(int linePos)
Sets the line position


getLineNumber

public int getLineNumber()
returns the line number


getLinePos

public int getLinePos()
returns the line pos


equals

public boolean equals(Object textpos)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isDefined

public boolean isDefined()
return true for a defined text position, i.e. when (at least) the line number is >= 0


toString

public String toString()
Overrides:
toString in class Object