|
||||||||||
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
@ALDParametrizedClass public class MTBRegion2DSetBag
A datatype to store multiple MTBRegion2D 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(de.unihalle.informatik.MiToBo_xml.MTBXMLRegion2DSetBagType regionsetbag)
Construct a bag of region sets from a xml-object created by the toXMLType method of this class. |
|
MTBRegion2DSetBag(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)
|
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 |
de.unihalle.informatik.MiToBo_xml.MTBXMLRegion2DSetBagType |
toXMLType()
Create a xml representation of this bag of region sets using MiToBo's xml-scheme MTBRegion2DSetBag.xsd |
void |
write(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 |
Constructor Detail |
---|
public MTBRegion2DSetBag()
public MTBRegion2DSetBag(int capacity)
public MTBRegion2DSetBag(String filename) throws org.apache.xmlbeans.XmlException, IOException
write
method of this class.
(These xml-files conform to xml-scheme MTBXMLRegion2DSetBag.xsd defined for MiToBo)
filename
- path to the xml-file
IOException
- thrown if parsing of xml-file failed
org.apache.xmlbeans.XmlException
- thrown if parsing of xml-file failedpublic MTBRegion2DSetBag(de.unihalle.informatik.MiToBo_xml.MTBXMLRegion2DSetBagType regionsetbag)
toXMLType
method of this class.
(The xml-object conforms to xml-schema MTBXMLRegion2DSetBag.xsd defined for MiToBo)
regionsetbag
- Method Detail |
---|
public void write(String filename) throws IOException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException, de.unihalle.informatik.Alida.exceptions.ALDOperatorException
IOException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public de.unihalle.informatik.MiToBo_xml.MTBXMLRegion2DSetBagType toXMLType()
public int size()
public void add(MTBRegion2DSet regionset)
public boolean remove(MTBRegion2DSet regionset)
regionset
- set to remove
public MTBRegion2DSet remove(int idx)
idx
- index of the region set to remove
public MTBRegion2DSet get(int idx)
public void set(int idx, MTBRegion2DSet regionset)
public Iterator<MTBRegion2DSet> iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |