T
- the generic typepublic interface Dimension<T> extends java.lang.Comparable<Dimension<?>>
Dimensions are, for example, the Time dimension, the Units dimension, the Entity dimension and every other XDT defined dimension that exist in the DTS
Modifier and Type | Interface and Description |
---|---|
static class |
Dimension.DimensionType
The Enum DimensionType.
|
Modifier and Type | Field and Description |
---|---|
static javax.xml.namespace.QName |
defaultDimensionsXBRL
The Constant defaultDimensionsXBRL.
|
static javax.xml.namespace.QName |
duplicatesDimension
The Constant duplicatesDimension.
|
static javax.xml.namespace.QName |
entityDimension
The Constant entityDimension.
|
static javax.xml.namespace.QName |
formLineDimenion
The Constant formLineDimenion.
|
static javax.xml.namespace.QName |
instantModeDimension
The Constant instantModeDimension.
|
static javax.xml.namespace.QName |
instantOnDurationDimension
The Constant instantOnDurationDimension.
|
static javax.xml.namespace.QName |
periodDimensionCombined
The Constant periodDimensionDuration.
|
static javax.xml.namespace.QName |
periodDimensionDuration
The Constant periodDimensionDuration.
|
static javax.xml.namespace.QName |
periodDimensionInstant
The Constant periodDimensionInstant.
|
static int |
POSITION_AVAIL
Suggested position for new dimensions is POSITION_AVAIL when the new dimension goes in the table of available dimensions.
|
static int |
POSITION_COLUMN_HEADERS
Suggested position for new dimensions is POSITION_COLUMN_HEADERS when the new dimension goes in the header of columns.
|
static int |
POSITION_ROW_HEADERS
Suggested position for new dimensions is POSITION_ROW_HEADERS when the new dimension goes in the header of rows.
|
static int |
POSITION_UNKNOWN
This constant is used to indicate that the position is not given so other options shall be used.
|
static javax.xml.namespace.QName |
rowOrColumnLabelDimension
The Constant formLineDimenion.
|
static java.lang.String |
RSDimensionsNameNamespace
The Constant RSDimensionsNameNamespace.
|
static java.lang.String |
RSDimensionsNameNamespacePrefix
The Constant RSDimensionsNameNamespacePrefix.
|
static javax.xml.namespace.QName |
unitDimension
The constant unitDimension.
|
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
getDimensionName() . |
boolean |
delMember(Member<?> member)
Removes an existing dimension member from the dimension domain.
|
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> dimsToMatchOnThisRound,
java.lang.Object contextualExtraInformation)
Fact matches.
|
Member<?> |
findMember(Member<?> mem)
Search the Dimension domain for an occurrence of the mem member.
|
Member<?> |
getDefault()
for explicit dimensions this function returns the default member if any is defined.
|
XDTDimension |
getDimension()
Obtains the surrounding dimension defined in the XDT processor or null if the dimension is not
backed up with an XDT dimension.
|
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.
|
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.
|
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 |
isOpen()
Returns true when this dimension must accept new values entered by the user in the GUI.
|
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.
|
boolean |
isXDTDimension()
Returns true if the dimension is backed up over a dimension defined in the XDT (dimensions) processor.
|
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.
|
static final java.lang.String RSDimensionsNameNamespace
static final java.lang.String RSDimensionsNameNamespacePrefix
static final javax.xml.namespace.QName entityDimension
static final javax.xml.namespace.QName periodDimensionInstant
static final javax.xml.namespace.QName periodDimensionDuration
static final javax.xml.namespace.QName defaultDimensionsXBRL
static final javax.xml.namespace.QName duplicatesDimension
static final javax.xml.namespace.QName instantModeDimension
static final javax.xml.namespace.QName formLineDimenion
static final javax.xml.namespace.QName rowOrColumnLabelDimension
static final javax.xml.namespace.QName periodDimensionCombined
static final javax.xml.namespace.QName instantOnDurationDimension
static final javax.xml.namespace.QName unitDimension
static final int POSITION_UNKNOWN
static final int POSITION_AVAIL
static final int POSITION_COLUMN_HEADERS
static final int POSITION_ROW_HEADERS
javax.xml.namespace.QName getName()
void setAllowDuplicates(boolean allowDuplicates)
allowDuplicates
- the new allow duplicatesboolean addMember(Member<?> member)
member
- the memberboolean delMember(Member<?> member)
member
- the member to removeboolean bHasFixedName()
getDimensionName()
.java.lang.String getDimensionName()
int getSuggestedInitialPosition(javax.xml.namespace.QName selectedPrimaryItem)
selectedPrimaryItem
- this is the selected primary item in the GUIjava.util.Collection<Member<?>> getMembers()
java.util.Collection<Member<?>> getDomain()
boolean isTree()
boolean isPrimary()
boolean isXDTDimension()
getDimension()
will not return nullXDTDimension getDimension()
Member<?> findMember(Member<?> mem)
mem
- the member to search on this dimension domainboolean factMatches(XDTFactWithVirtualDimensions item, Member<?> mem, java.util.Set<javax.xml.namespace.QName> dimsToMatchOnThisRound, java.lang.Object contextualExtraInformation)
item
- the itemmem
- the memdimsToMatchOnThisRound
- the dims to match on this roundcontextualExtraInformation
- the contextual extra informationboolean factMatches(XDTFactWithVirtualDimensions item, Member<?> mem, java.lang.Object contextualExtraInformation)
item
- the itemmem
- the memcontextualExtraInformation
- the contextual extra informationMember<?> getDefault()
Dimension.DimensionType getType()
int hashCode()
hashCode
in class java.lang.Object
boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the otherMember<?> getMemberFromString(java.lang.String value)
value
- the valueboolean isOpen()
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa