com.jp.protection.priv.pro.parser
Class OrderParser.PropertyError

java.lang.Object
  extended by com.jp.protection.priv.pro.parser.OrderParser.Error
      extended by com.jp.protection.priv.pro.parser.OrderParser.PropertyError
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
OrderParser

public static class OrderParser.PropertyError
extends OrderParser.Error

An extension of Error class intended to represents errors occurred during order property reading


Field Summary
protected  int fColumn
           
protected  int fLine
           
protected  java.lang.String fName
           
 
Fields inherited from class com.jp.protection.priv.pro.parser.OrderParser.Error
fHTMLMessage, fMessage, fSeverity, SEVERITY_HIGH, SEVERITY_LOW, SEVERITY_MEDIUM
 
Constructor Summary
OrderParser.PropertyError(java.lang.String aName, java.lang.String aMessage, int aLine, int aColumn)
          Creates and initializes an new PropertyError instance
 
Method Summary
 int getColumn()
          Returns column number where this property is located in the order
 int getLine()
          Returns line number where this property is located in the order
 java.lang.String getName()
          Returns the name of the property
 java.lang.String toHTML()
          Formats and returns message as HTML if HTML message was not specified; otherwise simply returns HTML message value
 java.lang.String toString()
          Returns textual representation of the error
 
Methods inherited from class com.jp.protection.priv.pro.parser.OrderParser.Error
compareTo, getHTMLMessage, getMessage, getSeverity, setHTMLMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fName

protected java.lang.String fName

fLine

protected int fLine

fColumn

protected int fColumn
Constructor Detail

OrderParser.PropertyError

public OrderParser.PropertyError(java.lang.String aName,
                                 java.lang.String aMessage,
                                 int aLine,
                                 int aColumn)
Creates and initializes an new PropertyError instance

Parameters:
aName - property name
aMessage - an error message
aLine - number of line this property is located in the order
aColumn - number of column this property is located in the order
Method Detail

toString

public java.lang.String toString()
Description copied from class: OrderParser.Error
Returns textual representation of the error

Overrides:
toString in class OrderParser.Error
Returns:
textual representation of the error

toHTML

public java.lang.String toHTML()
Description copied from class: OrderParser.Error
Formats and returns message as HTML if HTML message was not specified; otherwise simply returns HTML message value

Overrides:
toHTML in class OrderParser.Error
Returns:
HTML representation of the error

getColumn

public int getColumn()
Returns column number where this property is located in the order

Returns:
column number; -1 if it is unknown/not applicable

getLine

public int getLine()
Returns line number where this property is located in the order

Returns:
line number; -1 if it is unknown/not applicable

getName

public java.lang.String getName()
Returns the name of the property

Returns:
name of the property