public class XDimension extends java.lang.Object implements Dimension<MemberInfo>
Dimension.DimensionTypedefaultDimensionsXBRL, duplicatesDimension, entityDimension, formLineDimenion, instantModeDimension, instantOnDurationDimension, periodDimensionDuration, periodDimensionInstant, POSITION_AVAIL, POSITION_COLUMN_HEADERS, POSITION_ROW_HEADERS, POSITION_UNKOWN, RSDimensionsNameNamespace, RSDimensionsNameNamespacePrefix| Constructor and Description |
|---|
XDimension(DimensionalInstanceExplorer dimensionalInstanceExplorer,
int container,
XDTDimensionUse dUse,
XBRLRoleType role)
Instantiates a new x dimension.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMember(Member<?> member)
Adds a new dimension member to the end of the members of this dimension.
|
boolean |
bHasFixedName()
This function returns true if the dimension has a fixed name that must be obtained
via a call to
Dimension.getDimensionName(). |
int |
compareTo(Dimension<?> o) |
boolean |
delMember(Member<?> member)
Removes an existing dimension member from the dimension domain.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
boolean |
factMatches(XDTFactWithVirtualDimensions item,
Member<?> mem,
java.util.HashSet<javax.xml.namespace.QName> dimensionsToMatch,
java.lang.Object contextualExtraInformation)
Fact matches.
|
Member<?> |
findMember(Member<?> mem)
Search the Dimension domain for an occurrence of the mem member.
|
int |
getContainer()
Gets the container.
|
Member<?> |
getDefault()
for explicit dimensions this function returns the default member if any is defined.
|
XDTDimension |
getDimension()
Gets the dimension.
|
XBRLItem |
getDimensionItem()
Gets the dimension item.
|
java.lang.String |
getDimensionName()
This function will be used to obtain a dimension name for things that does not have a label like
the Period dimension or the Identifier dimension.
|
java.util.Collection<Member<?>> |
getDomain()
Returns an ordered collection of members.
|
DimensionalInstanceExplorer |
getInstanceExplorer()
Access to the InstanceExplorer who created this EDimension.
|
Member<?> |
getMemberFromString(java.lang.String value)
Returns the domain member whose test representation matches the string value or null.
|
java.util.Collection<Member<?>> |
getMembers()
Returns an ordered collection of members.
|
javax.xml.namespace.QName |
getName()
Every Dimension must have a dimension QName.
|
static javax.xml.namespace.QName |
getName(XDTDimensionUse dUse2)
Gets the name.
|
javax.xml.namespace.QName |
getQNameDefault()
Gets the q name default.
|
int |
getSuggestedInitialPosition(javax.xml.namespace.QName selectedPrimaryItem)
Returns the suggested initial placement position of the graphical element in the GUI.
|
Dimension.DimensionType |
getType()
returns either com.ihr.xbrl.om.xdt.XDTDimension.TYPED,
com.ihr.xbrl.om.xdt.XDTDimension.EXPLICIT depending on the type of the surrounding dimension.
|
int |
hashCode()
Hash code.
|
boolean |
isPrimary()
Returns true if the dimension is linked with a primary item and thus it is a PDimension or a DDimension.
|
boolean |
isTree()
Returns true if the representation of this dimension could be a tree of elements or
false if it is a list of items.
|
void |
setAllowDuplicates(boolean allowDuplicates)
If the value is true then it is possible for the dimension to contain two identical members
as two different member values.
|
void |
setDefault(PMember pMember)
Sets the default.
|
public XDimension(DimensionalInstanceExplorer dimensionalInstanceExplorer, int container, XDTDimensionUse dUse, XBRLRoleType role)
dimensionalInstanceExplorer - the dimensional instance explorercontainer - the containerdUse - the d userole - the rolepublic void setAllowDuplicates(boolean allowDuplicates)
DimensionsetAllowDuplicates in interface Dimension<MemberInfo>allowDuplicates - the new allow duplicatespublic boolean bHasFixedName()
DimensionDimension.getDimensionName().bHasFixedName in interface Dimension<MemberInfo>public int getContainer()
public java.lang.String getDimensionName()
DimensiongetDimensionName in interface Dimension<MemberInfo>public XBRLItem getDimensionItem()
public int getSuggestedInitialPosition(javax.xml.namespace.QName selectedPrimaryItem)
DimensiongetSuggestedInitialPosition in interface Dimension<MemberInfo>selectedPrimaryItem - this is the selected primary item in the GUIpublic DimensionalInstanceExplorer getInstanceExplorer()
public boolean addMember(Member<?> member)
DimensionaddMember in interface Dimension<MemberInfo>member - the memberpublic boolean delMember(Member<?> member)
DimensiondelMember in interface Dimension<MemberInfo>member - the member to removepublic java.util.Collection<Member<?>> getMembers()
DimensiongetMembers in interface Dimension<MemberInfo>public boolean isTree()
DimensionisTree in interface Dimension<MemberInfo>public java.util.Collection<Member<?>> getDomain()
DimensiongetDomain in interface Dimension<MemberInfo>public boolean isPrimary()
DimensionisPrimary in interface Dimension<MemberInfo>public boolean factMatches(XDTFactWithVirtualDimensions item, Member<?> mem, java.util.HashSet<javax.xml.namespace.QName> dimensionsToMatch, java.lang.Object contextualExtraInformation)
DimensionfactMatches in interface Dimension<MemberInfo>item - the itemmem - the memdimensionsToMatch - the dims to match on this roundcontextualExtraInformation - the contextual extra informationpublic Member<?> getDefault()
DimensiongetDefault in interface Dimension<MemberInfo>public void setDefault(PMember pMember)
pMember - the new defaultpublic javax.xml.namespace.QName getQNameDefault()
public javax.xml.namespace.QName getName()
DimensiongetName in interface Dimension<MemberInfo>public static javax.xml.namespace.QName getName(XDTDimensionUse dUse2)
dUse2 - the d use2public Member<?> findMember(Member<?> mem)
DimensionfindMember in interface Dimension<MemberInfo>mem - the member to search on this dimension domainpublic Dimension.DimensionType getType()
DimensiongetType in interface Dimension<MemberInfo>public boolean equals(java.lang.Object obj)
Dimensionequals in interface Dimension<MemberInfo>equals in class java.lang.Objectobj - the otherpublic int hashCode()
DimensionhashCode in interface Dimension<MemberInfo>hashCode in class java.lang.Objectpublic XDTDimension getDimension()
public int compareTo(Dimension<?> o)
compareTo in interface java.lang.Comparable<Dimension<?>>public Member<?> getMemberFromString(java.lang.String value)
DimensiongetMemberFromString in interface Dimension<MemberInfo>value - the value