Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.align.model
Class CellUtil

java.lang.Object
  extended by eu.esdihumboldt.hale.common.align.model.CellUtil

public abstract class CellUtil
extends Object

Cell related utility methods.

Author:
Simon Templer

Constructor Summary
CellUtil()
           
 
Method Summary
static String getCellDescription(Cell cell)
          Get a short description of a cell.
static Entity getFirstEntity(com.google.common.collect.ListMultimap<String,? extends Entity> entities)
          Get the first entity from the given entities map (as contained e.g.
static String getFirstParameter(Cell cell, String parameterName)
          Get the first parameter with the given name in the given cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellUtil

public CellUtil()
Method Detail

getFirstEntity

public static Entity getFirstEntity(com.google.common.collect.ListMultimap<String,? extends Entity> entities)
Get the first entity from the given entities map (as contained e.g. as source or target in a cell).

Parameters:
entities - the entities map
Returns:
first entity or null if there is none

getFirstParameter

public static String getFirstParameter(Cell cell,
                                       String parameterName)
Get the first parameter with the given name in the given cell.

Parameters:
cell - the cell
parameterName - the parameter name
Returns:
the parameter value or null

getCellDescription

public static String getCellDescription(Cell cell)
Get a short description of a cell.

Parameters:
cell - the cell
Returns:
the cell description

Humboldt Alignment Editor 2.5.0

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