public class DefaultCell extends Object implements Cell, MutableCell
DEFAULT_TRANSFORMATION_MODE, PROPERTY_DISABLE_FOR, PROPERTY_ENABLE_FOR, PROPERTY_PRIORITY, PROPERTY_TRANSFORMATION_MODE
Constructor and Description |
---|
DefaultCell()
Default constructor.
|
DefaultCell(Cell copy)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
addAnnotation(String type)
Add a new annotation object.
|
void |
addAnnotation(String type,
Object annotation)
Add an annotation object.
|
List<?> |
getAnnotations(String type)
Get the annotations of the given type.
|
Set<String> |
getAnnotationTypes()
Get the annotation types present in the cell.
|
Set<Cell> |
getDisabledFor()
Returns the cells this cell is disabled for.
|
com.google.common.collect.ListMultimap<String,String> |
getDocumentation()
Get the cell documentation.
|
String |
getId()
Get the id for identifying the cell.
|
Priority |
getPriority()
Returns the priority for the cell.
|
com.google.common.collect.ListMultimap<String,? extends Entity> |
getSource()
Get the source entities.
|
com.google.common.collect.ListMultimap<String,? extends Entity> |
getTarget()
Get the target entities.
|
String |
getTransformationIdentifier()
Get the identifier for the transformation referenced by the cell.
|
TransformationMode |
getTransformationMode()
Get the cell transformation mode.
|
com.google.common.collect.ListMultimap<String,ParameterValue> |
getTransformationParameters()
Get the transformation parameters that shall be applied to the
transformation specified by
Cell.getTransformationIdentifier() . |
boolean |
isBaseCell()
Returns whether the cell is included from a base alignment or not.
|
void |
removeAnnotation(String type,
Object annotation)
Remove the given annotation object.
|
void |
setDisabledFor(Cell cell,
boolean disabled) |
void |
setId(String id) |
void |
setPriority(Priority priority) |
void |
setSource(com.google.common.collect.ListMultimap<String,? extends Entity> source) |
void |
setTarget(com.google.common.collect.ListMultimap<String,? extends Entity> target) |
void |
setTransformationIdentifier(String transformation)
Set the identifier for the transformation referenced by the cell.
|
void |
setTransformationMode(TransformationMode mode)
Set the cell transformation mode.
|
void |
setTransformationParameters(com.google.common.collect.ListMultimap<String,ParameterValue> parameters) |
String |
toString() |
public DefaultCell()
public DefaultCell(Cell copy)
copy
- the cell to copypublic void setTransformationIdentifier(String transformation)
MutableCell
setTransformationIdentifier
in interface MutableCell
transformation
- the transformation identifierMutableCell.setTransformationIdentifier(java.lang.String)
public void setTransformationParameters(com.google.common.collect.ListMultimap<String,ParameterValue> parameters)
setTransformationParameters
in interface MutableCell
parameters
- the parameters to setMutableCell.setTransformationParameters(ListMultimap)
public void setSource(com.google.common.collect.ListMultimap<String,? extends Entity> source)
setSource
in interface MutableCell
source
- the source to setMutableCell.setSource(com.google.common.collect.ListMultimap)
public void setTarget(com.google.common.collect.ListMultimap<String,? extends Entity> target)
setTarget
in interface MutableCell
target
- the target to setMutableCell.setTarget(com.google.common.collect.ListMultimap)
public com.google.common.collect.ListMultimap<String,? extends Entity> getSource()
Cell
getSource
in interface Cell
null
Cell.getSource()
public com.google.common.collect.ListMultimap<String,? extends Entity> getTarget()
Cell
getTarget
in interface Cell
Cell.getTarget()
public com.google.common.collect.ListMultimap<String,ParameterValue> getTransformationParameters()
Cell
Cell.getTransformationIdentifier()
. The
map may not be modified.getTransformationParameters
in interface Cell
null
Cell.getTransformationParameters()
public void addAnnotation(String type, Object annotation)
type
- the annotation typeannotation
- the annotation objectpublic List<?> getAnnotations(String type)
Cell
getAnnotations
in interface Cell
type
- the annotation type identifier as registered in the
corresponding extension pointpublic Object addAnnotation(String type)
Cell
AnnotationDescriptor
registered for the given
type identifier.addAnnotation
in interface Cell
type
- the annotation type identifier as registered in the
corresponding extension pointAnnotationDescriptor.create()
or null
if no
annotation definition with that type identifier existspublic Set<String> getAnnotationTypes()
Cell
getAnnotationTypes
in interface Cell
public void removeAnnotation(String type, Object annotation)
Cell
removeAnnotation
in interface Cell
type
- the annotation type identifier as registered in the
corresponding extension pointannotation
- the annotation object associated to the annotation type
that should be removedpublic com.google.common.collect.ListMultimap<String,String> getDocumentation()
Cell
getDocumentation
in interface Cell
public String getTransformationIdentifier()
Cell
getTransformationIdentifier
in interface Cell
Cell.getTransformationIdentifier()
public String toString()
toString
in class Object
Object.toString()
public String getId()
Cell
getId
in interface Cell
Cell.getId()
public void setId(String id)
setId
in interface MutableCell
id
- the id to setMutableCell.setId(String)
public void setDisabledFor(Cell cell, boolean disabled)
setDisabledFor
in interface ModifiableCell
cell
- the cell to disable/enable this cell fordisabled
- whether the cell should be disabled or notModifiableCell.setDisabledFor(eu.esdihumboldt.hale.common.align.model.Cell,
boolean)
public Set<Cell> getDisabledFor()
Cell
getDisabledFor
in interface Cell
Cell.getDisabledFor()
public void setPriority(Priority priority)
setPriority
in interface MutableCell
priority
- the priority
to setMutableCell.setPriority(eu.esdihumboldt.hale.common.align.model.Priority)
public Priority getPriority()
Cell
getPriority
in interface Cell
priority
.Cell.getPriority()
public void setTransformationMode(TransformationMode mode)
ModifiableCell
setTransformationMode
in interface ModifiableCell
mode
- the transformation mode to setpublic TransformationMode getTransformationMode()
Cell
getTransformationMode
in interface Cell
public boolean isBaseCell()
Cell
isBaseCell
in interface Cell
Cell.isBaseCell()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a