|
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.NetworkImpl
public class NetworkImpl
| Constructor Summary | |
|---|---|
NetworkImpl(Store store,
URI linkRole,
URI arcrole)
|
|
| Method Summary | ||
|---|---|---|
void |
add(Network network)
Adds relationships from the supplied network to this network where they are not already included. |
|
void |
addRelationship(Relationship relationship)
Adds the relationship to the network. |
|
void |
addRelationships(Collection<Relationship> relationships)
Adds the set of relationships to the network. |
|
void |
complete()
Complete the network, finding all active relationships in the data store that participate in the network. |
|
boolean |
contains(String index)
|
|
boolean |
equals(Object obj)
|
|
Fragment |
get(String index)
|
|
SortedSet<Relationship> |
getActiveRelationshipsFrom(String index)
|
|
SortedSet<Relationship> |
getActiveRelationshipsTo(String index)
|
|
List<Relationship> |
getAllActiveRelationships()
|
|
List<Relationship> |
getAllRelationships()
|
|
URI |
getArcrole()
|
|
|
getChildren(String index)
|
|
URI |
getLinkRole()
|
|
int |
getNumberOfActiveRelationships()
|
|
int |
getNumberOfRelationships()
|
|
|
getParents(String index)
Note that a fragment can have more than one parent fragment given that the networks are not just trees. |
|
Set<String> |
getRootFragmentIndices()
|
|
|
getRootFragments()
|
|
HashMap<String,HashMap<String,EquivalentRelationships>> |
getSourceRelationships()
|
|
Store |
getStore()
|
|
HashMap<String,HashMap<String,EquivalentRelationships>> |
getTargetRelationships()
|
|
boolean |
hasActiveRelationshipsFrom(String index)
|
|
boolean |
hasActiveRelationshipsTo(String index)
|
|
boolean |
hasFragment(String index)
|
|
int |
hashCode()
|
|
boolean |
hasSingleParent(String index)
|
|
boolean |
isLeaf(String index)
|
|
boolean |
isRoot(String index)
|
|
void |
setArcrole(URI arcrole)
|
|
void |
setLinkRole(URI linkRole)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetworkImpl(Store store,
URI linkRole,
URI arcrole)
throws XBRLException
store - The data store.linkRole - The link role defining the network.arcrole - The arc role defining the network.
XBRLException - if the data store is null.| Method Detail |
|---|
public URI getArcrole()
getArcrole in interface NetworkNetwork.getArcrole()
public void setArcrole(URI arcrole)
throws XBRLException
setArcrole in interface Networkarcrole - the arc role to set.
XBRLException - if the arc role is null.Network.setArcrole(URI)public URI getLinkRole()
getLinkRole in interface NetworkNetwork.getLinkRole()
public void setLinkRole(URI linkRole)
throws XBRLException
setLinkRole in interface NetworklinkRole - the linkRole to set.
XBRLException - if the link role is null.Network.setLinkRole(URI)
public boolean hasFragment(String index)
throws XBRLException
hasFragment in interface Networkindex - The index of the fragment to check.
XBRLExceptionNetwork.hasFragment(String)
public Fragment get(String index)
throws XBRLException
get in interface Networkindex - The index of the fragment to get from the set
of fragments already participating in the network.
XBRLExceptionNetwork.get(String)public <F extends Fragment> List<F> getRootFragments()
getRootFragments in interface NetworkF - The type of fragment to use for the fragments in the list.
Network.getRootFragments()public Set<String> getRootFragmentIndices()
getRootFragmentIndices in interface NetworkNetwork.getRootFragmentIndices()public Store getStore()
getStore in interface NetworkNetwork.getStore()
public void addRelationship(Relationship relationship)
throws XBRLException
Network
addRelationship in interface Networkrelationship - The relationship to add.
XBRLExceptionNetwork.addRelationship(Relationship)
public void addRelationships(Collection<Relationship> relationships)
throws XBRLException
Network
addRelationships in interface Networkrelationships - The relationship to add.
XBRLExceptionNetwork.addRelationships(Collection)
public SortedSet<Relationship> getActiveRelationshipsFrom(String index)
throws XBRLException
getActiveRelationshipsFrom in interface Networkindex - The index of the source fragment.
XBRLExceptionNetwork.getActiveRelationshipsFrom(String)
public boolean hasSingleParent(String index)
throws XBRLException
hasSingleParent in interface Networkindex - the index of the fragment.
XBRLExceptionNetwork.hasSingleParent(String)
public boolean isRoot(String index)
throws XBRLException
isRoot in interface Networkindex - the index of the fragment.
XBRLExceptionNetwork.isRoot(String)
public boolean isLeaf(String index)
throws XBRLException
isLeaf in interface Networkindex - the index of the fragment.
XBRLExceptionNetwork.isLeaf(String)public boolean hasActiveRelationshipsFrom(String index)
hasActiveRelationshipsFrom in interface Networkindex - The index of the fragment to check.
Network.hasActiveRelationshipsFrom(String)public boolean hasActiveRelationshipsTo(String index)
hasActiveRelationshipsTo in interface Networkindex - The index of the fragment to check.
Network.hasActiveRelationshipsTo(String)
public SortedSet<Relationship> getActiveRelationshipsTo(String index)
throws XBRLException
getActiveRelationshipsTo in interface Networkindex - The index of the target fragment.
XBRLExceptionNetwork.getActiveRelationshipsTo(String)
public <F extends Fragment> List<F> getChildren(String index)
throws XBRLException
getChildren in interface NetworkF - The type of org.xbrlapi.Fragmentindex - The parent fragment index
XBRLExceptionNetwork.getChildren(String)
public <F extends Fragment> List<F> getParents(String index)
throws XBRLException
Network
getParents in interface NetworkF - The type of org.xbrlapi.Fragmentindex - The child fragment index
XBRLExceptionNetwork.getParents(String)public int getNumberOfRelationships()
getNumberOfRelationships in interface NetworkNetwork.getNumberOfRelationships()public int getNumberOfActiveRelationships()
getNumberOfActiveRelationships in interface NetworkNetwork.getNumberOfActiveRelationships()
public void complete()
throws XBRLException
Network
complete in interface NetworkXBRLExceptionNetwork.complete()public boolean contains(String index)
contains in interface Networkindex - The index of the fragment to check for in the
network.
Network.contains(String)
public List<Relationship> getAllRelationships()
throws XBRLException
getAllRelationships in interface NetworkXBRLExceptionNetwork.getAllRelationships()
public List<Relationship> getAllActiveRelationships()
throws XBRLException
getAllActiveRelationships in interface NetworkXBRLExceptionNetwork.getAllActiveRelationships()
public void add(Network network)
throws XBRLException
Network
add in interface Networknetwork - The network to be merged into this
network.
XBRLExceptionNetwork.add(Network)public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public HashMap<String,HashMap<String,EquivalentRelationships>> getSourceRelationships()
public HashMap<String,HashMap<String,EquivalentRelationships>> getTargetRelationships()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||