public class XBRLRelationship extends XLinkElement implements java.io.Serializable, XBRLValidation
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
orderQName
The Constant orderQName.
|
static javax.xml.namespace.QName |
priorityQName
The Constant priorityQName.
|
static javax.xml.namespace.QName |
useQName
The Constant useQName.
|
actuate, ACTUATE, ARC, arcrole, ARCROLE, ETITLE, EXTENDED, FROM, href, HREF, label, LABEL, LOCATOR, RESOURCE, role, ROLE, show, SHOW, SIMPLE, title, TITLE, TO, type, TYPECONCEPT_LABEL, CONCEPT_QNAME, EASY_TO_READ, ELEMENT_LABEL, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, HIDE_COMMON_ACCURACY, idQName, NO_POSITION, OrderComparator, OrderComparator2, PERIOD_TYPE, PERIOD_VALUE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER| Constructor and Description |
|---|
XBRLRelationship(XBRLExtendedLink parent,
DTSContainer dts,
XBRLArcroleType arcroleType,
XMLFragment from,
XMLFragment to,
net.sf.saxon.s9api.XdmNode document,
XBRLAttribute[] attributes)
Creates a new relationship object from a XdmNode in a file
parent linkbaseType - QName returned by the baseArc.getLinkbaseType()
|
XBRLRelationship(XBRLExtendedLink parent,
javax.xml.namespace.QName type,
XMLFragment from,
XMLFragment to,
XBRLArcroleType arcroleType,
XBRLAttribute[] attributes,
boolean bValidate)
Creates a new relationship object programatically.
|
XBRLRelationship(XBRLRelationship other)
Instantiates a new XBRL relationship.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear.
|
boolean |
equals(java.lang.Object obj)
Sets a new XPathFunctionResolver for this object.
|
org.jdom.Element |
generateNode(boolean relativize,
java.net.URI base)
Serializes to a jdom Element the representation of the properties of this Information Item
This method should be called from classes derived from this class
|
XBRLArcroleType |
getArcroleType()
Access to the [Arcrole] property.
|
java.util.Iterator<XBRLAttribute> |
getAttributes()
Access to the [Attributes] property.
|
XBRLRelationshipsChainLink |
getChain()
Gets the chain.
|
DTSBase |
getDTSBase()
Returns the base property of this relationship.
|
java.lang.String |
getFriendlyName()
Returns a string description that represents the element content in a form
that users can understand.
|
XMLFragment |
getFrom()
Access to the [From] property of a relationship.
|
java.util.Iterator<XBRLRelationship> |
getNext()
Access to the [Following] property of the chain of relationships.
|
java.lang.Double |
getOrder()
Gets the order.
|
XBRLExtendedLink |
getParent()
Access to the [Parent] property.
|
java.util.Iterator<XBRLRelationship> |
getPrevious()
Access to the [Preceding] property of the chain of relationships.
|
int |
getPriority()
Access to the [Priority] property.
|
XMLFragment |
getSource()
The relationship [source] is the same as the relationship [From] property.
|
XMLFragment |
getTarget()
The relationship [target] is the same as the relationship [To] property.
|
XMLFragment |
getTo()
Access to the [To] property of a relationship.
|
javax.xml.namespace.QName |
getType()
Access to the [Type] property
The [Type] property of a relationship is the node name of the surrounding arc
link:presentationArc, link:labelArc, link:calculationArc are some examples of
values for the [Type] property .
|
java.lang.Integer |
getUse()
Access to the [Use] property.
|
static java.lang.String |
getUse(int useCode)
Gets the use.
|
static int |
getUse(java.lang.String code)
Used to convert from string value of use to the integer value.
|
XBRLValidationReport |
getValidationReport()
Access to the last stored validation report.
|
int |
hashCode() |
void |
invalidate()
Invalidates the XBRLFact for XBRL validation.
|
boolean |
invalidate(XBRLValidation.Direction dir)
Invalidates this object and the elements in the XML tree according with the parameter in dir
This method is used by GUI tools that requires to reset validation before a manual validation
cycle is started.
|
boolean |
isOnValidation()
When validation is a recursive process, this function returns true if the
object going to be validated is already under validation.
|
void |
setArcrole(java.lang.String arcrole)
Sets the value of the xlink:arcrole attribute on simple link elements.
|
void |
setArcroleType(XBRLArcroleType arcrole)
Sets the value of the [Arcrole] property of this relationship.
|
void |
setChain(XBRLRelationshipsChainLink chain)
Sets the chain.
|
void |
setDTSBase(DTSBase base)
Sets the base property of this relationship.
|
void |
setFrom(XMLFragment newFrom)
sets the [From] property of this relationship
|
void |
setId(java.lang.String id)
Sets the content of the id attribute of this element
the ID MUST not have any space, but null is allowed and removes an
id from an XML Fragment.
|
java.lang.Double |
setOrder(java.lang.Double newValue)
Set the value of the order attribute.
|
void |
setParent(XBRLExtendedLink parent)
Sets the parent of this relationship to a new extended link.
|
java.lang.Integer |
setPriority(java.lang.Integer newValue)
Sets the value of the [Priority] property or resets it if null is used as the new value.
|
void |
setTo(XMLFragment newTo)
Sets the [To] property of this relationship.
|
void |
setType(javax.xml.namespace.QName type)
Sets the [Type] property of this relationship.
|
java.lang.Integer |
setUse(java.lang.Integer newValue)
Sets the value of the [Use] property to
XBRLArc.OPTIONAL or XBRLArc.PROHIBITED or reset the value if null is used
|
XBRLValidationReport |
validate(XBRLPlugInProcessor proc)
Executes validation on the instance object and returns a validation report.
|
getActuate, getArcrole, getFromTxt, getHRef, getLabel, getRole, getShow, getStaticLabel, getSType, getTitle, getToTxt, isRequiredAttribute, isValidAttribute, setActuate, setFrom, setHRef, setLabel, setRole, setShow, setSType, setTitle, setToaddAttribute, addChild, addFromRelationship, addNamespace, addNamespace, addToRelationship, addXMLChild, changeBase, checkBase, clone, clone, delAttribute, delAttribute, equalXdmValues, evaluateBoolean, evaluateList, evaluateNode, evaluateNumber, evaluateString, generateId, generateNodeNamespacesAndAttributes, generateNodeValue, generatePrefix, getAllAttributes, getAttribute, getAttributeBooleanValue, getAttributeQNameValue, getAttributes, getAttributeStringValue, getAttributeValue, getBase, getBase, getBaseURI, getBooleanValue, getChild, getContainer, getContainerDocumentURI, getDeclaredNamespaces, getDocument, getElements, getElementsHashCode, getFragment, getFriendlyName, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getGenericLabelText, getId, getLang, getNamespaceURI, getNodeName, getNumberOfAttributes, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, getPrefix, getPrefixes, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticContext, getStaticNamespace, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPathExecutable, getXPathNamespaceContext, getXPathToNode, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerToNode, isDead, isNamespaceDefined, isXdmDocumentAttached, objEquals, objHashCode, qNameToString, removeAttribute, removeChild, removeChild, removeFromRelationship, removeToRelationship, removeXMLChild, resetElements, resetHash, resolve_equal2, resolveHRef, resolveHRef, s_equal2, s_equal2, s_equal2, setAttributes, setBase, setDocument, setDocumentAndReload, setElements, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setRegenerateNodeIfnotFound, setValue, setValue, setVariablesDefined, size, thin, toString, valueEquals, xEqualpublic static final javax.xml.namespace.QName useQName
public static final javax.xml.namespace.QName orderQName
public static final javax.xml.namespace.QName priorityQName
public XBRLRelationship(XBRLExtendedLink parent, DTSContainer dts, XBRLArcroleType arcroleType, XMLFragment from, XMLFragment to, net.sf.saxon.s9api.XdmNode document, XBRLAttribute[] attributes) throws XBRLValidationException
parent - XBRLExtendedLink of the base arcdts - DTSContainerarcroleType - XBRLArcroleType objectfrom - XMLFragment in the from extreme of this relationshipto - XMLFragment in the to extreme of this relationshipdocument - NodeInfo surounding nodeattributes - XBRLAttribute[] Array of attributes to add to the attributes in the XdmNode. null is a valid valueXBRLValidationExceptionpublic XBRLRelationship(XBRLExtendedLink parent, javax.xml.namespace.QName type, XMLFragment from, XMLFragment to, XBRLArcroleType arcroleType, XBRLAttribute[] attributes, boolean bValidate) throws XBRLValidationException
parent - XBRLExtendedLink of the base arctype - QName relationship node of the arcfrom - XMLFragment in the from extreme of this relationshipto - XMLFragment in the to extreme of this relationshiparcroleType - XBRLArcroleType objectattributes - XBRLAttribute[] Array of attributes. Attributes will be "cloned" before linked to this relationship. May be nullbValidate - if this is false then the new relationship will not be validated against the XBRL 2.1 specificationXBRLValidationException - the XBRL validation exceptionpublic XBRLRelationship(XBRLRelationship other) throws XBRLValidationException
other - the otherXBRLValidationException - the XBRL validation exceptionpublic int hashCode()
hashCode in class XMLFragmentpublic boolean equals(java.lang.Object obj)
XMLFragmentequals in class XMLFragmentobj - the otherpublic void clear()
throws java.lang.Throwable
clear in class XMLFragmentjava.lang.Throwable - the throwablepublic void setId(java.lang.String id)
throws XBRLInconsistentDTSException
XMLFragmentsetId in class XMLFragmentid - the new IDXBRLInconsistentDTSException - if the id is not lexicographically validpublic XMLFragment getFrom()
public XMLFragment getSource()
getFrom()public XMLFragment getTo()
public XMLFragment getTarget()
getTo()public XBRLExtendedLink getParent()
getParent in interface XMLHasParentgetParent in class XMLFragmentpublic void setParent(XBRLExtendedLink parent) throws XBRLInconsistentDTSException
parent - the new parentXBRLInconsistentDTSException - the XBRL inconsistent dts exceptionpublic javax.xml.namespace.QName getType()
public void setType(javax.xml.namespace.QName type)
type - the new typepublic XBRLArcroleType getArcroleType()
public void setArcroleType(XBRLArcroleType arcrole)
arcrole - the new arcrole typepublic void setArcrole(java.lang.String arcrole)
XLinkElementsetArcrole in class XLinkElementarcrole - the new arcrolepublic java.util.Iterator<XBRLRelationship> getNext()
public java.util.Iterator<XBRLRelationship> getPrevious()
public void setFrom(XMLFragment newFrom) throws XBRLInconsistentDTSException
newFrom - XMLFragmentXBRLInconsistentDTSException - the XBRL inconsistent dts exceptionpublic void setTo(XMLFragment newTo) throws XBRLInconsistentDTSException
newTo - XMLFragmentXBRLInconsistentDTSException - the XBRL inconsistent dts exceptionpublic java.lang.Integer getUse()
public static int getUse(java.lang.String code)
code - string value to convert to integer valuepublic static java.lang.String getUse(int useCode)
useCode - the use codepublic java.lang.Integer setUse(java.lang.Integer newValue)
newValue - the new valuepublic int getPriority()
public java.lang.Integer setPriority(java.lang.Integer newValue)
newValue - as an Integerpublic java.util.Iterator<XBRLAttribute> getAttributes()
getAttributes in class XMLFragmentXMLFragment.getAllAttributes()public DTSBase getDTSBase()
public void setDTSBase(DTSBase base)
base - the new DTS basepublic java.lang.Double getOrder()
public java.lang.Double setOrder(java.lang.Double newValue)
newValue - the new valuepublic void setChain(XBRLRelationshipsChainLink chain)
chain - the new chainpublic XBRLRelationshipsChainLink getChain() throws XBRLValidationException
XBRLValidationException - the XBRL validation exceptionpublic org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragmentgenerateNode in class XLinkElementrelativize - boolean indicating if URIs should be relativized to the base URI (see next argument)base - the URI to which some attributes of this object should be relatividedXBRLSerializationException - the XBRL serialization exceptionpublic java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XMLFragmentpublic XBRLValidationReport getValidationReport()
XBRLValidationgetValidationReport in interface XBRLValidationpublic XBRLValidationReport validate(XBRLPlugInProcessor proc)
XBRLValidation
The validation result may be cached internally. A call to XBRLValidation.invalidate(Direction) clears the validation cache.
validate in interface XBRLValidationproc - the processor under which the object is going to be validated. Note the same object can be validated on multiple processors.public void invalidate()
XBRLValidationinvalidate in interface XBRLValidationpublic boolean invalidate(XBRLValidation.Direction dir)
XBRLValidationThis method is used by GUI tools that requires to reset validation before a manual validation cycle is started.
invalidate in interface XBRLValidationdir - see the XBRLValidation.Direction enumeration for more information.public boolean isOnValidation()
XBRLValidationisOnValidation in interface XBRLValidation