|
XBRLAPIA Java API for XBRL |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AspectModel
| Method Summary | |
|---|---|
void |
addFact(Fact fact)
|
void |
arrangeAspect(String aspectType,
String axis)
|
void |
arrangeAspect(String aspectType,
String axis,
String parentType)
|
void |
clearAllCriteria()
Clears all fact selection criteria in the aspect model. |
void |
clearFacts()
Removes all facts from the aspect model and all aspect values from the aspects in the aspect models. |
void |
deleteAspect(String type)
|
Set<Fact> |
getAllFacts()
|
Aspect |
getAspect(String type)
|
Collection<Aspect> |
getAspects()
|
List<List<AspectValue>> |
getAspectValueCombinationsForAxis(String axis)
|
List<AspectValue> |
getAspectValues(Fact fact)
|
List<Aspect> |
getAxisAspects(String axis)
|
Set<Fact> |
getFacts(Collection<AspectValue> values)
|
Set<Fact> |
getMatchingFacts()
|
List<List<AspectValue>> |
getMinimalAspectValueCombinationsForAxis(String axis)
|
Collection<Aspect> |
getOrphanAspects()
|
String |
getType()
|
boolean |
hasAspect(String type)
|
void |
setAspect(Aspect aspect)
|
void |
setCriteria(Collection<AspectValue> criteria)
Adds a collection of fact selection criteria. |
void |
setCriterion(AspectValue criterion)
Adds a fact selection criterion used in selecting a set of the facts in the aspect model. |
| Method Detail |
|---|
String getType()
Collection<Aspect> getAspects()
Aspect getAspect(String type)
throws XBRLException
type - the aspect type.
XBRLException - if the aspect model does not have the
specified aspect.boolean hasAspect(String type)
type - the aspect type.
Collection<Aspect> getOrphanAspects()
List<Aspect> getAxisAspects(String axis)
throws XBRLException
axis - The unique (for the aspect model) identifier for
an axis of the aspect model. Aspect models can have zero or more
axes, each of which has a root aspect. Root aspects can have a series
of child aspects, all of which are aspects associated with the same axis
of the aspect model. These axes are useful for relating aspects
to rows and columns of a table, for example.
XBRLException - if the axis is not defined for the aspect model.
void setAspect(Aspect aspect)
throws XBRLException
aspect - The aspect to set in the aspect model, as an orphan.
XBRLException
void addFact(Fact fact)
throws XBRLException
fact - The fact to add to the aspect model
XBRLException - if the fact cannot be added to the aspect model.
List<AspectValue> getAspectValues(Fact fact)
throws XBRLException
fact - The fact to get the aspect values for.
XBRLException
void arrangeAspect(String aspectType,
String axis)
throws XBRLException
aspectType - The type of aspect to arrange in the aspect model.axis - the axis to put the aspect in, in last
place in the ordering.
XBRLException - if the aspect is not in the aspect model.
void arrangeAspect(String aspectType,
String axis,
String parentType)
throws XBRLException
aspectType - The type of aspect to arrange in the aspect model.axis - the axis to put the aspect in.parentType - The type of parent aspect for the aspect being set.
XBRLException - if the aspect or parent are not in the aspect model.
Set<Fact> getFacts(Collection<AspectValue> values)
throws XBRLException
values - is a collection of AspectValues to be matched.
XBRLException
Set<Fact> getAllFacts()
throws XBRLException
XBRLException
Set<Fact> getMatchingFacts()
throws XBRLException
XBRLException
void setCriterion(AspectValue criterion)
throws XBRLException
criterion - The aspect value that the selected
facts must have.
XBRLExceptiongetMatchingFacts()
void setCriteria(Collection<AspectValue> criteria)
throws XBRLException
criteria - The collection of aspect values
that the selected facts must have.
XBRLExceptiongetMatchingFacts(),
setCriterion(AspectValue)void clearAllCriteria()
setCriterion(AspectValue),
getMatchingFacts()
List<List<AspectValue>> getAspectValueCombinationsForAxis(String axis)
throws XBRLException
axis - The name of the axis
XBRLException
List<List<AspectValue>> getMinimalAspectValueCombinationsForAxis(String axis)
throws XBRLException
axis - The name of the dimension
XBRLException
void deleteAspect(String type)
throws XBRLException
type - The type identifying the aspect to delete.
XBRLException
void clearFacts()
throws XBRLException
XBRLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||