public abstract class AbstractColumnDescriptor extends AbstractDescriptor
AbstractDescriptor.ColumnParams, AbstractDescriptor.DescriptorParams, AbstractDescriptor.HeaderParams| Constructor and Description |
|---|
AbstractColumnDescriptor(int position,
HeaderDescriptor header,
java.lang.String expr)
Self-parsing constructor.
|
AbstractColumnDescriptor(int position,
HeaderDescriptor header,
java.lang.String expr,
AbstractDescriptor.DescriptorParams params)
Non-parsing constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
changePosition(int newPos)
Assigns this column a new value position.
|
protected CSVCellDecorator |
createCSVDecorator()
Evaluates the
cellDecorator modifier and instantiates the specified class if set. |
protected HeaderCellTranslator |
createTranslator(java.lang.String expr)
Creates the translator class which parses the own definition text of this descriptor.
|
CSVCellDecorator |
getCSVCellDecorator()
Gets the cell decorator instance specified for this column.
|
HeaderDescriptor |
getHeader()
Gets the header instance this column belongs to.
|
java.lang.String |
getQualifier()
Gets the qualifier of this column without prefix (If the qualifier is "Principal.uid", only "uid" will be
returned, all until the first dot will be cut).
|
java.lang.String |
getQualifierForComment() |
int |
getValuePosition()
Gets the position of this column within header.
|
protected void |
shiftPosition(int offset)
Shifts this column to the right by the given offset.
|
protected void |
validate() |
extractItemPathElements, extractModifiersMap, getDefinitionSrc, getDescriptorData, getDescriptorTranslator, parseColumnDescriptor, parseHeaderDescriptorpublic AbstractColumnDescriptor(int position,
HeaderDescriptor header,
java.lang.String expr)
throws HeaderValidationException
position - position of column within headerheader - the header the column belongsexpr - column expressionHeaderValidationException - error while parsing column expressionpublic AbstractColumnDescriptor(int position,
HeaderDescriptor header,
java.lang.String expr,
AbstractDescriptor.DescriptorParams params)
throws HeaderValidationException
position - position of column within headerheader - the header the column belongsexpr - column expressionparams - already parsed column parametersHeaderValidationException - error while processing column expressionprotected void changePosition(int newPos)
newPos - the new position of the columnprotected void shiftPosition(int offset)
pos += offset
offset - the offset which will be add to the positionprotected CSVCellDecorator createCSVDecorator() throws HeaderValidationException
cellDecorator modifier and instantiates the specified class if set.HeaderValidationException - specified class is not of correct typepublic CSVCellDecorator getCSVCellDecorator()
protected HeaderCellTranslator createTranslator(java.lang.String expr)
AbstractDescriptorcreateTranslator in class AbstractDescriptorexpr - the definition textpublic java.lang.String getQualifier()
public int getValuePosition()
changePosition(int) or shiftPosition(int) methods.public HeaderDescriptor getHeader()
protected void validate()
throws HeaderValidationException
validate in class AbstractDescriptorHeaderValidationExceptionpublic java.lang.String getQualifierForComment()
Copyright © 2018 SAP SE. All Rights Reserved.