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)
Instantiates a new period member.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDomain(java.util.Collection<Member<?>> members)
Adds the domain.
|
void |
addPeriod(XBRLPeriod period)
Adds a new XBRLPeriod to this column of periods.
|
PeriodMember |
clone()
Clone.
|
int |
compareTo(Member<?> o2)
Compare to.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
Dimension<?> |
getDimension()
Gets the dimension.
|
java.util.Collection<Member<?>> |
getDomain()
Gets the domain.
|
ColumnPeriod |
getMember()
Gets the member.
|
XBRLPeriod |
getPeriod()
If this PeriodMember contains only one XBRLPeriod object this method returns
it.
|
boolean |
hasDomain()
Checks for domain.
|
int |
hashCode()
Hash code.
|
boolean |
isAbstract()
Checks if is abstract.
|
boolean |
isNegated()
Checks if is negated.
|
boolean |
isNet()
Checks if is net.
|
boolean |
isPrimary()
Checks if is primary.
|
boolean |
isTotal()
Checks if is total.
|
boolean |
isUsable()
When the member is part of a dimensional domain, this method returns
true if the target member is usable or false if it is not
|
boolean |
isVisible()
Checks if is visible.
|
Dimension<?> |
setDimension(Dimension<?> newDimension)
Sets the dimension.
|
void |
setHidden()
Sets the hidden.
|
void |
setVisible()
Sets the visible.
|
void |
setVisible(boolean value)
Sets the visible.
|
XBRLPeriod |
toPeriod(DTSContainer container,
XBRLItem.PeriodType type,
HandleDateStep.InstantMode mode)
To period.
|
java.lang.String |
toString()
To string.
|
public PeriodMember(XBRLPeriod period, HasBoySupport hb, Dimension<?> dim)
period - the periodhb - the hbdim - the dimpublic 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 PeriodMember clone()
clone in interface Member<ColumnPeriod>clone in class java.lang.Objectpublic ColumnPeriod getMember()
getMember in interface Member<ColumnPeriod>public java.util.Collection<Member<?>> getDomain()
getDomain in interface Member<ColumnPeriod>Member.hasDomain()public boolean hasDomain()
hasDomain in interface Member<ColumnPeriod>public boolean isUsable()
MemberisUsable in interface Member<ColumnPeriod>public java.lang.String toString()
toString in interface Member<ColumnPeriod>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.Objectobj - the objpublic void addDomain(java.util.Collection<Member<?>> members)
addDomain in interface Member<ColumnPeriod>members - the memberspublic boolean isAbstract()
isAbstract in interface Member<ColumnPeriod>public boolean isPrimary()
isPrimary in interface Member<ColumnPeriod>public boolean isVisible()
isVisible in interface Member<ColumnPeriod>public void setVisible()
public void setVisible(boolean value)
setVisible in interface Member<ColumnPeriod>value - the new visiblepublic void setHidden()
public Dimension<?> getDimension()
getDimension in interface Member<ColumnPeriod>public Dimension<?> setDimension(Dimension<?> newDimension)
setDimension 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)
compareTo in interface Member<ColumnPeriod>o2 - the o 2public boolean isTotal()
isTotal in interface Member<ColumnPeriod>public boolean isNet()
isNet in interface Member<ColumnPeriod>public boolean isNegated()
isNegated in interface Member<ColumnPeriod>Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa