COM.hugin.HAPI
Class ClassList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.AbstractSequentialList
              extended byjava.util.LinkedList
                  extended byCOM.hugin.HAPI.ClassList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class ClassList
extends java.util.LinkedList

Lists of Classes are represented as ClassList's.

See Also:
Serialized Form

Constructor Summary
ClassList()
          Constructs a new ClassList.
 
Method Summary
 boolean contains(Class cls)
          Returns 'true' if a given Class is contained in this ClassList.
 boolean contains(java.lang.String className)
          Returns 'true' if the Class named 'className' is contained in this ClassList.
 Class find(java.lang.String className)
          Returns the Class named 'className' (if any) in this ClassList.
 ClassList order()
          Returns an ordering of this ClassList, which respects the constraint that the Class with index 'i' in the list does not contain instances of Classes with indices less than 'i'.
 java.lang.String toString()
          Returns a String of names of the Classes in this ClassList.
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

ClassList

public ClassList()
Constructs a new ClassList.

Method Detail

contains

public boolean contains(java.lang.String className)
                 throws ExceptionHugin
Returns 'true' if the Class named 'className' is contained in this ClassList.

Parameters:
className - String.
Returns:
'true' if this ClassList contains the Class with name 'className'; 'false', otherwise.
Throws:
ExceptionHugin

contains

public boolean contains(Class cls)
                 throws ExceptionUsage,
                        ExceptionArgumentNotAlive,
                        ExceptionObjectNotAlive
Returns 'true' if a given Class is contained in this ClassList.

Parameters:
cls - a Class.
Returns:
'true' if this ClassList contains the Class 'cls'; 'false', otherwise.
Throws:
ExceptionUsage
ExceptionArgumentNotAlive
ExceptionObjectNotAlive

find

public Class find(java.lang.String className)
           throws ExceptionHugin
Returns the Class named 'className' (if any) in this ClassList.

Parameters:
className - String.
Returns:
the Class named 'className' in this ClassList. Returns 'null' if no such Class is found.
Throws:
ExceptionHugin

order

public ClassList order()
                throws ExceptionHugin
Returns an ordering of this ClassList, which respects the constraint that the Class with index 'i' in the list does not contain instances of Classes with indices less than 'i'. The operation is non-destructive (i.e., this ClassList is unaffected by the operation).

Returns:
An ordered ClassList.
Throws:
ExceptionHugin

toString

public java.lang.String toString()
Returns a String of names of the Classes in this ClassList.

Returns:
A String like e.g., "{ ClassA, ClassB }".