public class VirtualDimension extends java.lang.Object implements Dimension<java.lang.Integer>, XDTVirtualDimension
Virtual dimensions exists to encapsulate a group of dimensions in a single component in the Z axis
Note. This class handles all virtual dimensions.
Dimension.DimensionType
defaultDimensionsXBRL, duplicatesDimension, entityDimension, formLineDimenion, instantModeDimension, instantOnDurationDimension, periodDimensionCombined, periodDimensionDuration, periodDimensionInstant, POSITION_AVAIL, POSITION_COLUMN_HEADERS, POSITION_ROW_HEADERS, POSITION_UNKNOWN, rowOrColumnLabelDimension, RSDimensionsNameNamespace, RSDimensionsNameNamespacePrefix, unitDimension
Constructor and Description |
---|
VirtualDimension(javax.xml.namespace.QName name,
java.lang.String userName)
Instantiates a new virtual dimension.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addMember(Member<?> member)
Adds the member.
|
void |
addOpenDimension(javax.xml.namespace.QName key)
Adds an open dimension to this Virtual Dimensions container.
|
boolean |
bHasFixedName()
B has fixed name.
|
int |
compareTo(Dimension<?> o)
Compare to.
|
boolean |
delMember(Member<?> member)
Del member.
|
boolean |
equals(java.lang.Object other)
Equals.
|
boolean |
factMatches(XDTFactWithVirtualDimensions item,
Member<?> mem,
java.lang.Object contextualExtraInformation)
Fact matches.
|
boolean |
factMatches(XDTFactWithVirtualDimensions item,
Member<?> mem,
java.util.Set<javax.xml.namespace.QName> dimensionsToMatch,
java.lang.Object contextualExtraInformation)
Fact matches.
|
Member<?> |
findMember(Member<?> mem)
Find member.
|
Member<?> |
getDefault()
Gets the default.
|
XDTDimension |
getDimension()
Gets the dimension.
|
java.lang.String |
getDimensionName()
Gets the dimension name.
|
java.util.Collection<Member<?>> |
getDomain()
Gets the domain.
|
Member<?> |
getMemberFromString(java.lang.String value)
Gets the member from string.
|
java.util.Collection<Member<?>> |
getMembers()
Gets the members.
|
javax.xml.namespace.QName |
getName()
Gets the name.
|
java.util.Set<javax.xml.namespace.QName> |
getOpenDimensions()
Returns open dimensions in this Virtual Dimensions container.
|
int |
getSuggestedInitialPosition(javax.xml.namespace.QName selectedPrimaryItem)
Gets the suggested initial position.
|
Dimension.DimensionType |
getType()
Gets the type.
|
int |
hashCode()
Hash code.
|
boolean |
isOpen()
Returns true if this virtual dimension contains nested typed dimensions.
|
boolean |
isPrimary()
Checks if is primary.
|
boolean |
isTree()
Checks if is tree.
|
boolean |
isXDTDimension()
Checks if is XDT dimension.
|
void |
setAllowDuplicates(boolean allowDuplicates)
Sets the allow duplicates.
|
public VirtualDimension(javax.xml.namespace.QName name, java.lang.String userName)
name
- the nameuserName
- the user namepublic boolean addMember(Member<?> member)
public boolean bHasFixedName()
bHasFixedName
in interface Dimension<java.lang.Integer>
public boolean delMember(Member<?> member)
public boolean factMatches(XDTFactWithVirtualDimensions item, Member<?> mem, java.util.Set<javax.xml.namespace.QName> dimensionsToMatch, java.lang.Object contextualExtraInformation)
factMatches
in interface Dimension<java.lang.Integer>
item
- the itemmem
- the memdimensionsToMatch
- the dimensions to matchcontextualExtraInformation
- the contextual extra informationpublic boolean factMatches(XDTFactWithVirtualDimensions item, Member<?> mem, java.lang.Object contextualExtraInformation)
factMatches
in interface Dimension<java.lang.Integer>
item
- the itemmem
- the memcontextualExtraInformation
- the contextual extra informationpublic Member<?> findMember(Member<?> mem)
findMember
in interface Dimension<java.lang.Integer>
mem
- the mempublic Member<?> getDefault()
getDefault
in interface Dimension<java.lang.Integer>
public java.lang.String getDimensionName()
getDimensionName
in interface Dimension<java.lang.Integer>
public java.util.Collection<Member<?>> getDomain()
public java.util.Collection<Member<?>> getMembers()
getMembers
in interface Dimension<java.lang.Integer>
public javax.xml.namespace.QName getName()
getName
in interface Dimension<java.lang.Integer>
getName
in interface XDTVirtualDimension
public int getSuggestedInitialPosition(javax.xml.namespace.QName selectedPrimaryItem)
getSuggestedInitialPosition
in interface Dimension<java.lang.Integer>
selectedPrimaryItem
- the selected primary itempublic Dimension.DimensionType getType()
public boolean isPrimary()
public boolean isTree()
public boolean isXDTDimension()
isXDTDimension
in interface Dimension<java.lang.Integer>
public XDTDimension getDimension()
getDimension
in interface Dimension<java.lang.Integer>
public boolean isOpen()
public void setAllowDuplicates(boolean allowDuplicates)
setAllowDuplicates
in interface Dimension<java.lang.Integer>
allowDuplicates
- the new allow duplicatespublic int compareTo(Dimension<?> o)
compareTo
in interface java.lang.Comparable<Dimension<?>>
o
- the opublic Member<?> getMemberFromString(java.lang.String value)
getMemberFromString
in interface Dimension<java.lang.Integer>
value
- the valuepublic void addOpenDimension(javax.xml.namespace.QName key)
key
- the dimension QNamepublic java.util.Set<javax.xml.namespace.QName> getOpenDimensions()
public boolean equals(java.lang.Object other)
Dimension
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa