|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.operator.ALDData
de.unihalle.informatik.MiToBo.core.datatypes.MTBRegion2DSetBag
public class MTBRegion2DSetBag
A datatype to store multiple MTBRegion2D sets
Field Summary | |
---|---|
(package private) java.util.Vector<MTBRegion2DSet> |
regionsets
the container of the region sets |
Constructor Summary | |
---|---|
MTBRegion2DSetBag()
Constructor to create an empty bag of region sets |
|
MTBRegion2DSetBag(int capacity)
Constructor to create an empty bag of region sets with the given capacity |
|
MTBRegion2DSetBag(java.lang.String filename)
Construct a bag of region sets from a xml-file that was written by the write method of this class. |
Method Summary | |
---|---|
void |
add(MTBRegion2DSet regionset)
Add a region set to this bag |
MTBRegion2DSet |
get(int idx)
|
java.util.Iterator<MTBRegion2DSet> |
iterator()
|
MTBRegion2DSet |
remove(int idx)
Remove a region set from this bag by its index |
boolean |
remove(MTBRegion2DSet regionset)
Remove a region set from this bag |
void |
set(int idx,
MTBRegion2DSet regionset)
|
int |
size()
Number of region sets in this bag |
void |
write(java.lang.String filename)
Write this bag of region sets to disk in XML format using MiToBo's xml-scheme MTBRegion2DSetBag.xsd |
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDData |
---|
cloneProperties, getLocation, getProperty, getPropertyKeys, print, setLocation, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.util.Vector<MTBRegion2DSet> regionsets
Constructor Detail |
---|
public MTBRegion2DSetBag()
public MTBRegion2DSetBag(int capacity)
public MTBRegion2DSetBag(java.lang.String filename) throws org.apache.xmlbeans.XmlException, java.io.IOException
write
method of this class.
(These xml-files conform to xml-scheme MTBXMLRegion2DSetBag.xsd defined for MiToBo)
filename
- path to the xml-file
java.io.IOException
- thrown if parsing of xml-file failed
org.apache.xmlbeans.XmlException
- thrown if parsing of xml-file failedMethod Detail |
---|
public void add(MTBRegion2DSet regionset)
public MTBRegion2DSet get(int idx)
public java.util.Iterator<MTBRegion2DSet> iterator()
public MTBRegion2DSet remove(int idx)
idx
- index of the region set to remove
public boolean remove(MTBRegion2DSet regionset)
regionset
- set to remove
public void set(int idx, MTBRegion2DSet regionset)
public int size()
public void write(java.lang.String filename) throws java.io.IOException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException, de.unihalle.informatik.Alida.exceptions.ALDOperatorException
java.io.IOException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |