|
XBRLAPIA Java API for XBRL |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Network
The network interface combines relationships that are not prohibited and that are not over-ridden and that:
| 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> relationship)
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)
|
|
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()
|
|
Store |
getStore()
|
|
boolean |
hasActiveRelationshipsFrom(String index)
|
|
boolean |
hasActiveRelationshipsTo(String index)
|
|
boolean |
hasFragment(String index)
|
|
boolean |
hasSingleParent(String index)
|
|
boolean |
isLeaf(String index)
|
|
boolean |
isRoot(String index)
|
|
void |
setArcrole(URI arcrole)
|
|
void |
setLinkRole(URI linkRole)
|
|
| Method Detail |
|---|
Store getStore()
URI getArcrole()
void setArcrole(URI arcrole)
throws XBRLException
arcrole - the arc role to set.
XBRLException - if the arc role is null.URI getLinkRole()
void setLinkRole(URI linkRole)
throws XBRLException
linkRole - the linkRole to set.
XBRLException - if the link role is null.
boolean hasFragment(String index)
throws XBRLException
index - The index of the fragment to check.
XBRLExceptionboolean hasActiveRelationshipsFrom(String index)
index - The index of the fragment to check.
boolean hasSingleParent(String index)
throws XBRLException
index - the index of the fragment.
XBRLException
boolean isRoot(String index)
throws XBRLException
index - the index of the fragment.
XBRLException
boolean isLeaf(String index)
throws XBRLException
index - the index of the fragment.
XBRLExceptionboolean hasActiveRelationshipsTo(String index)
index - The index of the fragment to check.
Fragment get(String index)
throws XBRLException
index - The index of the fragment to get from the set
of fragments already participating in the network.
XBRLException<F extends Fragment> List<F> getRootFragments()
F - The type of fragment to use for the fragments in the list.
Set<String> getRootFragmentIndices()
void addRelationship(Relationship relationship)
throws XBRLException
relationship - The relationship to add.
XBRLException
void addRelationships(Collection<Relationship> relationship)
throws XBRLException
relationship - The relationship to add.
XBRLException
SortedSet<Relationship> getActiveRelationshipsFrom(String index)
throws XBRLException
index - The index of the source fragment.
XBRLException
SortedSet<Relationship> getActiveRelationshipsTo(String index)
throws XBRLException
index - The index of the target fragment.
XBRLException
List<Relationship> getAllRelationships()
throws XBRLException
XBRLException
List<Relationship> getAllActiveRelationships()
throws XBRLException
XBRLException
<F extends Fragment> List<F> getChildren(String index)
throws XBRLException
F - The type of org.xbrlapi.Fragmentindex - The parent fragment index
XBRLException
<F extends Fragment> List<F> getParents(String index)
throws XBRLException
F - The type of org.xbrlapi.Fragmentindex - The child fragment index
XBRLExceptionint getNumberOfRelationships()
int getNumberOfActiveRelationships()
void complete()
throws XBRLException
XBRLExceptionboolean contains(String index)
index - The index of the fragment to check for in the
network.
void add(Network network)
throws XBRLException
network - The network to be merged into this
network.
XBRLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||