|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.XMLFragment
com.ihr.xbrl.om.exLinks.XLinkElement
com.ihr.xbrl.om.exLinks.XBRLRelationship
public class XBRLRelationship
| Field Summary | |
|---|---|
static javax.xml.namespace.QName |
orderQName
|
static javax.xml.namespace.QName |
priorityQName
|
static javax.xml.namespace.QName |
useQName
|
| Fields inherited from class com.ihr.xbrl.om.exLinks.XLinkElement |
|---|
actuate, ACTUATE, ARC, arcrole, ARCROLE, ETITLE, EXTENDED, FROM, href, HREF, label, LABEL, LOCATOR, RESOURCE, role, ROLE, show, SHOW, SIMPLE, title, TITLE, TO, type, TYPE |
| Fields inherited from class com.ihr.xbrl.om.XMLFragment |
|---|
CONCEPT_LABEL, CONCEPT_QNAME, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, idQName, NO_POSITION, OrderComparator, PERIOD_TYPE, PERIOD_VALUE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER |
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
void |
clear()
Frees-up used memory This method should not be invoqued on live objects in the DTS. |
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()
|
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()
|
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 |
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)
|
static int |
getUse(java.lang.String code)
Used to convert from string value of use to the integer value. |
int |
hashCode()
|
boolean |
isValidated()
|
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)
|
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(XBRLCoreProcessor proc)
Performs XLink valiadtion at the arcs level |
| Methods inherited from class com.ihr.xbrl.om.exLinks.XLinkElement |
|---|
getActuate, getArcrole, getFromTxt, getHRef, getLabel, getRole, getShow, getStaticLabel, getSType, getTitle, getToTxt, isRequiredAttribute, isValidAttribute, setActuate, setFrom, setHRef, setLabel, setRole, setShow, setSType, setTitle, setTo |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final javax.xml.namespace.QName useQName
public static final javax.xml.namespace.QName orderQName
public static final javax.xml.namespace.QName priorityQName
| Constructor Detail |
|---|
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 value
XBRLValidationException
public 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 agsint XBRL 2.1 specification
XBRLValidationException
public XBRLRelationship(XBRLRelationship other)
throws XBRLValidationException
XBRLValidationException| Method Detail |
|---|
public int hashCode()
hashCode in class XMLFragmentpublic boolean equals(java.lang.Object obj)
XMLFragment
equals in class XMLFragment
public void clear()
throws java.lang.Throwable
XMLFragmentThis method should not be invoqued on live objects in the DTS. It is automatically invoqued by the API when an object is no longer used and referenced by other objects. It is save not to call it directly.
clear in class XMLFragmentXBRLValidationException
java.lang.Throwable
public void setId(java.lang.String id)
throws XBRLInconsistentDTSException
XMLFragment
setId in class XMLFragmentid - the new ID
XBRLInconsistentDTSException - if the id is not lexicographically validpublic XMLFragment getFrom()
public XMLFragment getTo()
public XBRLExtendedLink getParent()
getParent in interface XMLHasParentgetParent in class XMLFragment
public void setParent(XBRLExtendedLink parent)
throws XBRLInconsistentDTSException
XBRLInconsistentDTSException
XBRLValidationExceptionpublic javax.xml.namespace.QName getType()
public void setType(javax.xml.namespace.QName type)
public XBRLArcroleType getArcroleType()
XBRLValidationExceptionpublic void setArcroleType(XBRLArcroleType arcrole)
arcrole -
XBRLValidationExceptionpublic void setArcrole(java.lang.String arcrole)
XLinkElement
setArcrole in class XLinkElementpublic java.util.Iterator<XBRLRelationship> getNext()
XBRLValidationExceptionpublic java.util.Iterator<XBRLRelationship> getPrevious()
XBRLValidationException
public void setFrom(XMLFragment newFrom)
throws XBRLInconsistentDTSException
newFrom - XMLFragment
XBRLInconsistentDTSException
public void setTo(XMLFragment newTo)
throws XBRLInconsistentDTSException
newTo - XMLFragment
XBRLInconsistentDTSExceptionpublic java.lang.Integer getUse()
public static int getUse(java.lang.String code)
code - string value to convert to integer value
public static java.lang.String getUse(int useCode)
public java.lang.Integer setUse(java.lang.Integer newValue)
newValue -
public int getPriority()
public java.lang.Integer setPriority(java.lang.Integer newValue)
newValue - as an Integer
public java.util.Iterator<XBRLAttribute> getAttributes()
getAttributes in class XMLFragmentpublic DTSBase getDTSBase()
public void setDTSBase(DTSBase base)
base - public java.lang.Double getOrder()
public java.lang.Double setOrder(java.lang.Double newValue)
newValue -
public void setChain(XBRLRelationshipsChainLink chain)
chain -
public XBRLRelationshipsChainLink getChain()
throws XBRLValidationException
XBRLValidationException
public org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragment
generateNode 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 relativided
XBRLSerializationExceptionpublic java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XMLFragmentpublic XBRLValidationReport validate(XBRLCoreProcessor proc)
public boolean isValidated()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||