public class PeriodMember extends java.lang.Object implements Member<ColumnPeriod>
| Constructor and Description |
|---|
PeriodMember(ColumnPeriod cp,
Dimension<?> dim)
Instantiates a new period member.
|
PeriodMember(XBRLPeriod period,
HasBoySupport hb,
Dimension<?> dim,
HandleDateStep.InstantMode instantMode)
Instantiates a new period member.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDomain(java.util.Collection<Member<?>> members)
Adds a domain of members.
|
void |
addPeriod(XBRLPeriod period)
Adds a new XBRLPeriod to this column of periods.
|
Member<ColumnPeriod> |
clone()
Clone constructor.
|
int |
compareTo(Member<?> o2)
Compare to.
|
boolean |
equals(java.lang.Object obj) |
Dimension<?> |
getDimension()
Access back to the dimensions this member has belongs to.
|
java.util.Collection<Member<?>> |
getDomain()
Returns the available sub members of this member.
|
ColumnPeriod |
getMember()
Access to the member.
|
XBRLPeriod |
getPeriod()
If this PeriodMember contains only one XBRLPeriod object this method returns
it.
|
boolean |
hasDomain()
Returns true if the member is a Domain and has sub-members.
|
int |
hashCode() |
boolean |
isAbstract()
This method returns true if the member associated is abstract.
|
boolean |
isNegated()
Negated are shown in red color font.
|
boolean |
isNet()
Nets are shown in bold font.
|
boolean |
isPrimary()
This method returns true if the member is a primary item, otherwise is a dimension member of either an XDT dimension or a Virtual dimension.
|
boolean |
isTotal()
Totals are shown in bold font.
|
boolean |
isVisible()
Must return true if the member is going to be visualized in rows or columns.
|
Dimension<?> |
setDimension(Dimension<?> newDimension)
Set or change the assigned dimension of this member
|
void |
setHidden()
Sets the hidden.
|
void |
setVisible()
Sets the visible.
|
void |
setVisible(boolean value)
Sets the visibility parameter value for this member.
|
XBRLPeriod |
toPeriod(DTSContainer container,
XBRLItem.PeriodType type,
HandleDateStep.InstantMode mode)
To period.
|
java.lang.String |
toString() |
public PeriodMember(XBRLPeriod period, HasBoySupport hb, Dimension<?> dim, HandleDateStep.InstantMode instantMode)
period - the periodhb - the hbdim - the diminstantMode - the instant modepublic PeriodMember(ColumnPeriod cp, Dimension<?> dim)
cp - the cpdim - the dimpublic void addPeriod(XBRLPeriod period)
period - the periodpublic XBRLPeriod getPeriod()
This method is used when the PeriodMember has been created from one XBRLPeriod but has not been added to a PeriodDimension yet. At the time it is added to the PeriodDimension the XBRLPeriod is obtained in order to add the XBRLPeriod to an existing ColumnPeriod if it already exists.
public Member<ColumnPeriod> clone()
Memberclone in interface Member<ColumnPeriod>clone in class java.lang.Objectpublic ColumnPeriod getMember()
MembergetMember in interface Member<ColumnPeriod>public java.util.Collection<Member<?>> getDomain()
MembergetDomain in interface Member<ColumnPeriod>Member.hasDomain()public boolean hasDomain()
MemberhasDomain in interface Member<ColumnPeriod>public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void addDomain(java.util.Collection<Member<?>> members)
MemberaddDomain in interface Member<ColumnPeriod>members - the memberspublic boolean isAbstract()
MemberisAbstract in interface Member<ColumnPeriod>public boolean isPrimary()
MemberisPrimary in interface Member<ColumnPeriod>public boolean isVisible()
MemberisVisible in interface Member<ColumnPeriod>public void setVisible()
public void setVisible(boolean value)
MembersetVisible in interface Member<ColumnPeriod>value - the new visiblepublic void setHidden()
public Dimension<?> getDimension()
MembergetDimension in interface Member<ColumnPeriod>public Dimension<?> setDimension(Dimension<?> newDimension)
MembersetDimension in interface Member<ColumnPeriod>newDimension - the new dimensionpublic XBRLPeriod toPeriod(DTSContainer container, XBRLItem.PeriodType type, HandleDateStep.InstantMode mode)
container - the containertype - the typemode - the modepublic int compareTo(Member<?> o2)
MembercompareTo in interface Member<ColumnPeriod>o2 - the o2public boolean isTotal()
MemberisTotal in interface Member<ColumnPeriod>public boolean isNet()
MemberisNet in interface Member<ColumnPeriod>public boolean isNegated()
MemberisNegated in interface Member<ColumnPeriod>