public class BaseAlignmentCell extends Object implements ModifiableCell
DEFAULT_TRANSFORMATION_MODE, PROPERTY_DISABLE_FOR, PROPERTY_ENABLE_FOR, PROPERTY_PRIORITY, PROPERTY_TRANSFORMATION_MODE
Constructor and Description |
---|
BaseAlignmentCell(ModifiableCell base,
URI baseAlignment,
String prefix)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
addAnnotation(String type)
Add a new annotation object.
|
Set<Cell> |
getAdditionalDisabledFor()
Returns the additional disabled for entries of the extended cell.
|
List<?> |
getAnnotations(String type)
Get the annotations of the given type.
|
Set<String> |
getAnnotationTypes()
Get the annotation types present in the cell.
|
URI |
getBaseAlignment()
Returns the base alignment.
|
Set<Cell> |
getBaseDisabledFor()
Returns the result of
getDisabledFor() from the base 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.
|
boolean |
overridesTransformationMode()
States if the cell overrides the transformation mode.
|
void |
removeAnnotation(String type,
Object annotation)
Remove the given annotation object.
|
void |
setBaseDisabledFor(Cell cell,
boolean disabled)
Disables this cell's base cell for the given cell.
|
void |
setBaseTransformationMode(TransformationMode mode)
Set the transformation mode of the base cell.
|
void |
setDisabledFor(Cell cell,
boolean disabled) |
void |
setTransformationMode(TransformationMode mode)
Set the cell transformation mode.
|
public BaseAlignmentCell(ModifiableCell base, URI baseAlignment, String prefix)
base
- the base cellbaseAlignment
- the URI of the alignment the cell is fromprefix
- the alignment's prefixpublic 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 String getTransformationIdentifier()
Cell
getTransformationIdentifier
in interface Cell
Cell.getTransformationIdentifier()
public String getId()
Cell
getId
in interface Cell
Cell.getId()
public Set<Cell> getDisabledFor()
Cell
getDisabledFor
in interface Cell
Cell.getDisabledFor()
public URI getBaseAlignment()
public Set<Cell> getBaseDisabledFor()
getDisabledFor()
from the base cell.getDisabledFor()
from the base cellpublic Set<Cell> getAdditionalDisabledFor()
public void setBaseDisabledFor(Cell cell, boolean disabled)
cell
- the cell to disable/enable this cell fordisabled
- whether the cell should be disabled or notpublic 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 notpublic TransformationMode getTransformationMode()
Cell
getTransformationMode
in interface Cell
public boolean overridesTransformationMode()
public void setTransformationMode(TransformationMode mode)
ModifiableCell
setTransformationMode
in interface ModifiableCell
mode
- the transformation mode to setpublic void setBaseTransformationMode(TransformationMode mode)
mode
- the cell transformation modepublic List<?> getAnnotations(String type)
Cell
getAnnotations
in interface Cell
type
- the annotation type identifier as registered in the
corresponding extension pointCell.getAnnotations(java.lang.String)
public Set<String> getAnnotationTypes()
Cell
getAnnotationTypes
in interface Cell
Cell.getAnnotationTypes()
public 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 existsCell.addAnnotation(java.lang.String)
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 removedCell.removeAnnotation(java.lang.String,
java.lang.Object)
public com.google.common.collect.ListMultimap<String,String> getDocumentation()
Cell
getDocumentation
in interface Cell
Cell.getDocumentation()
public Priority getPriority()
Cell
getPriority
in interface Cell
priority
.Cell.getPriority()
public boolean isBaseCell()
Cell
isBaseCell
in interface Cell
Cell.isBaseCell()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a