|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.exLinks.DTSBase
public class DTSBase
a DTSBase is a container of all Extended links with the same value in the xlink:role attribute It doesn't matter in which XBRLLinkbase the Extended links are going to be serialized
| Constructor Summary | |
|---|---|
DTSBase(DTSContainer dts,
javax.xml.namespace.QName linkbaseType,
XBRLRoleType role)
Creates an empty base (no extended links) |
|
| Method Summary | |
|---|---|
void |
addExtendedLink(XBRLExtendedLink extendedLink)
An optimization of this strategy would be to write down the relationships not the extended links one by one. |
void |
addRelationship(XBRLRelationship relationship)
|
void |
clear()
|
boolean |
equals(java.lang.Object obj)
|
java.util.Iterator<XBRLArcroleType> |
getArcroles(XBRLExtendedLink filter)
An iterator over arcroles in one extended link |
DTSBaseSet |
getBaseSet(XBRLArcroleType arcrole)
Returns the DTSBaseSet object for this arcrole Type The DTSBaseSet is a HashSet of XBRLRelationshpis. |
java.util.Iterator<XBRLArcroleType> |
getBaseSetArcroles()
An iterator over arcroles 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<XBRLExtendedLink> |
getExtendedLinks()
|
DTSBaseSet |
getIneffectualBaseSet(XBRLArcroleType arcrole,
EFMProcessor proc,
XBRLValidationReport rep)
This method processes all arcs in a DTSBase and returns all ineffectual relationships in a new constructed instance of a DTSBaseSet. |
javax.xml.namespace.QName |
getLinkbaseType()
|
XBRLRoleType |
getRole()
|
java.util.Iterator<XBRLResource> |
getVectorResources(java.lang.String extraXPath)
|
int |
hashCode()
|
boolean |
removeExtendedLink(XBRLExtendedLink extendedLink)
Removes an extended link from this base |
boolean |
removeRelationship(XBRLRelationship 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()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DTSBase(DTSContainer dts,
javax.xml.namespace.QName linkbaseType,
XBRLRoleType role)
dts - DTSContainer objectlinkbaseType - QNamerole - XBRLRoleType| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public void addExtendedLink(XBRLExtendedLink extendedLink)
throws XBRLInconsistentDTSException
extendedLink -
XBRLInconsistentDTSExceptionpublic boolean removeExtendedLink(XBRLExtendedLink extendedLink)
extendedLink - to remove
public DTSContainer getContainer()
public java.util.Iterator<XBRLArcroleType> getBaseSetArcroles()
public java.util.Iterator<XBRLArcroleType> getArcroles(XBRLExtendedLink filter)
filter - the extended link to explore for arcroles
public java.util.Iterator<XBRLRelationship> getBaseSetRelationshipsIterator(XBRLArcroleType arcrole)
arcrole - or the arcs to filter
XBRLRuntimeException - encapsulating an XBRLValidationException
public java.util.Iterator<XBRLRelationship> getBaseSetRelationshipsIterator(XBRLArcroleType arcrole,
XBRLValidationReport rep)
arcrole - or the arcs to filterrep - instance of the XBRLValidationReport where errors will be added.
public DTSBaseSet getBaseSet(XBRLArcroleType arcrole)
throws XBRLRuntimeException
arcrole - or the arcs to filter
XBRLRuntimeException - if there were XBRLValidationExceptions that cannot be added to an existing XBRLValidationReport
public DTSBaseSet getIneffectualBaseSet(XBRLArcroleType arcrole,
EFMProcessor proc,
XBRLValidationReport rep)
throws XBRLValidationException
arcrole - the XBRLArcroleType for which relationships are going to be processedproc - instance of the EFMProcessor in order to recognize if the relationship belongs to an official taxonomy or an extension taxonomy
XBRLValidationException
public void addRelationship(XBRLRelationship relationship)
throws XBRLValidationException
relationship -
XBRLValidationException
public boolean removeRelationship(XBRLRelationship relationship)
throws XBRLInconsistentDTSException
relationship -
XBRLInconsistentDTSException
XBRLValidationException
public java.util.Iterator<XBRLResource> getVectorResources(java.lang.String extraXPath)
throws javax.xml.xpath.XPathExpressionException,
XBRLValidationException
javax.xml.xpath.XPathExpressionException
XBRLValidationExceptionpublic javax.xml.namespace.QName getLinkbaseType()
public XBRLRoleType getRole()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<XBRLExtendedLink> getExtendedLinks()
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 XBRLLinkbase
XBRLValidationException
XBRLSerializationExceptionpublic void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||