|
XBRLAPIA Java API for XBRL |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xbrlapi.aspects.CombinationsImpl
public class CombinationsImpl
This implementation requires a constructor that specifies the aspect model and the specific axis that the aspect value combinations will be required for. Thereafter, the list of values for each aspect must be set. How the list of aspect values is obtained is determined externally. It may be from a fact set or it may be from an aspect domain or it may be from a combination of the two. The ordering of aspect values is also determined externally to this object.
| Constructor Summary | |
|---|---|
CombinationsImpl(AspectModel model,
String axis)
The aspect value lists are initialised to a list containing a single missing value. |
|
| Method Summary | |
|---|---|
void |
clearAspectValues(URI aspectId)
Removes the aspect values for the specified aspect. |
int |
getAncestorCount(URI aspectId)
|
List<Aspect> |
getAspects()
|
int |
getAspectValueCount(URI aspectId)
|
List<AspectValue> |
getAspectValues(URI aspectId)
|
String |
getAxis()
|
int |
getCombinationCount()
|
AspectValue |
getCombinationValue(URI aspectId,
int combination)
This method is useful when setting up filters for a specific combination of aspect values. |
Map<URI,AspectValue> |
getCombinationValues(int combination)
This method is particularly useful in setting up fact set filtering based upon a combination of aspect values. |
int |
getDescendantCount(URI aspectId)
|
boolean |
hasAspect(URI aspectId)
|
void |
setAspectValues(FactSet factSet)
For each aspect in the combination, its aspect values are set equal to the list of aspect values obtained from the fact set, sorted based on the comparator provided by the aspect's domain. |
void |
setAspectValues(URI aspectId,
List<AspectValue> values)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CombinationsImpl(AspectModel model,
String axis)
throws XBRLException
model - The model containing the aspects and their arrangement into axes.axis - The model axis to generate a combination for.
XBRLException - If the model does not have the specified axis.| Method Detail |
|---|
public int getAncestorCount(URI aspectId)
throws XBRLException
getAncestorCount in interface CombinationsaspectId - The ID of the aspect of interest.
XBRLException - if the combinations do not include the specified Aspect.Combinations.getAncestorCount(URI)
public boolean hasAspect(URI aspectId)
throws XBRLException
hasAspect in interface CombinationsaspectId - The ID of the aspect of interest.
XBRLException - if the aspect ID is nullCombinations.hasAspect(URI)
public void setAspectValues(URI aspectId,
List<AspectValue> values)
throws XBRLException
setAspectValues in interface CombinationsaspectId - The aspect whose values are being set.values - The list of aspect values for the specified aspect.
XBRLException - if a parameter is null or the aspect is not in the specified
axis of the aspect model or if a value is for an aspect with
an aspect ID that differs from the one provided as a
parameter.Combinations.setAspectValues(URI, List)
public void clearAspectValues(URI aspectId)
throws XBRLException
Combinations
clearAspectValues in interface CombinationsaspectId - The ID of the aspect of interest.
XBRLException - if the combinations do not include the specified Aspect.Combinations.clearAspectValues(URI)
public int getAspectValueCount(URI aspectId)
throws XBRLException
getAspectValueCount in interface CombinationsaspectId - The ID of the aspect of interest.
XBRLException - if the combinations do not include the specified Aspect.Combinations.getAspectValueCount(URI)
public List<AspectValue> getAspectValues(URI aspectId)
throws XBRLException
getAspectValues in interface CombinationsaspectId - The ID of the aspect of interest.
XBRLException - if the combinations do not include the specified Aspect.Combinations.getAspectValues(URI)public List<Aspect> getAspects()
getAspects in interface CombinationsCombinations.getAspects()
public int getDescendantCount(URI aspectId)
throws XBRLException
getDescendantCount in interface CombinationsaspectId - The ID of the aspect of interest.
XBRLException - if the combinations do not include the specified Aspect.Combinations.getDescendantCount(URI)public String getAxis()
getAxis in interface CombinationsCombinations.getAxis()public int getCombinationCount()
getCombinationCount in interface CombinationsCombinations.getCombinationCount()
public AspectValue getCombinationValue(URI aspectId,
int combination)
throws XBRLException
Combinations
getCombinationValue in interface CombinationsaspectId - The ID of the aspect that the value is being sought for.combination - The index of the combination that an aspect value is being
sought for.
XBRLExceptionCombinations.getCombinationValue(URI, int)
public Map<URI,AspectValue> getCombinationValues(int combination)
throws XBRLException
Combinations
getCombinationValues in interface Combinationscombination - The index of the combination of aspect values to retrieve
XBRLExceptionCombinations.getCombinationValues(int)
public void setAspectValues(FactSet factSet)
throws XBRLException
Combinations
setAspectValues in interface CombinationsfactSet - set of facts to use when obtaining the aspect values.
XBRLException - if the aspects parameter is null or the aspect is not in the
specified axis of the aspect model.Combinations.setAspectValues(FactSet)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||