public class XDTDimensionUse
extends java.lang.Object
Constructor and Description |
---|
XDTDimensionUse(XDTProcessor processor,
XDTDimension dimension,
DTSBase base,
DefinitionLinkbase tempDefLb,
int arcroleType,
int contextElement)
Instantiates a new XDT dimension use.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
int |
getArcroleType()
Returns XDTHypercubeUse.ALL or XDTHypercubeUse.NOTALL depending on this dimension use is in a positive or negative
Hypercube
|
int |
getContextElement()
Returns XDTHypercubeUse.SEGMENT or XDTHypercubeUse.SCENARIO depending on where the hypercube declares this dimension shall
be used on
|
XDTDimension |
getDimension()
Access to the dimension definition on this dimension use.
|
java.util.Iterator<javax.xml.namespace.QName> |
getDomain()
Returns an iterator over the entire domain, some members may not be usable
use the function isUsable to check each member's usability.
|
javax.xml.namespace.QName |
getExplicitMemberValue(XBRLDimensionsContainer container)
Helper method, not used inside the XDT validation engine but available for applications using the XDT model
returns the value (QName) from the context container or from the default value of the dimension.
|
javax.xml.namespace.QName |
getExplicitMemberValue(XBRLFactItem fact,
int container)
Helper method, not used inside the XDT validation engine but available for applications using the XDT model
returns the value (QName) from the context or from the default value of the dimension.
|
java.lang.String |
getName()
Returns a text representation of the QName for this dimension including the
prefix and local name.
|
int |
getNumberOfMembers()
Returns the number of members in the domain (usable and not usable).
|
java.util.Collection<XDTDomainMemberUse> |
getUsesOfDomainMembers()
Access to the dimension domain using the object model of the XDT representation.
|
int |
hashCode()
Hash code.
|
boolean |
isUsable(javax.xml.namespace.QName member)
Returns true if the member belongs to the domain and is usable.
|
boolean |
validate(XMLFragment info,
java.lang.StringBuilder dimensionValidation,
XDTValidationDimension valDimension,
java.lang.String contextId)
This method validates the content of a dimension against the domain of members for the dimension.
|
public XDTDimensionUse(XDTProcessor processor, XDTDimension dimension, DTSBase base, DefinitionLinkbase tempDefLb, int arcroleType, int contextElement)
processor
- the processordimension
- the dimensionbase
- the basetempDefLb
- the temp def lbarcroleType
- the arcrole typecontextElement
- the context elementpublic java.util.Collection<XDTDomainMemberUse> getUsesOfDomainMembers()
The returned collection is ordered according to the order attribute of the relationships in the taxonomy
public boolean validate(XMLFragment info, java.lang.StringBuilder dimensionValidation, XDTValidationDimension valDimension, java.lang.String contextId)
info
- the nodeInfo of the explicit dimension usage in the context of the fact or null if the default value will be useddimensionValidation
- the dimension validationvalDimension
- Keeps track of the validation history for this dimensioncontextId
- the context idpublic javax.xml.namespace.QName getExplicitMemberValue(XBRLFactItem fact, int container)
fact
- the XBRLFactItemcontainer
- either XDTHypercubeUse.SEGMENT or XDTHypercubeUse.SCENARIOpublic javax.xml.namespace.QName getExplicitMemberValue(XBRLDimensionsContainer container)
container
- XBRLDimensionsContaienr objectpublic XDTDimension getDimension()
public int getArcroleType()
public int getContextElement()
public java.lang.String getName()
public java.util.Iterator<javax.xml.namespace.QName> getDomain()
public int getNumberOfMembers()
public boolean isUsable(javax.xml.namespace.QName member)
member
- the memberpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the objpublic void clear()
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa