|
XBRLAPIA Java API for XBRL |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Store
The data store interface, defining all methods that need to be implemented by a data store to support the XBRLAPI. The store constructor needs to initialise the data structure. For example, the constructor would be required to establish a database connection if an XML database is being used to handle the underlying data. Alternatively, the constructor would establish an XML DOM document if an XML DOM were being used as the underlying data structure. Similarly, initialisation steps would be taken if XML data binding to Java objects were being used to handle the underlying data.
| Method Summary | ||
|---|---|---|
void |
augmentNetworkForFragment(Fragment fragment,
Network network)
This method is recursive. |
|
void |
augmentNetworksForFragment(Fragment fragment,
URI arcrole,
Networks networks)
This method is recursive. |
|
void |
clearFilteringURIs()
Specify that the data store is not to filter query results to only come from a specified set of URIs. |
|
void |
close()
Close the data store. |
|
void |
delete()
Close and then delete the data store. |
|
void |
deleteDocument(URI uri)
This deletion method does not ensure that all other documents that link to the document being deleted are also deleted. |
|
void |
deleteRelatedDocuments(URI uri)
This deletion method ensures that all related documents are also deleted from the data store. |
|
Set<String> |
getAllFactIndices()
|
|
List<Fact> |
getAllFacts()
|
|
List<Fact> |
getAllFacts(URI uri)
|
|
Analyser |
getAnalyser()
|
|
Set<String> |
getArcIndices(String linkIndex)
|
|
Set<String> |
getArcIndices(URI arcrole)
|
|
Set<URI> |
getArcroles()
|
|
Set<URI> |
getArcroles(URI linkRole)
|
|
List<ArcroleType> |
getArcroleTypes()
|
|
List<ArcroleType> |
getArcroleTypes(URI uri)
|
|
List<Arc> |
getArcs(String linkIndex)
|
|
List<Arc> |
getArcs(URI arcrole,
String linkIndex)
|
|
|
getChildFragments(Class<?> childClass,
String parentIndex)
|
|
|
getChildFragments(String interfaceName,
String parentIndex)
Deprecated. |
|
Document |
getCompositeDocument()
Get all data in the store as a single XML DOM object including the annotations used in the XBRLComposer project. |
|
Concept |
getConcept(URI namespace,
String name)
|
|
Element |
getDocumentAsDOM(URI uri)
Get a single document in the store as a DOM. |
|
List<URI> |
getDocumentsToDiscover()
|
|
Set<URI> |
getDocumentURIs()
Get a list of the URIs that have been stored. |
|
Set<String> |
getExtendedLinkIndices(URI linkRole)
|
|
List<ExtendedLink> |
getExtendedLinks(URI linkrole)
|
|
Set<String> |
getFactIndices()
|
|
List<Fact> |
getFacts()
|
|
List<Fact> |
getFacts(Concept concept)
|
|
List<Fact> |
getFacts(URI uri)
|
|
List<Fact> |
getFacts(URI namespace,
String localname)
|
|
Set<URI> |
getFilteringURIs()
|
|
Set<String> |
getFragmentIndices(String interfaceName)
|
|
Set<String> |
getFragmentIndicesFromDocument(URI uri)
|
|
Set<String> |
getFragmentIndicesFromDocument(URI uri,
String interfaceName)
|
|
|
getFragmentsFromDocument(URI uri,
Class<?> fragmentClass)
|
|
|
getFragmentsFromDocument(URI uri,
String interfaceName)
Utility method to return a list of fragments in a data store that have a type corresponding to the specified fragment interface name and that are in the document with the specified URI. |
|
|
getGlobalDeclaration(URI namespace,
String name)
|
|
String |
getId(String input)
|
|
List<Item> |
getItems()
|
|
List<Item> |
getItems(URI uri)
|
|
List<LabelResource> |
getLabels(String fragment)
Implemented by getLabels(String,URI,URI,String). |
|
List<LabelResource> |
getLabels(String fragment,
String language)
Implemented by getLabels(String,URI,URI,String). |
|
List<LabelResource> |
getLabels(String fragment,
URI resourceRole)
Implemented by getLabels(String,URI,URI,String). |
|
List<LabelResource> |
getLabels(String fragment,
URI resourceRole,
String language)
Implemented by getLabels(String,URI,URI,String). |
|
List<LabelResource> |
getLabels(String fragment,
URI linkRole,
URI resourceRole,
String language)
If using persisted relationships then the set of relationships used to generate the results can be modified by appropriate choice of |
|
Language |
getLanguage(String encoding,
String code)
|
|
Map<String,Language> |
getLanguageMap(String code)
|
|
List<Language> |
getLanguages(String code)
|
|
Set<URI> |
getLinkRoles()
|
|
Set<URI> |
getLinkRoles(URI arcrole)
|
|
Matcher |
getMatcher()
|
|
Network |
getMinimalNetwork(Set<Fragment> fragments,
URI linkRole,
URI arcrole)
|
|
Networks |
getMinimalNetworksWithArcrole(Fragment fragment,
URI arcrole)
Convenience method for a single fragment. |
|
Networks |
getMinimalNetworksWithArcrole(Set<Fragment> fragments,
URI arcrole)
Get the networks that, at a minimum, contain the relationships from each of the given fragments working back through ancestor relationships as far as possible. |
|
Set<URI> |
getMinimumDocumentSet(Collection<URI> starters)
|
|
Set<URI> |
getMinimumDocumentSet(URI uri)
This is just a convenience method. |
|
Set<URI> |
getMissingDocumentURIs()
|
|
|
getNetworkRoots(URI linkRole,
URI arcrole)
This implementation is not as strict as the XBRL 2.1 specification requires but it is generally faster and delivers sensible results. |
|
Networks |
getNetworks()
Note that this can massively overload resources if the data store is large because much of the information in the store will be reflected in -in-memory objects. |
|
Networks |
getNetworks(URI arcrole)
|
|
Networks |
getNetworks(URI linkRole,
URI arcrole)
|
|
Networks |
getNetworksFrom(String sourceIndex)
Implemented by getNetworksFrom(String,URI,URI). |
|
Networks |
getNetworksFrom(String sourceIndex,
URI arcrole)
Implemented by getNetworksFrom(String,URI,URI). |
|
Networks |
getNetworksFrom(String sourceIndex,
URI linkRole,
URI arcrole)
|
|
Networks |
getNetworksTo(String targetIndex)
Implemented by getNetworksTo(String,URI,URI). |
|
Networks |
getNetworksTo(String targetIndex,
URI arcrole)
Implemented by getNetworksTo(String,URI,URI). |
|
Networks |
getNetworksTo(String targetIndex,
URI linkRole,
URI arcrole)
If using persisted relationships then the set of relationships used to generate the results can be modified by appropriate choice of |
|
long |
getNumberOfXMLResources(Class<?> specifiedClass)
|
|
Set<URI> |
getReferencedDocuments(URI uri)
Override this method in a data store implementation if the data store implementation supports XQuery (rather than XPath). |
|
List<ReferenceResource> |
getReferences(String fragment)
Implemented by getReferences(String,URI,URI,String). |
|
List<ReferenceResource> |
getReferences(String fragment,
String language)
Implemented by getReferences(String,URI,URI,String). |
|
List<ReferenceResource> |
getReferences(String fragment,
URI resourceRole)
Implemented by getReferences(String,URI,URI,String). |
|
List<ReferenceResource> |
getReferences(String fragment,
URI resourceRole,
String language)
Implemented by getReferences(String,URI,URI,String). |
|
List<ReferenceResource> |
getReferences(String fragment,
URI linkRole,
URI resourceRole,
String language)
If using persisted relationships then the set of relationships used to generate the results can be modified by appropriate choice of |
|
List<URI> |
getReferencingDocuments(URI uri)
|
|
List<Fragment> |
getReferencingFragments(URI uri)
|
|
SortedSet<Relationship> |
getRelationshipsFrom(String sourceIndex,
URI linkRole,
URI arcrole)
If using persisted relationships then the set of relationships used to generate the results can be modified by appropriate choice of |
|
SortedSet<Relationship> |
getRelationshipsTo(String targetIndex,
URI linkRole,
URI arcrole)
|
|
List<URI> |
getResourceRoles()
|
|
List<RoleType> |
getRoleTypes()
|
|
List<RoleType> |
getRoleTypes(URI uri)
|
|
|
getRootFragmentForDocument(URI uri)
|
|
Set<String> |
getRootFragmentIndices(String interfaceName)
|
|
|
getRootFragments()
|
|
|
getRootFragments(String type)
|
|
Schema |
getSchema(URI targetNamespace)
|
|
|
getSchemaContent(URI namespace,
String name)
|
|
int |
getSize()
|
|
Set<String> |
getSourceIndices(String targetIndex,
URI linkRole,
URI arcrole)
|
|
|
getSources(String targetIndex,
URI linkRole,
URI arcrole)
|
|
Document |
getStoreAsDOM()
Get all data in the store as a single XML DOM object. |
|
List<Stub> |
getStubs()
|
|
List<Stub> |
getStubs(URI uri)
|
|
Element |
getSubtree(Fragment f)
Returns the root element of the subtree starting with the fragment with the specified index. |
|
|
getTargets(String sourceIndex,
URI linkRole,
URI arcrole)
|
|
List<Tuple> |
getTuples()
|
|
List<Tuple> |
getTuples(URI uri)
|
|
|
getXMLResource(String index)
Retrieves an XML Resource from a data store. |
|
|
getXMLResources(Class<?> specifiedClass)
Return a list of XML resources in a data store that have a type corresponding to the specified XML resource interface name. |
|
|
getXMLResources(String interfaceName)
Return a list of XML resources in a data store that have a type corresponding to the specified XML resource interface name. |
|
boolean |
hasAllRelationships(URI document)
|
|
boolean |
hasDocument(URI uri)
Test if a particular URI is already in the data store. |
|
boolean |
hasXMLResource(String index)
Test if a store contains a specific fragment, as identified by its index. |
|
boolean |
isFilteringByURIs()
|
|
boolean |
isLoading()
|
|
boolean |
isPersistingRelationships()
|
|
void |
persist(XML xml)
Store a fragment. |
|
void |
persistLoaderState(Map<URI,String> documents)
Stores the state of the document discovery process. |
|
void |
persistStub(URI document,
String reason)
|
|
long |
queryCount(String query)
This method must be synchronised |
|
Set<String> |
queryForIndices(String query)
Run a query against the collection of all fragments in the store. |
|
String |
queryForString(String query)
Run a query that is required to return a single string. |
|
Set<String> |
queryForStrings(String query)
Run a query that is required to return a sequence of strings. |
|
|
queryForXMLResources(String query)
Run a query against the collection of all fragments in the store. |
|
void |
recindLoadingRightsFor(Loader loader,
URI document)
Loaders need to call this method to indicate that they are recinding responsibility for loading the document. |
|
void |
remove(String index)
Remove a fragment from the underlying data structure. |
|
void |
remove(XML xml)
Remove a XML resource from the underlying data structure. |
|
void |
removeStub(Stub stub)
|
|
boolean |
requestLoadingRightsFor(Loader loader,
URI document)
Loaders need to call this method to indicate that they are going to take responsibility for loading the document. |
|
void |
saveDocuments(File destination)
Serializes the individual documents in the data store, saving them into a directory structure that is placed into the specified directory. |
|
void |
saveDocuments(File destination,
String uriPrefix)
Serializes those documents in the data store with a URI that begins with the specified URI prefix. |
|
void |
saveStoreAsSingleDocument(File file)
Creates a single DOM structure from all documents in the data store and saves this single XML structure in the specified file. |
|
String |
serialize(Element what)
Serialize the specified XML DOM node. |
|
void |
serialize(Element what,
File destination)
Serialize the specified XML DOM to the specified destination. |
|
void |
serialize(Element what,
OutputStream destination)
Serialize the specified XML DOM to the specified destination. |
|
void |
setAnalyser(Analyser analyser)
|
|
void |
setFilteringURIs(Set<URI> uris)
|
|
void |
setMatcher(Matcher matcher)
Sets the matcher for the store to use. |
|
void |
setNamespaceBinding(URI namespace,
String prefix)
|
|
void |
startLoading(Loader loader)
|
|
void |
stopLoading(Loader loader)
|
|
void |
sync()
Flush all database updates to the data store. |
|
| Method Detail |
|---|
void close()
throws XBRLException
XBRLException
void persist(XML xml)
throws XBRLException
xml - The fragment to be added to the store.
XBRLException - if the fragment cannot be added to the store.
boolean hasXMLResource(String index)
throws XBRLException
index - The index of the fragment to test for.
XBRLException - If the test cannot be conducted.
<F extends XML> F getXMLResource(String index)
throws XBRLException
index - The index of the XML resource.
XBRLException - if the XML resource cannot be retrieved.
void remove(String index)
throws XBRLException
index - The index of the fragment to be removed from the DTS store.
XBRLException - if the fragment cannot be removed from the store.
void remove(XML xml)
throws XBRLException
xml - The XML resource to remove.
XBRLException - if the XML resource cannot be removed from the store.
void setNamespaceBinding(URI namespace,
String prefix)
throws XBRLException
namespace - The namespace to bind a prefix to for queryingprefix - The prefix to bind to the namespace for querying
XBRLException - if either argument is null.
void deleteDocument(URI uri)
throws XBRLException
uri - The URI of the document to delete from the data store.
XBRLException
void deleteRelatedDocuments(URI uri)
throws XBRLException
uri - The URI of the document to delete.
XBRLException
<F extends XML> List<F> queryForXMLResources(String query)
throws XBRLException
query - The XQuery query to run against the set of fragments.
Any occurrences of the string #roots# in a query will be deemed to
be a marker for the root elements of the fragments in an XML database collection
and it will be substituted with the necessary
expression to identify those roots in the data store.
XBRLException - if the query cannot be executed.
Set<String> queryForIndices(String query)
throws XBRLException
query - The XQuery query to run against the set of fragments.
Any occurrences of the string #roots# in a query will be deemed to
be a marker for the root elements of the fragments in an XML database collection
and it will be substituted with the necessary
expression to identify those roots in the data store.
The query MUST return a sequence of XML resource metadata root elements
matching the query. Otherwise, results from the query will be unpredictable.
XBRLException - if the query cannot be executed.
long queryCount(String query)
throws XBRLException
query - The XQuery to run.
Any occurrences of the string #roots# in a query will be deemed to
be a marker for the root elements of the fragments in an XML database collection
and it will be substituted with the necessary
expression to identify those roots in the data store.
XBRLException - if the query cannot be executed.
Set<String> queryForStrings(String query)
throws XBRLException
query - The XQuery query to run against the set of fragments.
Any occurrences of the string #roots# in a query will be deemed to
be a marker for the root elements of the fragments in an XML database collection
and it will be substituted with the necessary
expression to identify those roots in the data store.
XBRLException - if the query cannot be executed or if the
query results are not strings.
String queryForString(String query)
throws XBRLException
query - The XQuery query to run against the set of fragments.
Any occurrences of the string #roots# in a query will be deemed to
be a marker for the root elements of the fragments in an XML database collection
and it will be substituted with the necessary
expression to identify those roots in the data store.
XBRLException - if the query cannot be executed or if the
query result is not a single string.
void serialize(Element what,
OutputStream destination)
throws XBRLException
what - the root element of the DOM to be serialised.destination - The destination output stream to be serialised to.
XBRLException - if the DOM cannot be serialised
because the destination cannot be written to or some other
different problem occurs during serialisation.
void serialize(Element what,
File destination)
throws XBRLException
what - the root element of the DOM to be serialised.destination - The destination file to be serialised to.
XBRLException - if the DOM cannot be serialised
because the destination cannot be written to or some other
different problem occurs during serialisation.
String serialize(Element what)
throws XBRLException
what - the root element of the DOM to be serialised.
XBRLException
Element getDocumentAsDOM(URI uri)
throws XBRLException
uri - The URI of the document to be retrieved.
XBRLException - if the document cannot be constructed as a DOM.
void saveDocuments(File destination)
throws XBRLException
destination - The folder in which the directory structure and
the documents in the data store are to be saved.
XBRLException - If the root folder does not exist or
is not a directory or if the documents in the store cannot
be saved to the local file system.
void saveDocuments(File destination,
String uriPrefix)
throws XBRLException
destination - The folder in which the directory structure and
the documents in the data store are to be saved.uriPrefix - All documents in the data store with a URI that begins
with the string specified by uriPrefix will be saved to the local
file system.
XBRLException - If the root folder does not exist or
is not a directory or if the documents in the store cannot
be saved to the local file system.
void saveStoreAsSingleDocument(File file)
throws XBRLException
file - The file to save the Store content to.
XBRLException - if the documents in the store cannot be
saved to the single file.
Element getSubtree(Fragment f)
throws XBRLException
f - The fragment at the root of the subtree.
XBRLException - if the subtree cannot be constructed.
Document getStoreAsDOM()
throws XBRLException
XBRLException - if the DOM cannot be constructed.
Document getCompositeDocument()
throws XBRLException
XBRLException - if the composed data store cannot be constructed.
Set<URI> getDocumentURIs()
throws XBRLException
XBRLException - if the list cannot be constructed.
boolean hasDocument(URI uri)
throws XBRLException
uri - the string representation of the URI to be tested for.
XBRLException.
XBRLException
void persistLoaderState(Map<URI,String> documents)
throws XBRLException
documents - The map from URIs of the documents
remaining to be discovered to the textual reason why
the document has not yet been discovered.
XBRLException
int getSize()
throws XBRLException
XBRLException - if the number of fragments cannot be determined.
List<URI> getDocumentsToDiscover()
throws XBRLException
XBRLException - if any of the document URIs are malformed.
List<Stub> getStubs()
throws XBRLException
XBRLException
List<Stub> getStubs(URI uri)
throws XBRLException
uri - The string value of the URI of the document to get the stub for.
XBRLException
void persistStub(URI document,
String reason)
throws XBRLException
document - The document to store a stub for.reason - The reason the document has not been stored.
XBRLException
void removeStub(Stub stub)
throws XBRLException
stub - The stub to be removed from the data store.
XBRLException
<F extends XML> List<F> getXMLResources(String interfaceName)
throws XBRLException
interfaceName - The name of the interface. EG: If a list of
org.xbrlapi.impl.ReferenceArcImpl fragments is required then
this parameter would have a value of "ReferenceArc".
Note that if the parameter contains full stops, then it is used directly
as the value for the fragment type, enabling fragment extensions to exploit this
method without placing fragment implementations in the org.xbrlapi package.
XBRLException
<F extends XML> List<F> getXMLResources(Class<?> specifiedClass)
throws XBRLException
specifiedClass - The class of XML resources to retrieve.
XBRLException
long getNumberOfXMLResources(Class<?> specifiedClass)
throws XBRLException
specifiedClass - The class of XML resource to count.
XBRLException
<F extends Fragment> List<F> getChildFragments(String interfaceName,
String parentIndex)
throws XBRLException
interfaceName - The name of the interface. EG: If a list of
org.xbrlapi.impl.ReferenceArcImpl fragments is required then
this parameter would have a value of "ReferenceArc".
Note that this method does not yet recognise fragment subtypes so
a request for an Arc would not return all ReferenceArcs as well as other
types of arcs.parentIndex - The index of the parent fragment.
XBRLException
Networks getNetworks(URI linkRole,
URI arcrole)
throws XBRLException
linkRole - The linkrole of the networks.arcrole - The arcrole of the networks.
XBRLException
Networks getNetworks(URI arcrole)
throws XBRLException
arcrole - The XLink arcrole value.
XBRLException
Networks getNetworks()
throws XBRLException
XBRLException
<F extends Fragment> List<F> getTargets(String sourceIndex,
URI linkRole,
URI arcrole)
throws XBRLException
F - The type of fragment.sourceIndex - The index of the source fragment.linkRole - The XLink link role.arcrole - The XLink arcrole.
XBRLException
<F extends Fragment> List<F> getSources(String targetIndex,
URI linkRole,
URI arcrole)
throws XBRLException
F - The type of fragment.targetIndex - The index of the target fragment.linkRole - The XLink link role.arcrole - The XLink arcrole.
XBRLException
Set<String> getSourceIndices(String targetIndex,
URI linkRole,
URI arcrole)
throws XBRLException
targetIndex - The index of the target fragment.linkRole - The XLink link role.arcrole - The XLink arcrole.
XBRLExceptionvoid setAnalyser(Analyser analyser)
analyser - The persisted network analyser
to use for network analysis when building the
aspect model. Set to null if you do not want to
build the aspect model using persisted network information.Analyser getAnalyser()
boolean isPersistingRelationships()
Analyser
<F extends Fragment> List<F> getFragmentsFromDocument(URI uri,
String interfaceName)
throws XBRLException
uri - The URI of the document to get the fragments from.interfaceName - The name of the interface. EG: If a list of
fragments is required then
this parameter would have a value of "ReferenceArc".
Note that this method does not yet recognise fragment subtypes so
a request for an Arc would not return all ReferenceArcs as well as other
types of arcs.
XBRLException
<F extends Fragment> List<F> getFragmentsFromDocument(URI uri,
Class<?> fragmentClass)
throws XBRLException
uri - The URI of the document to get the fragments from.fragmentClass - The class of fragment being sought.
XBRLExceptiongetFragmentsFromDocument(URI, String)
Set<String> getFragmentIndices(String interfaceName)
throws XBRLException
interfaceName - The name of the interface. EG: If a list of
Concept fragments is required then this parameter would have a value of "Concept".
Note that this method does not yet recognise fragment subtypes so
a request for an ElementDeclaration would not return all concepts as well as
other XML Schema element declarations.
XBRLException
Set<String> getRootFragmentIndices(String interfaceName)
throws XBRLException
interfaceName - The name of the interface. EG: If a list of
Concept fragments is required then this parameter would have a value of "Concept".
Note that this method does not yet recognise fragment subtypes so
a request for an ElementDeclaration would not return all concepts as well as
other XML Schema element declarations.
XBRLException
Set<String> getFragmentIndicesFromDocument(URI uri,
String interfaceName)
throws XBRLException
uri - The URI of the document to get the fragments from.interfaceName - The name of the interface. EG: If a list of
concept fragments is required then
this parameter would have a value of "Concept".
Note that this method does not yet recognise fragment subtypes so
a request for an ElementDeclaration would not return all concepts as well as
other XML Schema element declarations.
XBRLException
Set<String> getFragmentIndicesFromDocument(URI uri)
throws XBRLException
uri - The URI of the document to get the fragments from.
XBRLException
<F extends Fragment> F getRootFragmentForDocument(URI uri)
throws XBRLException
F - The fragment extension classuri - The URI of the document to get the root fragment for.
XBRLException - if more than one root fragment is found in the data store.
<F extends Fragment> List<F> getRootFragments()
throws XBRLException
F - The fragment extension class
XBRLException - if more than one root fragment is found in the data store.
<F extends Fragment> List<F> getRootFragments(String type)
throws XBRLException
F - The fragment extension classtype - The type of fragment to select by.
getXMLResources(String) gives details on how the type
parameter is to be used.
XBRLException
void delete()
throws XBRLException
XBRLException - if the data store cannot be deleted.
String getId(String input)
throws XBRLException
input - The string that may be used to generate the id.
XBRLException
Language getLanguage(String encoding,
String code)
throws XBRLException
encoding - The code identifying the language that the name of the
language is expressed in.code - The code that identifies the language being named.
XBRLException - if either parameter equals null.
List<Language> getLanguages(String code)
throws XBRLException
code - The language code to get the language fragments for. The code
is converted to upper case before processing.
XBRLException - if the language code is null.
Map<String,Language> getLanguageMap(String code)
throws XBRLException
code - The language code to get a map of language fragments for.
XBRLException
void setMatcher(Matcher matcher)
throws XBRLException
matcher - the matcher to use to identify identical resources.
XBRLException - if the matcher is null;Matcher getMatcher()
List<URI> getReferencingDocuments(URI uri)
throws XBRLException
uri - The URI of the referenced document.
XBRLException - if the list of referencing documents cannot be populated.
List<Fragment> getReferencingFragments(URI uri)
throws XBRLException
uri - The URI of the referenced document.
XBRLException.
XBRLException
Set<URI> getReferencedDocuments(URI uri)
throws XBRLException
uri - The URI of the referencing document.
XBRLException - if the set of referenced documents cannot be populated.void setFilteringURIs(Set<URI> uris)
uris - The set of URIs to restrict query results to coming from.
The set of URIs is set to the empty set if this parameter is null.Set<URI> getFilteringURIs()
void clearFilteringURIs()
boolean isFilteringByURIs()
void sync()
throws XBRLException
XBRLException - if the sync operation fails.
List<Fact> getFacts()
throws XBRLException
XBRLExceptiongetFacts(),
getAllFacts()
Set<String> getFactIndices()
throws XBRLException
XBRLException
Set<String> getAllFactIndices()
throws XBRLException
XBRLException
List<Item> getItems()
throws XBRLException
XBRLException
List<Tuple> getTuples()
throws XBRLException
XBRLException
Schema getSchema(URI targetNamespace)
throws XBRLException
targetNamespace - The target namespace of the schema.
XBRLException - if there is more than one schema with the
given target namespace or if the target namespace is null.
List<Fact> getFacts(URI uri)
throws XBRLException
uri - The URI of the document to get the facts from.
XBRLException
List<Fact> getAllFacts(URI uri)
throws XBRLException
uri - The URI of the document to get the facts from.
XBRLException
List<Fact> getAllFacts()
throws XBRLException
XBRLException
List<Item> getItems(URI uri)
throws XBRLException
uri - The URI of the document to get the items from.
XBRLException
List<Tuple> getTuples(URI uri)
throws XBRLException
uri - The URI of the document to get the facts from.
XBRLException
<F extends Fragment> Set<F> getNetworkRoots(URI linkRole,
URI arcrole)
throws XBRLException
linkRole - the role on the extended links that contain the network arcs.arcrole - the arcrole on the arcs describing the network.
XBRLException
Concept getConcept(URI namespace,
String name)
throws XBRLException
namespace - The namespace for the concept.name - The local name for the concept.
XBRLException - if more than one matching concept is found in the data store
or if no matching concepts are found in the data store.
<D extends SchemaDeclaration> D getGlobalDeclaration(URI namespace,
String name)
throws XBRLException
namespace - The target namespace for the schema containing the global declaration.name - The local name for the global declaration.
XBRLException - if more than one matching declaration is found in the data store
or if no matching declarations are found in the data store.
List<ArcroleType> getArcroleTypes()
throws XBRLException
XBRLException
List<ArcroleType> getArcroleTypes(URI uri)
throws XBRLException
XBRLException
List<RoleType> getRoleTypes()
throws XBRLException
XBRLException
List<RoleType> getRoleTypes(URI uri)
throws XBRLException
XBRLException
List<URI> getResourceRoles()
throws XBRLException
XBRLException
Set<URI> getMinimumDocumentSet(Collection<URI> starters)
throws XBRLException
starters - The collection of URIs of the documents to use as
starting points for analysis.
XBRLException - if some of the referenced documents are not in
the data store.
Set<URI> getMinimumDocumentSet(URI uri)
throws XBRLException
uri - The single document URI to use as
starting points for analysis.
XBRLException - if some of the referenced documents are not in
the data store.
List<ExtendedLink> getExtendedLinks(URI linkrole)
throws XBRLException
linkrole - The required linkrole value.
XBRLException
Set<String> getExtendedLinkIndices(URI linkRole)
throws XBRLException
linkRole - The link role to use to identify the extended links to retrieve.
XBRLException
List<Arc> getArcs(URI arcrole,
String linkIndex)
throws XBRLException
arcrole - The arcrole to use to identify the arcs to retrieve.linkIndex - The index of the extended link containing the arcs to retrieve.
XBRLException
XBRLException
Set<String> getArcIndices(String linkIndex)
throws XBRLException
linkIndex - The index of the extended link containing the arcs to retrieve.
XBRLException
Set<String> getArcIndices(URI arcrole)
throws XBRLException
arcrole - The arcrole to use to identify the arcs to retrieve.
XBRLException
List<Arc> getArcs(String linkIndex)
throws XBRLException
linkIndex - The index of the extended link containing the arcs to retrieve.
XBRLException
XBRLException
Networks getMinimalNetworksWithArcrole(Set<Fragment> fragments,
URI arcrole)
throws XBRLException
fragments - The fragments to analyse.arcrole - The required arcrole.
XBRLException
Networks getMinimalNetworksWithArcrole(Fragment fragment,
URI arcrole)
throws XBRLException
XBRLExceptiongetMinimalNetworksWithArcrole(Set,URI)
Network getMinimalNetwork(Set<Fragment> fragments,
URI linkRole,
URI arcrole)
throws XBRLException
fragments - The set of target node fragments in the network.linkRole - The network link role value.arcrole - The network arcrole value.
XBRLException
void augmentNetworkForFragment(Fragment fragment,
Network network)
throws XBRLException
fragment - The fragment to use as the target for the relationships to be added to the networks.network - The network that is to be augmented.
XBRLException
void augmentNetworksForFragment(Fragment fragment,
URI arcrole,
Networks networks)
throws XBRLException
fragment - The fragment to use as the target for the relationships to be added to the networks.arcrole - The arcrole for the networks to augment.networks - The networks to augment.
XBRLException
Set<URI> getArcroles()
throws XBRLException
XBRLException
Set<URI> getArcroles(URI linkRole)
throws XBRLException
linkRole - the specified linkrole to use in selecting arcroles.
XBRLException - if any of the arcroles is not a valid URI.
Set<URI> getLinkRoles()
throws XBRLException
XBRLException
Set<URI> getLinkRoles(URI arcrole)
throws XBRLException
arcrole - The arcrole determining the extended links that are to be examined for
linkroles that are used on links containing arcs with the required arcrole.
XBRLException
Networks getNetworksFrom(String sourceIndex,
URI arcrole)
throws XBRLException
getNetworksFrom(String,URI,URI).
sourceIndex - The source fragment indexarcrole - The XLink arcrole
XBRLException
Networks getNetworksFrom(String sourceIndex)
throws XBRLException
getNetworksFrom(String,URI,URI).
sourceIndex - The source fragment index
XBRLException
Networks getNetworksFrom(String sourceIndex,
URI linkRole,
URI arcrole)
throws XBRLException
sourceIndex - The source fragment indexlinkRole - The XLink link rolearcrole - The XLink arcrole
XBRLException
Networks getNetworksTo(String targetIndex,
URI linkRole,
URI arcrole)
throws XBRLException
targetIndex - The target fragment indexlinkRole - The XLink link role or null if networks for
all link roles are soughtarcrole - The XLink arcrole or null if networks for
all arcroles are sought
XBRLException
Networks getNetworksTo(String targetIndex,
URI arcrole)
throws XBRLException
getNetworksTo(String,URI,URI).
targetIndex - The target fragment indexarcrole - The XLink arcrole
XBRLException
Networks getNetworksTo(String targetIndex)
throws XBRLException
getNetworksTo(String,URI,URI).
targetIndex - The target fragment index
XBRLException
SortedSet<Relationship> getRelationshipsFrom(String sourceIndex,
URI linkRole,
URI arcrole)
throws XBRLException
sourceIndex - The source fragment indexlinkRole - The XLink link rolearcrole - The XLink arcrole
XBRLException
boolean hasAllRelationships(URI document)
throws XBRLException
document - The document URI.
XBRLException
SortedSet<Relationship> getRelationshipsTo(String targetIndex,
URI linkRole,
URI arcrole)
throws XBRLException
targetIndex - The target fragment indexlinkRole - The XLink link rolearcrole - The XLink arcrole
XBRLException
List<LabelResource> getLabels(String fragment,
URI linkRole,
URI resourceRole,
String language)
throws XBRLException
fragment - the index of the fragment that we are getting labels forlinkRole - The required link role or null if not used.resourceRole - The required resource role or null if not used.language - The required language code or null if not used.
XBRLException
List<LabelResource> getLabels(String fragment,
URI resourceRole,
String language)
throws XBRLException
getLabels(String,URI,URI,String).
fragment - the index of the fragment that we are getting labels forresourceRole - The required resource role or null if not used.language - The required language code or null if not used.
XBRLException
List<LabelResource> getLabels(String fragment,
String language)
throws XBRLException
getLabels(String,URI,URI,String).
fragment - the index of the fragment that we are getting labels forlanguage - The required language code or null if not used.
XBRLException
List<LabelResource> getLabels(String fragment)
throws XBRLException
getLabels(String,URI,URI,String).
fragment - the index of the fragment that we are getting labels for
XBRLException
List<LabelResource> getLabels(String fragment,
URI resourceRole)
throws XBRLException
getLabels(String,URI,URI,String).
fragment - the index of the fragment that we are getting labels forresourceRole - The required resource role or null if not used.
XBRLException
List<ReferenceResource> getReferences(String fragment,
URI linkRole,
URI resourceRole,
String language)
throws XBRLException
fragment - the index of the fragment that we are getting references forlinkRole - The required link role or null if not used.resourceRole - The required resource role or null if not used.language - The required language code or null if not used.
XBRLException
List<ReferenceResource> getReferences(String fragment,
URI resourceRole,
String language)
throws XBRLException
getReferences(String,URI,URI,String).
fragment - the index of the fragment that we are getting references forresourceRole - The required resource role or null if not used.language - The required language code or null if not used.
XBRLException
List<ReferenceResource> getReferences(String fragment,
String language)
throws XBRLException
getReferences(String,URI,URI,String).
fragment - the index of the fragment that we are getting references forlanguage - The required language code or null if not used.
XBRLException
List<ReferenceResource> getReferences(String fragment)
throws XBRLException
getReferences(String,URI,URI,String).
fragment - the index of the fragment that we are getting references for
XBRLException
List<ReferenceResource> getReferences(String fragment,
URI resourceRole)
throws XBRLException
getReferences(String,URI,URI,String).
fragment - the index of the fragment that we are getting references forresourceRole - The required resource role or null if not used.
XBRLException
Set<URI> getMissingDocumentURIs()
throws XBRLException
XBRLException
boolean requestLoadingRightsFor(Loader loader,
URI document)
throws XBRLException
loader - The loader claiming loading rights.document - The URI of the document that a loader is about
to start loading.
XBRLException
void recindLoadingRightsFor(Loader loader,
URI document)
loader - The loader recinding loading rights.document - The URI of the document whose loading rights are being recinded.void startLoading(Loader loader)
loader - The loader that has started to use
this store for data loading.void stopLoading(Loader loader)
loader - The loader that has stopped using
this store for data loading.boolean isLoading()
<F extends SchemaContent> F getSchemaContent(URI namespace,
String name)
throws XBRLException
namespace - The target namespace of the schema with the desired content.name - The name given to the schema component.
XBRLException
<F extends Fragment> List<F> getChildFragments(Class<?> childClass,
String parentIndex)
throws XBRLException
childClass - The class of child fragment.parentIndex - The index of the parent fragment.
XBRLException
List<Fact> getFacts(URI namespace,
String localname)
throws XBRLException
namespace - The namespace of the facts to select.localname - The local name of the facts to select.
XBRLException - if either parameter is null.
List<Fact> getFacts(Concept concept)
throws XBRLException
concept - The concept to get the facts for.
XBRLException - if the parameter is null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||