Constructor and Description |
---|
ClassList(java.lang.Class<T> base)
Constructs a list of classes, initially empty.
|
ClassList(java.lang.String file,
java.lang.Class<T> base)
Constructs a list of classes from the given configuration file.
|
ClassList(java.lang.String file,
java.lang.Class<T> base,
java.lang.Class<?> location)
Constructs a list of classes from the given configuration file.
|
Modifier and Type | Method and Description |
---|---|
void |
addClass(java.lang.Class<? extends T> c)
Adds the given class, which must be assignable
to the base class, to the list.
|
java.lang.Class<? extends T>[] |
getClasses()
Gets the list of classes as an array.
|
void |
removeClass(java.lang.Class<? extends T> c)
Removes the given class from the list.
|
public ClassList(java.lang.Class<T> base)
base
- Base class to which all classes are assignable.public ClassList(java.lang.String file, java.lang.Class<T> base) throws java.io.IOException
file
- Configuration file containing the list of classes.base
- Base class to which all classes are assignable.java.io.IOException
- if the file cannot be read.public ClassList(java.lang.String file, java.lang.Class<T> base, java.lang.Class<?> location) throws java.io.IOException
file
- Configuration file containing the list of classes.base
- Base class to which all classes are assignable.location
- Class indicating which package to search for the file.
If null, 'file' is interpreted as an absolute path name.java.io.IOException
- if the file cannot be read.public void addClass(java.lang.Class<? extends T> c)
public void removeClass(java.lang.Class<? extends T> c)
public java.lang.Class<? extends T>[] getClasses()
Copyright © 2014 Open Microscopy Environment