Hilbert II - Version 0.03.04

org.qedeq.kernel.common
Class SyntaxExceptionList

java.lang.Object
  extended byorg.qedeq.kernel.common.SyntaxExceptionList

public final class SyntaxExceptionList
extends Object

Type save SyntaxException list.

Version:
$Revision: 1.1 $

Field Summary
static int MAXIMUM
          Maximum number of exceptions.
 
Constructor Summary
SyntaxExceptionList()
          Constructor.
 
Method Summary
 void add(SyntaxException e)
          Add Exception.
 SyntaxException get(int i)
          Get i-th exception.
 int size()
          Get number of collected exceptions.
 SyntaxException[] toArray()
          Get all exceptions.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAXIMUM

public static final int MAXIMUM
Maximum number of exceptions.

See Also:
Constant Field Values
Constructor Detail

SyntaxExceptionList

public SyntaxExceptionList()
Constructor.

Method Detail

add

public final void add(SyntaxException e)
               throws SAXException
Add Exception. This is only done if the number of already collected exceptions is below MAXIMUM.

Parameters:
e - Exception to add.
Throws:
SAXException - Maximum number of exception reached.

size

public final int size()
Get number of collected exceptions.

Returns:
Number of collected exceptions.

get

public final SyntaxException get(int i)
Get i-th exception.

Parameters:
i - Starts with 0 and must be smaller than size().
Returns:
Wanted exception.

toArray

public final SyntaxException[] toArray()
Get all exceptions.

Returns:
All exceptions.

toString

public String toString()

Hilbert II - Version 0.03.04

©left GNU General Public Licence
All Rights Reserved.