public class DTSBaseSet extends java.util.LinkedHashSet<XBRLRelationship>
During the DTS load process all relationships in a DTSBase are classified by its arc role and a DTSBaseSet instance is created to contain relationships for that arc role.
This class registers events on the relationships to track changes in the relationship hash value and maintain consistency of the model at the cost of maintaining the event registration overload. If this is not desired use your own class instead. If you use this class, be aware of calling clear() when the DTSBaseSet is no longer required to prevent memory leaks.
Constructor and Description |
---|
DTSBaseSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(XBRLRelationship e)
Adds the.
|
boolean |
addTopProhibitedArc(XBRLArc arc)
Internal method to add a new arc to the set of top prohibiting arcs.
|
void |
clear()
Clear.
|
java.util.Set<XBRLArc> |
getTopProhibitingArcs()
When an arc has use="prohibit" and it is the top arc in the priority classification of
multiple similar arcs, the arc is effectively eliminating the other arcs from the
infoset.
|
boolean |
isEmpty()
Checks if is empty.
|
boolean |
remove(java.lang.Object o)
Removes the.
|
int |
size()
Size.
|
addAll, containsAll, retainAll, toArray, toArray, toString
public boolean add(XBRLRelationship e)
add
in interface java.util.Collection<XBRLRelationship>
add
in interface java.util.Set<XBRLRelationship>
add
in class java.util.HashSet<XBRLRelationship>
e
- the epublic boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<XBRLRelationship>
remove
in interface java.util.Set<XBRLRelationship>
remove
in class java.util.HashSet<XBRLRelationship>
o
- the opublic void clear()
clear
in interface java.util.Collection<XBRLRelationship>
clear
in interface java.util.Set<XBRLRelationship>
clear
in class java.util.HashSet<XBRLRelationship>
public java.util.Set<XBRLArc> getTopProhibitingArcs()
This class collects the top prohibiting arcs in a base set to allow for two purposes
public boolean addTopProhibitedArc(XBRLArc arc)
arc
- the arcpublic boolean isEmpty()
isEmpty
in interface java.util.Collection<XBRLRelationship>
isEmpty
in interface java.util.Set<XBRLRelationship>
isEmpty
in class java.util.HashSet<XBRLRelationship>
public int size()
size
in interface java.util.Collection<XBRLRelationship>
size
in interface java.util.Set<XBRLRelationship>
size
in class java.util.HashSet<XBRLRelationship>
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa