org.sintef.mofscript.parser
Class MofScriptErrorManager

java.lang.Object
  extended by org.sintef.mofscript.parser.MofScriptErrorManager

public class MofScriptErrorManager
extends java.lang.Object


Constructor Summary
MofScriptErrorManager()
          Default constructor
 
Method Summary
 void add(MofScriptParseError error)
          Adds an error
 void clear()
          Clears all errors
 int errorCount()
          Counts the errors
 java.util.Iterator getErrors()
           
 void setTargetResource(java.lang.String tResource)
          Sets the target resource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MofScriptErrorManager

public MofScriptErrorManager()
Default constructor

Method Detail

setTargetResource

public void setTargetResource(java.lang.String tResource)
Sets the target resource

Parameters:
tResource -

add

public void add(MofScriptParseError error)
Adds an error

Parameters:
error -

errorCount

public int errorCount()
Counts the errors

Returns:
number of errors

getErrors

public java.util.Iterator getErrors()
Returns:
An iterator of errors

clear

public void clear()
Clears all errors