|
XBRLAPIA Java API for XBRL |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FactSet
A FactSet is a set of facts and a set of aspect values and a two-way mapping between the facts and the aspect values
The FactSet guarantees to have all aspect values for all of the facts that it contains. It also guarantees not to have any aspect values that are not values for facts in the fact set.
| Method Summary | ||
|---|---|---|
void |
addFact(Fact fact)
Adds the fact to the fact set, computing the aspect values for the fact for each aspect in the fact set's aspect model. |
|
|
addFacts(Collection<F> facts)
Adds the facts to the fact set, computing the aspect values for the facts for each aspect in the fact set's aspect model. |
|
void |
emptyLocalLabelCache()
This method simply empties the label cache that is a local property of the fact set. |
|
AspectModel |
getAspectModel()
|
|
AspectValue |
getAspectValue(URI aspectId,
Fact fact)
|
|
int |
getAspectValueCount(URI aspectId)
|
|
String |
getAspectValueLabel(AspectValue value,
List<String> locales,
List<URI> resourceRoles,
List<URI> linkRoles)
This is a convenience method to give access to the labels generated by the labellers for the values of each aspect in the fact set's aspect model. |
|
String |
getAspectValueLabel(AspectValue value,
String locale,
URI resourceRole,
URI linkRole)
This is a convenience method to give access to the labels generated by the labellers for the values of each aspect in the fact set's aspect model. |
|
Set<AspectValue> |
getAspectValues()
|
|
Collection<AspectValue> |
getAspectValues(Fact fact)
|
|
Collection<AspectValue> |
getAspectValues(URI aspectId)
|
|
Set<Fact> |
getFacts()
|
|
Set<Fact> |
getFacts(AspectValue value)
|
|
Set<Fact> |
getFacts(Collection<AspectValue> values)
|
|
AspectModel |
getModel()
|
|
Collection<Aspect> |
getPopulatedAspects()
|
|
List<Fact> |
getRootFacts(URI aspectId)
|
|
long |
getSize()
|
|
boolean |
hasAspectValue(AspectValue value)
|
|
boolean |
hasFact(Fact fact)
|
|
boolean |
isPopulated(URI aspectId)
|
|
boolean |
isSingular(URI aspectId)
|
|
| Method Detail |
|---|
AspectModel getModel()
void addFact(Fact fact)
throws XBRLException
fact - The fact to add.
XBRLException
<F extends Fact> void addFacts(Collection<F> facts)
throws XBRLException
facts - The facts to add.
XBRLExceptionboolean hasFact(Fact fact)
fact - The fact to test for.
boolean hasAspectValue(AspectValue value)
value - The aspect value to test for.
Set<Fact> getFacts()
Set<AspectValue> getAspectValues()
Collection<AspectValue> getAspectValues(URI aspectId)
aspectId - The ID of the aspect.
int getAspectValueCount(URI aspectId)
aspectId - The ID of the aspect.
boolean isPopulated(URI aspectId)
aspectId - The ID of the aspect.
boolean isSingular(URI aspectId)
aspectId - The ID of the aspect.
Collection<AspectValue> getAspectValues(Fact fact)
throws XBRLException
fact - The fact.
XBRLException
AspectValue getAspectValue(URI aspectId,
Fact fact)
throws XBRLException
aspectId - the ID of the aspect to get the aspect value for.fact - The fact.
XBRLExceptionSet<Fact> getFacts(AspectValue value)
value - The aspect value.
Set<Fact> getFacts(Collection<AspectValue> values)
values - The collection of aspect values that the
returned facts must have.
long getSize()
AspectModel getAspectModel()
List<Fact> getRootFacts(URI aspectId)
throws XBRLException
aspectId - The ID of the aspect of interest.
XBRLException
Collection<Aspect> getPopulatedAspects()
throws XBRLException
XBRLException
String getAspectValueLabel(AspectValue value,
String locale,
URI resourceRole,
URI linkRole)
throws XBRLException
value - The aspect valuelocale - The label localeresourceRole - The label XLink resource rolelinkRole - The label link role
XBRLException - if the aspect is not in the aspect model.void emptyLocalLabelCache()
String getAspectValueLabel(AspectValue value,
List<String> locales,
List<URI> resourceRoles,
List<URI> linkRoles)
throws XBRLException
value - The aspect valuelocales - The list of label locales from first, most preferred to last,
least preferred. The list can include nulls or it can be null.resourceRoles - The list of label XLink resource roles from first, most
preferred to last, least preferred. The list can include nulls
or it can be null.linkRoles - The label link role from first, most preferred to last, least
preferred. The list can include nulls or it can be null.
XBRLException - if the aspect is not in the aspect model.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||