Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.io.impl.internal
Class AlignmentBean

java.lang.Object
  extended by eu.esdihumboldt.hale.common.align.io.impl.internal.AlignmentBean

public class AlignmentBean
extends Object

Alignment bean serving as model for alignment I/O

Author:
Simon Templer

Constructor Summary
AlignmentBean()
          Default constructor
AlignmentBean(Alignment alignment)
          Create a bean for the given alignment
 
Method Summary
 MutableAlignment createAlignment(IOReporter reporter, TypeIndex sourceTypes, TypeIndex targetTypes)
          Create an alignment from the information in the bean
 Collection<CellBean> getCells()
          Get the defined cells
 void setCells(Collection<CellBean> cells)
          Set the defined cells
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlignmentBean

public AlignmentBean()
Default constructor


AlignmentBean

public AlignmentBean(Alignment alignment)
Create a bean for the given alignment

Parameters:
alignment - the alignment
Method Detail

createAlignment

public MutableAlignment createAlignment(IOReporter reporter,
                                        TypeIndex sourceTypes,
                                        TypeIndex targetTypes)
Create an alignment from the information in the bean

Parameters:
reporter - the I/O reporter to report any errors to, may be null
sourceTypes - the source types to use for resolving definition references
targetTypes - the target types to use for resolving definition references
Returns:
the alignment

getCells

public Collection<CellBean> getCells()
Get the defined cells

Returns:
the cells

setCells

public void setCells(Collection<CellBean> cells)
Set the defined cells

Parameters:
cells - the cells to set

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d