public class CellHeader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CellHeader |
blankCellHeader
The blank cell header.
|
Constructor and Description |
---|
CellHeader(Group group,
XBRLStructuralNode nu,
CellHeader parent,
OpenCellHeader openCellParent,
EffectiveBreakdown effectiveBreakdown,
int openNodeValueIndex)
Instantiates a new cell header.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildren(CellHeader cellHeader)
Adds the children.
|
static java.lang.String |
buildLabel(CellHeader root,
CellHeader header)
Creates a combined label concatenating labels from root CellHeader
to the indicated CellHeader.
|
static java.util.List<java.lang.String> |
buildLabelParts(CellHeader root,
CellHeader header)
Builds the label parts.
|
void |
clear()
Clear.
|
CellHeader |
findAspect(Aspect<?> aspect,
java.util.Map<CellHeader,java.util.Map<java.lang.Object,Aspect<?>>> byAspectCell)
Find aspect.
|
AspectsConsolidator |
getAccessConsolidator()
Gets the access consolidator.
|
java.util.Iterator<AspectAndDistanceToLeaf> |
getAspects(java.lang.String tag)
Returns the consolidated aspects from this cell header and up to the first cell header.
|
java.util.Collection<CellHeader> |
getChildren()
Gets the children.
|
int |
getColNumber()
Access to the absolute column number after dealing with horizontal span and cells in the left of this cell.
|
int |
getDistanceToLeaf()
Gets the distance to leaf.
|
Group |
getGroup()
Gets the group.
|
int |
getIndexNumber()
For open nodes, this is a relative number starting from 0 that indicates this column index relaive to
the parent.
|
java.lang.String |
getLabel()
Returns a proper label for the cell based on the cell type
and the aspects linked with this cell along with the
parameters set in the DTS such as preferred languages.
|
CellHeader |
getNextSibling()
Returns the next cell header that is sibling of this cell header.
|
OpenCellHeader |
getOpenCellHeader()
If this cell is child of an open cell header, this method returns the open cell header cell.
|
int |
getOpenCellsCountInSpan()
Return the number of cells in a span that are open cells.
|
CellHeader |
getParent()
Gets the parent.
|
CellHeader |
getRoot()
Obtains the root node of the cell header.
|
int |
getRowNumber()
Access to the absolute row number after dealing with vertical in previous cells.
|
int |
getSpan()
Gets the span.
|
XBRLStructuralNode |
getTableStructuralNode()
Gets the table structural node.
|
java.util.Set<java.lang.String> |
getTagSelector()
Gets the tag selector.
|
int |
getUse()
Returns a proper value for the fact use in respect to time.
|
boolean |
hasRollUp()
this method returns true if this cell has a descendant roll up cell.
|
boolean |
isAsClosed()
RS Extension to access the surrounding node and see if openAspect nodes shall be considered closed.
|
boolean |
isConceptAbstract()
Returns true if the surrounding element in the structural node comes from an item that is abstract.
|
boolean |
isLeaf()
Checks if is leaf.
|
boolean |
isNegated()
Checks if is negated.
|
boolean |
isNet()
Checks if is net.
|
boolean |
isOpen()
Returns true when this cell header represents an open node.
|
boolean |
isRollUp()
Checks if is roll up.
|
boolean |
isRollUpPositionLeft()
Returns true if this cell has a roll up cell on the left.
|
boolean |
isRollUpPositionRight()
Returns true if this cell has a roll up cell on the right.
|
boolean |
isTitle()
A cell is title when it contains children in a group that is not
the group of this cell.
|
boolean |
isTotal()
Checks if is total.
|
boolean |
isUsable()
Returns true if the surrounding element in the structural node provides a new row or column with values
that will be reported.
|
void |
resetDistanceToLeaf()
Reset distance to lead for all aspects.
|
int |
setRowColumnNumber(int rowNumber,
int columnNumber)
Sets the row column number.
|
java.lang.String |
toString()
To string.
|
public static CellHeader blankCellHeader
public CellHeader(Group group, XBRLStructuralNode nu, CellHeader parent, OpenCellHeader openCellParent, EffectiveBreakdown effectiveBreakdown, int openNodeValueIndex)
group
- the group this cell belongs tonu
- the structural node this cell is derived fromparent
- the parent cell header up in the hierarchyopenCellParent
- if this node is part of an open breakdown, this is the OpenCellHeader that is the parent of this CellHeadereffectiveBreakdown
- the effective breakdownopenNodeValueIndex
- if the CellHeader comes from an open structural node, this is the index of the value to be used for this columnpublic int getRowNumber()
public int getColNumber()
public int getIndexNumber()
public XBRLStructuralNode getTableStructuralNode()
public CellHeader getParent()
public Group getGroup()
public CellHeader getRoot()
public boolean isLeaf()
public void addChildren(CellHeader cellHeader)
cellHeader
- the cell headerpublic int getSpan()
public int getOpenCellsCountInSpan()
public OpenCellHeader getOpenCellHeader()
public java.util.Collection<CellHeader> getChildren()
public int setRowColumnNumber(int rowNumber, int columnNumber)
rowNumber
- the row numbercolumnNumber
- the column numberpublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<java.lang.String> getTagSelector()
public CellHeader findAspect(Aspect<?> aspect, java.util.Map<CellHeader,java.util.Map<java.lang.Object,Aspect<?>>> byAspectCell)
aspect
- the aspectbyAspectCell
- (optional) if not null, this hashtable will be set so the cell header can be used to locate the aspect laterpublic java.util.Iterator<AspectAndDistanceToLeaf> getAspects(java.lang.String tag)
tag
- the tagpublic boolean isRollUp()
public java.lang.String getLabel()
public CellHeader getNextSibling()
public int getUse()
public boolean isTitle()
public boolean isOpen()
public boolean hasRollUp()
public boolean isRollUpPositionLeft()
public boolean isRollUpPositionRight()
public static java.lang.String buildLabel(CellHeader root, CellHeader header)
root
- the rootheader
- the axis headerpublic static java.util.List<java.lang.String> buildLabelParts(CellHeader root, CellHeader header)
root
- the rootheader
- the headerpublic void clear()
public AspectsConsolidator getAccessConsolidator()
public int getDistanceToLeaf()
public void resetDistanceToLeaf()
public boolean isTotal()
public boolean isNet()
public boolean isNegated()
public boolean isConceptAbstract()
Note, dimension members that are abstract returns true but they might provide a column in a table representation.
isUsable()
public boolean isUsable()
If the surrounding member is a primary item usability is resolved using the abstract attribute.
if the surrounding member is a dimension member. usability is resolved as true.
public boolean isAsClosed()
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa