public abstract class AbstractTypeTranslator extends Object implements HeaderCellTranslator
Returns a AbstractColumnDescriptor implementation for a specific HeaderDescriptor
| Constructor and Description |
|---|
AbstractTypeTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected List<AbstractColumnDescriptor> |
getAutoColumnExpressions(HeaderDescriptor header)
Generates all mandatory column expressions related to the given header.
|
protected boolean |
isDocumentIDColumn(String expr)
Checks if the column is a document id column (starts with &).
|
protected boolean |
isSpecialColumn(String expr)
Checks if the column is a special column (starts with @).
|
List<AbstractColumnDescriptor> |
translateColumnDescriptors(HeaderDescriptor header,
List<String> columnExpressions)
Instantiates for each column expression in given list the matching
AbstractColumnDescriptor an returns
them. |
List<AbstractColumnDescriptor> |
translateColumnDescriptors(HeaderDescriptor header,
List<String> columnExpressions,
boolean rethrowException) |
protected AbstractColumnDescriptor |
translatorColumnDescriptor(HeaderDescriptor header,
String expr,
int pos)
Instantiates the correct
AbstractColumnDescriptor for the given column expression. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValid, translatepublic List<AbstractColumnDescriptor> translateColumnDescriptors(HeaderDescriptor header, List<String> columnExpressions) throws HeaderValidationException
AbstractColumnDescriptor an returns
them.header - the current header object to which the columns belongcolumnExpressions - the column expression for which column descriptors will be instantiatedAbstractColumnDescriptorsHeaderValidationException - no column expressions are declared and header is not in relaxed modepublic List<AbstractColumnDescriptor> translateColumnDescriptors(HeaderDescriptor header, List<String> columnExpressions, boolean rethrowException) throws HeaderValidationException
HeaderValidationExceptionprotected AbstractColumnDescriptor translatorColumnDescriptor(HeaderDescriptor header, String expr, int pos) throws HeaderValidationException
AbstractColumnDescriptor for the given column expression. Selection is based
whether a expression is a
AbstractColumnDescriptor if translator is in servicelayer mode or not.header - the header to which the column belongsexpr - the column expression to which a descriptor is neededpos - the position of the column within the headerAbstractColumnDescriptor to the given column expressionHeaderValidationException - exception while instantiationprotected boolean isSpecialColumn(String expr)
expr - the column stringprotected boolean isDocumentIDColumn(String expr)
expr - the column stringprotected List<AbstractColumnDescriptor> getAutoColumnExpressions(HeaderDescriptor header)
header - the header for which columns are neededAbstractColumnDescriptorsCopyright © 2017 SAP SE. All Rights Reserved.