public class DTSBase extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<DTSBase>
Constructor and Description |
---|
DTSBase(DTSContainer dts,
javax.xml.namespace.QName linkbaseType,
java.lang.Integer role)
Creates an empty base (no extended links).
|
Modifier and Type | Method and Description |
---|---|
void |
addExtendedLink(java.lang.Integer extendedLinkCode)
Adds the extended link.
|
void |
addExtendedLink(XBRLExtendedLink extendedLink)
An optimization of this strategy would be to write down the relationships
not the extended links one by one.
|
boolean |
addRelationship(XBRLRelationship relationship)
Adds the relationship.
|
void |
clear()
Clear.
|
int |
compareTo(DTSBase o)
Compare to.
|
boolean |
containsExtendedLink(java.lang.Integer exLinkKey)
Contains extended link.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
java.util.Iterator<XBRLArcroleType> |
getArcroles(XBRLExtendedLink filter)
An iterator over arcroles in one extended link.
|
java.util.Iterator<java.lang.Integer> |
getArcrolesCodes(XBRLExtendedLink filter)
An iterator over arcroles in one extended link.
|
DTSBaseSet |
getBaseSet(java.lang.Integer arcrole)
Returns the DTSBaseSet object for this arcrole Type
The DTSBaseSet is a HashSet of XBRLRelationshpis.
|
DTSBaseSet |
getBaseSet(XBRLArcroleType arcrole)
Returns the DTSBaseSet object for this arcrole Type
The DTSBaseSet is a HashSet of XBRLRelationshpis.
|
java.util.Iterator<java.lang.Integer> |
getBaseSetArcroleCodes()
An iterator over arc role codes in all base sets inside this DTSBase.
|
java.util.Iterator<XBRLArcroleType> |
getBaseSetArcroles()
An iterator over arc roles in all base sets inside this DTSBase.
|
java.util.Iterator<XBRLRelationship> |
getBaseSetRelationshipsIterator(XBRLArcroleType arcrole)
Returns an iterator over the relationships in the base set.
|
java.util.Iterator<XBRLRelationship> |
getBaseSetRelationshipsIterator(XBRLArcroleType arcrole,
XBRLValidationReport rep)
Returns an iterator over the relationships in the base set.
|
DTSContainer |
getContainer()
Returns the DTSContainer associated to this object.
|
java.util.Iterator<java.lang.Integer> |
getExtendedLinkCodes()
Gets an iterator over extended links that compose this DTSBase.
|
java.util.Iterator<XBRLExtendedLink> |
getExtendedLinks()
Gets an iterator over extended links that compose this DTSBase.
|
javax.xml.namespace.QName |
getLinkbaseType()
Gets the linkbase type.
|
java.util.Map<XBRLArc,java.util.List<XBRLArc>> |
getPotentialIneffectualBaseSet(java.lang.Integer arcroleCode)
This method processes all arcs in a DTSBase and returns all ineffectual relationships in a new constructed instance of
a DTSBaseSet.
|
XBRLRoleType |
getRole()
Gets the role.
|
int |
getRoleCode()
Direct access to the role code.
|
java.util.Iterator<XBRLResource> |
getVectorResources(java.lang.String extraXPath)
Gets the vector resources.
|
int |
hashCode()
Hash code.
|
boolean |
isBaseSetDefined(java.lang.Integer arcrole)
Returns true if on this DTSbase set there is a DTSBaseSet of relationships for the indicated arcrole, this method does
not create an empty base set if it is not defined and does not change the DTS content in any manner.
|
boolean |
isBaseSetDefined(XBRLArcroleType arcrole)
Returns true if on this DTSbase set there is a DTSBaseSet of relationships for the indicated arcrole, this method does
not create an empty base set if it is not defined and does not change the DTS content in any manner.
|
boolean |
isEmpty()
Checks if is empty.
|
boolean |
removeExtendedLink(java.lang.Integer extendedLink)
Removes an extended link from this base.
|
boolean |
removeExtendedLink(XBRLExtendedLink extendedLink)
Removes an extended link from this base.
|
boolean |
removeRelationship(XBRLRelationship relationship)
Removes the relationship.
|
void |
serialize(XBRLRelationship rel,
XBRLDocument document)
This function makes sure that:
1- the relationship exists in the appropriate ExtendedLink or creates the extended link
2- If the target is a resource, the resource is included in the ExtendedLink as well.
|
java.lang.String |
toString()
To string.
|
public DTSBase(DTSContainer dts, javax.xml.namespace.QName linkbaseType, java.lang.Integer role)
dts
- DTSContainer objectlinkbaseType
- QNamerole
- XBRLRoleTypepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the objpublic boolean containsExtendedLink(java.lang.Integer exLinkKey)
exLinkKey
- the ex link keypublic void addExtendedLink(XBRLExtendedLink extendedLink) throws XBRLInconsistentDTSException
extendedLink
- the extended linkXBRLInconsistentDTSException
- the XBRL inconsistent dts exceptionpublic void addExtendedLink(java.lang.Integer extendedLinkCode)
extendedLinkCode
- the extended link codepublic boolean removeExtendedLink(XBRLExtendedLink extendedLink)
extendedLink
- to removepublic boolean removeExtendedLink(java.lang.Integer extendedLink)
extendedLink
- to removepublic DTSContainer getContainer()
public java.util.Iterator<XBRLArcroleType> getBaseSetArcroles()
public java.util.Iterator<java.lang.Integer> getBaseSetArcroleCodes()
public java.util.Iterator<XBRLArcroleType> getArcroles(XBRLExtendedLink filter)
filter
- the extended link to explore for arcrolespublic java.util.Iterator<java.lang.Integer> getArcrolesCodes(XBRLExtendedLink filter)
filter
- the extended link to explore for arcrolespublic java.util.Iterator<XBRLRelationship> getBaseSetRelationshipsIterator(XBRLArcroleType arcrole)
arcrole
- or the arcs to filterpublic java.util.Iterator<XBRLRelationship> getBaseSetRelationshipsIterator(XBRLArcroleType arcrole, XBRLValidationReport rep)
arcrole
- or the arcs to filterrep
- instance of the XBRLValidationReport where errors will be added. If null, this method will raise XBRLRuntimeException on XBRL errorsXBRLRuntimeException
- if there were XBRLValidationExceptions that cannot be added to an existing XBRLValidationReportpublic DTSBaseSet getBaseSet(java.lang.Integer arcrole)
This method may return null under certain conditions such as when another thread has informed this processor to stop operations.
arcrole
- or the arcs to filterXBRLRuntimeException
- if there were XBRLValidationExceptions that cannot be added to an existing XBRLValidationReportpublic DTSBaseSet getBaseSet(XBRLArcroleType arcrole)
arcrole
- or the arcs to filterXBRLRuntimeException
- if there were XBRLValidationExceptions that cannot be added to an existing XBRLValidationReportpublic boolean isBaseSetDefined(XBRLArcroleType arcrole)
arcrole
- the XBRLArcroleType to ask for on this DTSBasepublic boolean isBaseSetDefined(java.lang.Integer arcrole)
arcrole
- the Integer code from the arcrole to ask for on this DTSBasepublic java.util.Map<XBRLArc,java.util.List<XBRLArc>> getPotentialIneffectualBaseSet(java.lang.Integer arcroleCode) throws XBRLValidationException
Revisited when implementing FRTA rule 5.1.9 (also another document plenty of stupid things). The changes are that proc can be null now.
arcroleCode
- the arcrole codeXBRLValidationException
- the XBRL validation exceptionpublic boolean addRelationship(XBRLRelationship relationship) throws XBRLValidationException
relationship
- the relationshipXBRLValidationException
- the XBRL validation exceptionpublic boolean removeRelationship(XBRLRelationship relationship) throws XBRLInconsistentDTSException
relationship
- the relationshipXBRLInconsistentDTSException
- the XBRL inconsistent dts exceptionpublic java.util.Iterator<XBRLResource> getVectorResources(java.lang.String extraXPath) throws javax.xml.xpath.XPathExpressionException, XBRLValidationException
extraXPath
- the extra x pathjavax.xml.xpath.XPathExpressionException
- the x path expression exceptionXBRLValidationException
- the XBRL validation exceptionpublic javax.xml.namespace.QName getLinkbaseType()
public XBRLRoleType getRole()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<XBRLExtendedLink> getExtendedLinks()
public java.util.Iterator<java.lang.Integer> getExtendedLinkCodes()
public void serialize(XBRLRelationship rel, XBRLDocument document) throws XBRLSerializationException
rel
- The Relationship. MUST be a relationship created in this basedocument
- XBRLDocument MUST be an XBRLIntance or an XBRLLinkbaseXBRLSerializationException
- the XBRL serialization exceptionpublic void clear()
public int compareTo(DTSBase o)
compareTo
in interface java.lang.Comparable<DTSBase>
o
- the opublic boolean isEmpty()
public int getRoleCode()
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa