public class XDTDimension
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EXPLICIT
The Constant EXPLICIT.
|
static int |
TYPED
The Constant TYPED.
|
Constructor and Description |
---|
XDTDimension(XBRLItem item,
XDTProcessor processor)
Instantiates a new XDT dimension.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Equals.
|
java.util.ArrayList<net.sf.saxon.value.QNameValue> |
filter_member_network_selection(net.sf.saxon.value.QNameValue qMember,
net.sf.saxon.value.StringValue qLinkRole,
net.sf.saxon.value.StringValue arcRole,
net.sf.saxon.value.StringValue axis)
Backup function of the XFI function with the same name.
|
javax.xml.namespace.QName |
getDefault()
Access to the QName that is the default value for the dimension.
|
int |
getDimensionType()
Returns
XDTDimension.EXPLICIT or XDTDimension.TYPED . |
java.util.Iterator<javax.xml.namespace.QName> |
getDomain()
Access to the dimension domain of members.
|
XBRLItem |
getItem()
Gets the item.
|
XMLElementDefinition |
getTypedElement()
Access to the element that is valid content for the typed dimension.
|
int |
hashCode()
Hash code.
|
public static final int EXPLICIT
public static final int TYPED
public XDTDimension(XBRLItem item, XDTProcessor processor)
item
- the itemprocessor
- the processorpublic javax.xml.namespace.QName getDefault()
Default values are global so the method belongs to the dimension and not to the dimension use.
public XBRLItem getItem()
public int getDimensionType()
XDTDimension.EXPLICIT
or XDTDimension.TYPED
.public XMLElementDefinition getTypedElement()
public java.util.Iterator<javax.xml.namespace.QName> getDomain()
Access to the dimension domain of members.
This method is rarely used because the domain of members depends on the dimension usage and the dimension use is different on each hypercube declaration. This method should only be used when there is a need to know the dimension domain regardless of the dimension use or in the absence of an hypercube
Only usable members are returned
Works only if the dimension is Explicit
public java.util.ArrayList<net.sf.saxon.value.QNameValue> filter_member_network_selection(net.sf.saxon.value.QNameValue qMember, net.sf.saxon.value.StringValue qLinkRole, net.sf.saxon.value.StringValue arcRole, net.sf.saxon.value.StringValue axis) throws XDTAmbiguousFilterMemberNetwork
The existence of this function in the functions conformance suite makes me wonder if the authors of the functions specification has ever understood the XBRL Dimensions Specification 1.0.
The function has parameters dimension QName and Member QName for start exploring for more members in the same domain. Surprisingly the function does not considers the concept QName which is supposed to make USE OF THE DIMENSION through an hypercube.
Note that the hypercube can modify the dimension content via all and not-all combinations.
It looks like the authors of the functions specification took a very syntactical approach to the dimensions specification rather than an object model approach in which an object is declared once and used multiple times. Certainly, the Dimensions Specification was written with the idea of being able to redefine a dimension members each time a dimension is used in a concept and this function is ignoring this capability.
qMember
- the q memberqLinkRole
- the q link rolearcRole
- the arc roleaxis
- the axisXDTAmbiguousFilterMemberNetwork
- the XDT ambiguous filter member networkpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the objCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa