public class DefaultAspectRule extends CommonAspectRule implements ConceptAspectInterface, EntityIdentifierAspectInterface, PeriodAspectInterface, UnitAspectInterface, ContextComponentRuleInterface, DimensionAspectInterface, LocationAspectInterface
Constructor and Description |
---|
DefaultAspectRule(Aspect 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()
Gets the concept.
|
javax.xml.namespace.QName |
getDimension()
Gets the dimension.
|
XBRLEntity |
getEntity()
Gets the entity.
|
XBRLContext |
getLastEvaluatedContext()
Gets the last evaluated context.
|
XBRLFactsList |
getLocation(XBRLInstance instance)
Gets the location.
|
XBRLPeriod |
getPeriod()
Gets the period.
|
XBRLItem.PeriodType |
getPeriodType(XBRLItem item)
Gets the period type.
|
javax.xml.namespace.QName |
getSource()
Access to the source from other classes.
|
XBRLUnit |
getUnit()
Gets the unit.
|
boolean |
isStaticConcept()
Checks if is static concept.
|
void |
resetLastEvaluated()
Reset last evaluated.
|
void |
resolve(XMLElementDefinition el,
FContext fc,
javax.xml.namespace.QName dimName)
Resolve.
|
void |
updateDimensionsContainer(FContext fctx,
boolean bIsOcc)
Update dimensions container.
|
public DefaultAspectRule(Aspect 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() throws XFValidationException
getConcept
in interface ConceptAspectInterface
XFValidationException
- the XF validation exceptionpublic boolean isStaticConcept()
isStaticConcept
in interface ConceptAspectInterface
public XBRLItem.PeriodType getPeriodType(XBRLItem item)
getPeriodType
in interface PeriodAspectInterface
item
- the itempublic XBRLEntity getEntity() throws XFValidationException
getEntity
in interface EntityIdentifierAspectInterface
XFValidationException
- the XF validation exceptionpublic XBRLPeriod getPeriod() throws XFValidationException
getPeriod
in interface PeriodAspectInterface
XFValidationException
- the XF validation exceptionpublic XBRLUnit getUnit() throws XFValidationException
getUnit
in interface UnitAspectInterface
XFValidationException
- the XF validation exceptionpublic void updateDimensionsContainer(FContext fctx, boolean bIsOcc) throws XFValidationException
updateDimensionsContainer
in interface ContextComponentRuleInterface
fctx
- the fctxbIsOcc
- the b is occXFValidationException
- the XF validation exceptionpublic XBRLContext getLastEvaluatedContext()
getLastEvaluatedContext
in interface EntityIdentifierAspectInterface
public void resetLastEvaluated()
resetLastEvaluated
in interface EntityIdentifierAspectInterface
public void resolve(XMLElementDefinition el, FContext fc, javax.xml.namespace.QName dimName) throws XFValidationException
resolve
in interface DimensionAspectInterface
el
- the elfc
- the fcdimName
- the dim nameXFValidationException
- the XF validation exceptionpublic javax.xml.namespace.QName getDimension()
getDimension
in interface DimensionAspectInterface
public XBRLFactsList getLocation(XBRLInstance instance)
getLocation
in interface LocationAspectInterface
instance
- the instancepublic javax.xml.namespace.QName getSource()
getSource
in interface EntityIdentifierAspectInterface
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa