org.gvsig.tools.exception
Class ListBaseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.gvsig.tools.exception.BaseException
              extended by org.gvsig.tools.exception.ListBaseException
All Implemented Interfaces:
Serializable, Iterable, Collection, List, IBaseException
Direct Known Subclasses:
DefaultDynClass.CheckDynClassListException, DefaultDynField.CheckDynFieldListException, DynObjectValidateException, PersistenceException

public abstract class ListBaseException
extends BaseException
implements List

Author:
Equipo de desarrollo de gvSIG
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.gvsig.tools.exception.BaseException
code, formatString, messageKey
 
Constructor Summary
ListBaseException(String message, String key, long code)
           
ListBaseException(String message, Throwable cause, String key, long code)
           
 
Method Summary
 void add(int arg0, Object arg1)
           
 boolean add(Object arg0)
           
 boolean addAll(Collection arg0)
           
 boolean addAll(int arg0, Collection arg1)
           
 void clear()
           
 boolean contains(Object arg0)
           
 boolean containsAll(Collection arg0)
           
 Object get(int arg0)
           
 String getLocalizedMessage(ExceptionTranslator exceptionTranslator, int indent)
          Returns the translated message that describes the exception with indentation.
 String getMessage()
          Returns the message that describes the exception.
 String getMessage(int indent)
          Returns the message that describes the exception, with indentation.
 int indexOf(Object arg0)
           
 boolean isEmpty()
           
 int lastIndexOf(Object arg0)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int arg0)
           
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 Object remove(int arg0)
           
 boolean remove(Object arg0)
           
 boolean removeAll(Collection arg0)
           
 boolean retainAll(Collection arg0)
           
 Object set(int arg0, Object arg1)
           
 int size()
           
 List subList(int arg0, int arg1)
           
 Object[] toArray()
           
 Object[] toArray(Object[] arg0)
           
 
Methods inherited from class org.gvsig.tools.exception.BaseException
getCode, getFormatString, getLocalizedMessage, getLocalizedMessageStack, getLocalizedMessageStack, getMessageKey, getMessageStack, getMessageStack, iterator, setCode, setFormatString, setMessageKey, setTranslator, setTranslator, setValue, values
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode, iterator
 

Constructor Detail

ListBaseException

public ListBaseException(String message,
                         String key,
                         long code)

ListBaseException

public ListBaseException(String message,
                         Throwable cause,
                         String key,
                         long code)
Method Detail

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in interface List

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection
Specified by:
isEmpty in interface List

contains

public boolean contains(Object arg0)
Specified by:
contains in interface Collection
Specified by:
contains in interface List

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection
Specified by:
toArray in interface List

toArray

public Object[] toArray(Object[] arg0)
Specified by:
toArray in interface Collection
Specified by:
toArray in interface List
Parameters:
arg0 -
Returns:

add

public boolean add(Object arg0)
Specified by:
add in interface Collection
Specified by:
add in interface List
Parameters:
arg0 -
Returns:

remove

public boolean remove(Object arg0)
Specified by:
remove in interface Collection
Specified by:
remove in interface List

containsAll

public boolean containsAll(Collection arg0)
Specified by:
containsAll in interface Collection
Specified by:
containsAll in interface List
Parameters:
arg0 -
Returns:

addAll

public boolean addAll(Collection arg0)
Specified by:
addAll in interface Collection
Specified by:
addAll in interface List
Parameters:
arg0 -
Returns:

addAll

public boolean addAll(int arg0,
                      Collection arg1)
Specified by:
addAll in interface List
Parameters:
arg0 -
arg1 -
Returns:

removeAll

public boolean removeAll(Collection arg0)
Specified by:
removeAll in interface Collection
Specified by:
removeAll in interface List
Parameters:
arg0 -
Returns:

retainAll

public boolean retainAll(Collection arg0)
Specified by:
retainAll in interface Collection
Specified by:
retainAll in interface List
Parameters:
arg0 -
Returns:

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface List

get

public Object get(int arg0)
Specified by:
get in interface List

set

public Object set(int arg0,
                  Object arg1)
Specified by:
set in interface List
Parameters:
arg0 -
arg1 -
Returns:

add

public void add(int arg0,
                Object arg1)
Specified by:
add in interface List
Parameters:
arg0 -
arg1 -

remove

public Object remove(int arg0)
Specified by:
remove in interface List

indexOf

public int indexOf(Object arg0)
Specified by:
indexOf in interface List

lastIndexOf

public int lastIndexOf(Object arg0)
Specified by:
lastIndexOf in interface List

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List

listIterator

public ListIterator listIterator(int arg0)
Specified by:
listIterator in interface List

subList

public List subList(int arg0,
                    int arg1)
Specified by:
subList in interface List

getMessage

public String getMessage()
Description copied from interface: IBaseException
Returns the message that describes the exception.

Specified by:
getMessage in interface IBaseException
Overrides:
getMessage in class BaseException
Returns:
The message.

getMessage

public String getMessage(int indent)
Description copied from interface: IBaseException
Returns the message that describes the exception, with indentation.

Specified by:
getMessage in interface IBaseException
Overrides:
getMessage in class BaseException
Parameters:
indent - Quantity of blanks to insert at the start of the message.
Returns:
The message with indentation.

getLocalizedMessage

public String getLocalizedMessage(ExceptionTranslator exceptionTranslator,
                                  int indent)
Description copied from interface: IBaseException
Returns the translated message that describes the exception with indentation.

Specified by:
getLocalizedMessage in interface IBaseException
Overrides:
getLocalizedMessage in class BaseException
Parameters:
exceptionTranslator - Instance of a class that fulfills the IExceptionTranslator interface. His method "getText" takes charge returning the expression, correspondent to the key that delivers him, translated into the configured language.
indent - Quantity of blanks to insert at the start of the message.
Returns:
The translated message with indentation.

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable


Copyright © 2004-2011 gvSIG. All Rights Reserved.