Class BaseMetaInfoReader<T extends IMemberBoundNode>
- java.lang.Object
-
- org.openl.rules.lang.xls.types.meta.BaseMetaInfoReader<T>
-
- All Implemented Interfaces:
MetaInfoReader
- Direct Known Subclasses:
AliasDatatypeMetaInfoReader,AMethodMetaInfoReader,ConstantsTableMetaInfoReader,DataTableMetaInfoReader,DatatypeTableMetaInfoReader,DtColumnsDefinitionMetaInfoReader,PropertyTableMetaInfoReader
public abstract class BaseMetaInfoReader<T extends IMemberBoundNode> extends Object implements MetaInfoReader
-
-
Field Summary
Fields Modifier and Type Field Description protected static CellMetaInfoNOT_FOUND
-
Constructor Summary
Constructors Constructor Description BaseMetaInfoReader(T boundNode)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddConstant(ICell cell, ConstantOpenField constantOpenField)protected abstract CellMetaInfogetBodyMetaInfo(int row, int col)TgetBoundNode()protected IGridTablegetGridTable()protected abstract CellMetaInfogetHeaderMetaInfo()CellMetaInfogetMetaInfo(int row, int col)Get meta info for a given row and column.protected abstract TableSyntaxNodegetTableSyntaxNode()protected booleanisNeededCell(CellKey cellKey, int row, int col)protected booleanisNeededCell(ICell cell, int row, int col)voidprepare(IGridRegion region)Preliminary load meta info for a given region.voidrelease()Release meta info loaded inMetaInfoReader.prepare(IGridRegion)voidsetBoundNode(T boundNode)
-
-
-
Field Detail
-
NOT_FOUND
protected static final CellMetaInfo NOT_FOUND
-
-
Constructor Detail
-
BaseMetaInfoReader
public BaseMetaInfoReader(T boundNode)
-
-
Method Detail
-
setBoundNode
public void setBoundNode(T boundNode)
-
getBoundNode
public T getBoundNode()
-
addConstant
public void addConstant(ICell cell, ConstantOpenField constantOpenField)
-
getGridTable
protected IGridTable getGridTable()
-
getMetaInfo
public final CellMetaInfo getMetaInfo(int row, int col)
Description copied from interface:MetaInfoReaderGet meta info for a given row and column.- Specified by:
getMetaInfoin interfaceMetaInfoReader- Parameters:
row- rowcol- column- Returns:
- meta info
-
prepare
public void prepare(IGridRegion region)
Description copied from interface:MetaInfoReaderPreliminary load meta info for a given region. For a big tables it's a part of the table, meta info for full table not needed in this case. If this method wasn't invoked beforeMetaInfoReader.getMetaInfo(int, int), then meta info for full table can be loaded.- Specified by:
preparein interfaceMetaInfoReader- Parameters:
region- region to load meta info
-
release
public void release()
Description copied from interface:MetaInfoReaderRelease meta info loaded inMetaInfoReader.prepare(IGridRegion)- Specified by:
releasein interfaceMetaInfoReader
-
getTableSyntaxNode
protected abstract TableSyntaxNode getTableSyntaxNode()
-
getHeaderMetaInfo
protected abstract CellMetaInfo getHeaderMetaInfo()
-
getBodyMetaInfo
protected abstract CellMetaInfo getBodyMetaInfo(int row, int col)
-
isNeededCell
protected boolean isNeededCell(CellKey cellKey, int row, int col)
-
isNeededCell
protected boolean isNeededCell(ICell cell, int row, int col)
-
-