org.tigris.scarab.util.xmlissues
Class ImportErrors

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byorg.tigris.scarab.util.xmlissues.ImportErrors
All Implemented Interfaces:
java.util.Collection

class ImportErrors
extends java.util.AbstractCollection

A lazily constructed Collection implementation which records the list of any errors which occur during an import.

Since:
Scarab 0.16.29

Constructor Summary
ImportErrors()
           
 
Method Summary
 boolean add(java.lang.Object error)
          Adds error, possibly annotated using any current contextual information.
 java.util.Iterator iterator()
           
 void setParseContext(java.lang.Object parseContext)
          Pushes contextual information onto #parseContext to help identify exactly where errors occur, empowering users to resolve any data formatting problems.
 int size()
           
 
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

ImportErrors

public ImportErrors()
Method Detail

iterator

public java.util.Iterator iterator()

size

public int size()

add

public boolean add(java.lang.Object error)
Adds error, possibly annotated using any current contextual information.

Parameters:
error - An error which will toString() nicely.
See Also:
setParseContext(Object)

setParseContext

public void setParseContext(java.lang.Object parseContext)
Pushes contextual information onto #parseContext to help identify exactly where errors occur, empowering users to resolve any data formatting problems.

Parameters:
parseContext - The current parse context. A value of null indicates that any current state should be cleared.


Copyright © 2000-2004 Tigris.org. All Rights Reserved.