|
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.networks.NetworksImpl
public class NetworksImpl
| Constructor Summary | |
|---|---|
NetworksImpl(Store store)
|
|
| Method Summary | ||
|---|---|---|
void |
addAll(List<Network> networks)
Merges the specified list of networks into this set of networks. |
|
void |
addAll(Networks networks)
Merges the specified set of networks into this set of networks. |
|
void |
addNetwork(Network network)
If the collection of networks already has a network with the same role and arcrole, then the relationships from the added network are added into the existing network. |
|
void |
addRelationship(Relationship relationship)
|
|
void |
addRelationships(Collection<Relationship> relationships)
|
|
void |
addRelationships(URI arcrole)
Adds all relationships with the given arcrole to the set of networks. |
|
void |
complete()
Complete the networks, finding all active relationships in the data store that participate in the networks. |
|
boolean |
equals(Object obj)
|
|
List<Relationship> |
getActiveRelationships()
|
|
SortedSet<Relationship> |
getActiveRelationshipsFrom(String index)
|
|
SortedSet<Relationship> |
getActiveRelationshipsTo(String index)
|
|
List<URI> |
getArcroles()
|
|
List<URI> |
getLinkRoles(URI arcrole)
|
|
Network |
getNetwork(URI linkRole,
URI arcrole)
|
|
Networks |
getNetworks(URI arcrole)
|
|
int |
getSize()
|
|
|
getSources(String targetIndex,
URI arcrole)
|
|
|
getSources(String targetIndex,
URI linkRole,
URI arcrole)
|
|
Store |
getStore()
|
|
|
getTargets(String sourceIndex,
URI arcrole)
|
|
|
getTargets(String sourceIndex,
URI linkRole,
URI arcrole)
|
|
int |
hashCode()
|
|
boolean |
hasNetwork(URI linkRole,
URI arcrole)
|
|
Iterator<Network> |
iterator()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetworksImpl(Store store)
throws XBRLException
store - The data store containing the information defining the networks.
XBRLException - if the data store is null.| Method Detail |
|---|
public void addNetwork(Network network)
throws XBRLException
Networks
addNetwork in interface Networksnetwork - The network to add to the collection of networks.
XBRLExceptionNetworks.addNetwork(Network)
public Network getNetwork(URI linkRole,
URI arcrole)
throws XBRLException
getNetwork in interface NetworkslinkRole - The link role of the network to get.arcrole - The arc role of the network to get.
XBRLExceptionNetworks.getNetwork(URI, URI)
public Networks getNetworks(URI arcrole)
throws XBRLException
getNetworks in interface Networksarcrole - The arc role to get the networks for.
XBRLExceptionNetworks.getNetworks(URI)
public <F extends Fragment> List<F> getSources(String targetIndex,
URI arcrole)
throws XBRLException
getSources in interface NetworkstargetIndex - The index of the fragment that is the target for the sources
being retrievedarcrole - The arc role of the relationships to navigate from the given target
to the sources being retrieved.
XBRLExceptionNetworks.getSources(String, URI)
public <F extends Fragment> List<F> getSources(String targetIndex,
URI linkRole,
URI arcrole)
throws XBRLException
getSources in interface NetworkstargetIndex - The index of the fragment that is the target for the sources
being retrievedlinkRole - The arc role of the relationships to navigate from the given target
to the sources being retrieved.arcrole - The arc role of the relationships to navigate from the given target
to the sources being retrieved.
XBRLExceptionNetworks.getSources(String, URI, URI)
public <F extends Fragment> List<F> getTargets(String sourceIndex,
URI arcrole)
throws XBRLException
getTargets in interface NetworkssourceIndex - The index of the fragment that is the source for the targets
being retrievedarcrole - The arc role of the relationships to navigate from the given source
to the targets being retrieved.
XBRLExceptionNetworks.getTargets(String, URI)
public <F extends Fragment> List<F> getTargets(String sourceIndex,
URI linkRole,
URI arcrole)
throws XBRLException
getTargets in interface NetworkssourceIndex - The index of the fragment that is the source for the targets
being retrievedlinkRole - The arc role of the relationships to navigate from the given source
to the targets being retrieved.arcrole - The arc role of the relationships to navigate from the given source
to the targets being retrieved.
XBRLExceptionNetworks.getTargets(String, URI, URI)
public boolean hasNetwork(URI linkRole,
URI arcrole)
hasNetwork in interface NetworkslinkRole - The link role of the network to get.arcrole - The arc role of the network to get.
Networks.hasNetwork(URI, URI)
public void addRelationship(Relationship relationship)
throws XBRLException
addRelationship in interface Networksrelationship - The relationship to add to the collection of networks.
XBRLExceptionNetworks.addRelationship(Relationship)
public void addRelationships(URI arcrole)
throws XBRLException
Networks
addRelationships in interface Networksarcrole - The required arcrole.
XBRLExceptionNetworks.addRelationships(URI)
public int getSize()
throws XBRLException
getSize in interface NetworksXBRLExceptionNetworks.getSize()
public List<URI> getArcroles()
throws XBRLException
getArcroles in interface NetworksXBRLExceptionNetworks.getArcroles()
public List<URI> getLinkRoles(URI arcrole)
throws XBRLException
getLinkRoles in interface Networksarcrole - The arc role for which the link roles are required.
XBRLExceptionNetworks.getLinkRoles(URI)public Iterator<Network> iterator()
iterator in interface Iterable<Network>Iterable.iterator()public Store getStore()
getStore in interface NetworksNetworks.getStore()
public void addAll(Networks networks)
throws XBRLException
Networks
addAll in interface Networksnetworks - The networks to merge
into this collection of networks.
XBRLExceptionNetworks.addAll(Networks)
public void addAll(List<Network> networks)
throws XBRLException
Networks
addAll in interface Networksnetworks - The networks to merge
into this collection of networks.
XBRLExceptionNetworks.addAll(List)
public void complete()
throws XBRLException
Networks
complete in interface NetworksXBRLExceptionNetworks.complete()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)
public void addRelationships(Collection<Relationship> relationships)
throws XBRLException
addRelationships in interface Networksrelationships - THe list of relationships to add to the networks
XBRLExceptionNetworks.addRelationships(Collection)
public List<Relationship> getActiveRelationships()
throws XBRLException
getActiveRelationships in interface NetworksXBRLExceptionNetworks.getActiveRelationships()
public SortedSet<Relationship> getActiveRelationshipsFrom(String index)
throws XBRLException
getActiveRelationshipsFrom in interface Networksindex - The index of the source fragment.
XBRLExceptionNetworks.getActiveRelationshipsFrom(java.lang.String)
public SortedSet<Relationship> getActiveRelationshipsTo(String index)
throws XBRLException
getActiveRelationshipsTo in interface Networksindex - The index of the target fragment.
XBRLExceptionNetworks.getActiveRelationshipsTo(java.lang.String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||