public class DefaultAspectRule extends CommonAspectRule implements ConceptAspectInterface, EntityIdentifierAspectInterface, PeriodAspectInterface, UnitAspectInterface, ContextComponentRuleInterface, DimensionAspectInterface, LocationAspectInterface
ALLDIMENSIONALASPECTS, ALLNONDIMENSIONALASPECTS, ANY, COMPLETESCENARIO, COMPLETESEGMENT, CONCEPT, DIMENSION, ENTITYIDENTIFIER, LOCATION, NONE, NONXDTSCENARIO, NONXDTSEGMENT, PERIOD, UNIT, VALUE| Constructor and Description |
|---|
DefaultAspectRule(int aspect,
XBRLFormula formula,
net.sf.saxon.s9api.XdmNode aspectNode,
int type)
Instantiates a new default aspect rule.
|
| Modifier and Type | Method and Description |
|---|---|
XMLElementDefinition |
getConcept(XPathHelper xph)
Returns the calculated concept for this aspect.
|
javax.xml.namespace.QName |
getDimension()
Gets the dimension.
|
XBRLEntity |
getEntity(XPathHelper xph)
Gets the entity.
|
XBRLContext |
getLastEvaluatedContext()
Gets the last evaluated context.
|
XBRLFactsList |
getLocation(XBRLInstance instance,
XPathHelper xph)
Returns the location for a new item or tuple .
|
XBRLPeriod |
getPeriod(XPathHelper xph)
Gets the period.
|
XBRLItem.PeriodType |
getPeriodType(XBRLItem item)
Returns a constant identifying either XBRLItem.DURATION or XBRLItem.INSTANT
|
javax.xml.namespace.QName |
getSource()
Access to the source from other classes.
|
XBRLUnit |
getUnit(XPathHelper xph)
Gets the unit.
|
boolean |
isStaticConcept()
Returns true if the evaluation of the concept does not requires access to dynamic content.
|
void |
resolve(XMLElementDefinition el,
FContext fc,
XPathHelper xph,
javax.xml.namespace.QName dimName)
Resolve one dimension in the appropriate dimension container.
|
void |
updateDimensionsContainer(FContext fctx,
XPathHelper xph,
boolean bIsOcc)
Update dimensions container.
|
getAspectsTextpublic DefaultAspectRule(int aspect,
XBRLFormula formula,
net.sf.saxon.s9api.XdmNode aspectNode,
int type)
throws XFValidationException
aspect - the aspectformula - the formulaaspectNode - the aspect nodetype - this is either TYPED or EXPLICIT but only when DIMENSION is the aspectXFValidationException - the XF validation exceptionpublic XMLElementDefinition getConcept(XPathHelper xph) throws XFValidationException
ConceptAspectInterfacegetConcept in interface ConceptAspectInterfacexph - the hpxXFValidationException - the XF validation exceptionpublic boolean isStaticConcept()
ConceptAspectInterfaceisStaticConcept in interface ConceptAspectInterfacepublic XBRLItem.PeriodType getPeriodType(XBRLItem item)
PeriodAspectInterfacegetPeriodType in interface PeriodAspectInterfaceitem - the itempublic XBRLEntity getEntity(XPathHelper xph) throws XFValidationException
EntityIdentifierAspectInterfacegetEntity in interface EntityIdentifierAspectInterfacexph - the xphXFValidationException - the XF validation exceptionpublic XBRLPeriod getPeriod(XPathHelper xph) throws XFValidationException
PeriodAspectInterfacegetPeriod in interface PeriodAspectInterfacexph - the xphXFValidationException - the XF validation exceptionpublic XBRLUnit getUnit(XPathHelper xph) throws XFValidationException
UnitAspectInterfacegetUnit in interface UnitAspectInterfacexph - the xphXFValidationException - the XF validation exceptionpublic void updateDimensionsContainer(FContext fctx, XPathHelper xph, boolean bIsOcc) throws XFValidationException
ContextComponentRuleInterfaceupdateDimensionsContainer in interface ContextComponentRuleInterfacefctx - the ctxxph - the xphbIsOcc - the b is occXFValidationException - the XF validation exceptionpublic XBRLContext getLastEvaluatedContext()
EntityIdentifierAspectInterfacegetLastEvaluatedContext in interface EntityIdentifierAspectInterfacepublic void resolve(XMLElementDefinition el, FContext fc, XPathHelper xph, javax.xml.namespace.QName dimName) throws XFValidationException
DimensionAspectInterfaceresolve in interface DimensionAspectInterfaceel - This is the concept definition for which the dimension is going to be resolvedfc - the fcxph - the xphdimName - the dim nameXFValidationException - the XF validation exceptionpublic javax.xml.namespace.QName getDimension()
DimensionAspectInterfacegetDimension in interface DimensionAspectInterfacepublic XBRLFactsList getLocation(XBRLInstance instance, XPathHelper xph)
LocationAspectInterfacegetLocation in interface LocationAspectInterfaceinstance - the instance that is being constructedxph - the xphpublic javax.xml.namespace.QName getSource()
getSource in interface EntityIdentifierAspectInterface