|
||||||||||
| 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
public abstract class XLinkElement
Base class for elements that contains attributes according to the XLink Specification.
In release 2.6.5 of the API the local variables has been replaced by the content of the attributes hash table in the parent XMLFragment object in order to avoid double storage of values.
| Field Summary | |
|---|---|
static javax.xml.namespace.QName |
actuate
|
static int |
ACTUATE
|
static int |
ARC
|
static javax.xml.namespace.QName |
arcrole
|
static int |
ARCROLE
|
static int |
ETITLE
|
static int |
EXTENDED
|
static javax.xml.namespace.QName |
from
|
static int |
FROM
|
static javax.xml.namespace.QName |
href
|
static int |
HREF
|
static javax.xml.namespace.QName |
label
|
static int |
LABEL
|
static int |
LOCATOR
|
static int |
RESOURCE
|
static javax.xml.namespace.QName |
role
|
static int |
ROLE
|
static javax.xml.namespace.QName |
show
|
static int |
SHOW
|
static int |
SIMPLE
|
static javax.xml.namespace.QName |
title
|
static int |
TITLE
|
static javax.xml.namespace.QName |
to
|
static int |
TO
|
static javax.xml.namespace.QName |
type
|
static int |
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 | |
|---|---|
XLinkElement(DTSContainer dts)
Creates an XLinkElement object for a DTS without assigning it to a node |
|
XLinkElement(DTSContainer dts,
net.sf.saxon.s9api.XdmNode node)
Creates an XLinkElement object that exist in a DTS and assign it to a node returned by saxonica processor |
|
XLinkElement(XLinkElement other)
Creates an XLinkElement object by copying another XLinkElement object |
|
| Method Summary | |
|---|---|
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 |
java.lang.String |
getActuate()
Access to the value of the xlink:actuate property on simple link elements null is returned if the value is not set and there is no actuate attribute on the node |
java.lang.String |
getArcrole()
Access to the value of the xlink:arcrole attribute on simple link elements |
java.lang.String |
getFromTxt()
Access to the value of the xlink:from attibute on simple link elements (arcs only) |
java.net.URI |
getHRef()
Access to the value of the xlink:href attribute on simple link elements The value is not converted to an absolute URI in this function. |
java.lang.String |
getLabel()
Access to the value of the xlink:label attribute on simple link elements |
java.lang.String |
getRole()
Access to the content of the xlink:role attribute on the XLinkElement returns null if there is no xlink:role attribute on the element |
java.lang.String |
getShow()
Access to the value of the xlink:show attribute on simple link elements, null is returned if the value is not set or there is no show attribute on the node |
static java.lang.String |
getStaticLabel()
Creates a unique string to be used in xlink:label attributes |
java.lang.String |
getSType()
Returns a string representation of the xlink:type attribute on simple links. |
java.lang.String |
getTitle()
Returns the value of the xlink:title attribute on simple link elements |
java.lang.String |
getToTxt()
Access to the value of the xlink:to attribute on simple link elements (arcs only). |
static boolean |
isRequiredAttribute(int elementType,
int attributeType)
Checks whether or not an attribute code is required for an xlink element |
static boolean |
isValidAttribute(int elementType,
int attributeType)
Checks whether or not an attribute code is valid in an xlink element |
void |
setActuate(java.lang.String actuate)
Sets the value of the xlink:actuate attribute on simple link elements |
void |
setArcrole(java.lang.String arcrole)
Sets the value of the xlink:arcrole attribute on simple link elements |
void |
setFrom(java.lang.String from)
Sets the value of the xlink:from attribute on simple link elements (arcs only) since 2.6.5 setting this attribute updates all xlink:label attributes for existing elements in the source of the arc or the element that is the source of the relationship |
void |
setHRef(java.lang.String href)
Sets the value of the xlink:href attribute on simple link elements |
void |
setLabel(java.lang.String label)
Sets the value of the xlink:label attribute on simple link elements starting with version 2.6.5 setting the value of the label here updates also the value of the xlink:from and xlink:to attributes on relationships. |
void |
setRole(java.lang.String role)
Sets the value of the xlink:role attribute to a specific value |
void |
setShow(java.lang.String show)
Sets the value of the xlink:show attribute on simple link elements |
void |
setSType(java.lang.String type)
Sets the value of the xlink:type attribute on simple links |
void |
setTitle(java.lang.String title)
Sets the value for the xlink:title attribute |
void |
setTo(java.lang.String to)
Sets the value of the xlink:to attribute on simple link elements (arcs only) since 2.6.5 setting this attribute updates all xlink:label attributes for existing elements in the target of the arc or the element that is the target of the relationship |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LOCATOR
public static final int ARC
public static final int RESOURCE
public static final int EXTENDED
public static final int SIMPLE
public static final int ETITLE
public static final int TYPE
public static final int ROLE
public static final int ARCROLE
public static final int TITLE
public static final int SHOW
public static final int ACTUATE
public static final int LABEL
public static final int FROM
public static final int TO
public static final int HREF
public static final javax.xml.namespace.QName type
public static final javax.xml.namespace.QName role
public static final javax.xml.namespace.QName arcrole
public static final javax.xml.namespace.QName title
public static final javax.xml.namespace.QName show
public static final javax.xml.namespace.QName actuate
public static final javax.xml.namespace.QName label
public static final javax.xml.namespace.QName from
public static final javax.xml.namespace.QName to
public static final javax.xml.namespace.QName href
| Constructor Detail |
|---|
public XLinkElement(DTSContainer dts,
net.sf.saxon.s9api.XdmNode node)
dts - node - public XLinkElement(XLinkElement other)
other - public XLinkElement(DTSContainer dts)
dts - | Method Detail |
|---|
public static boolean isValidAttribute(int elementType,
int attributeType)
elementType - attributeType -
public static boolean isRequiredAttribute(int elementType,
int attributeType)
elementType - attributeType -
public final java.lang.String getTitle()
throws XBRLRuntimeException
XBRLRuntimeException
public void setTitle(java.lang.String title)
throws XBRLValidationException
title -
XBRLRuntimeException
XBRLValidationException
public final java.lang.String getRole()
throws XBRLRuntimeException
XBRLRuntimeException
public void setRole(java.lang.String role)
throws XBRLValidationException
role -
XBRLRuntimeException - if the element type does not accept the xlink:role attribute
XBRLValidationExceptionpublic static java.lang.String getStaticLabel()
public final java.lang.String getLabel()
throws XBRLRuntimeException
XBRLRuntimeException
public void setLabel(java.lang.String label)
throws XBRLRuntimeException
starting with version 2.6.5 setting the value of the label here updates also the value of the xlink:from and xlink:to attributes on relationships.
label -
XBRLRuntimeException
public final java.net.URI getHRef()
throws XBRLRuntimeException
XBRLRuntimeException
public void setHRef(java.lang.String href)
throws XBRLValidationException
href -
XBRLRuntimeException
XBRLValidationException
public final java.lang.String getArcrole()
throws XBRLRuntimeException
XBRLRuntimeException
public void setArcrole(java.lang.String arcrole)
throws XBRLValidationException
arcrole -
XBRLRuntimeException
XBRLValidationException
public final java.lang.String getFromTxt()
throws XBRLRuntimeException
XBRLRuntimeException
public void setFrom(java.lang.String from)
throws XBRLValidationException
since 2.6.5 setting this attribute updates all xlink:label attributes for existing elements in the source of the arc or the element that is the source of the relationship
from -
XBRLRuntimeException
XBRLValidationException
public final java.lang.String getToTxt()
throws XBRLRuntimeException
XBRLRuntimeException
public void setTo(java.lang.String to)
throws XBRLValidationException
since 2.6.5 setting this attribute updates all xlink:label attributes for existing elements in the target of the arc or the element that is the target of the relationship
to -
XBRLRuntimeException
XBRLValidationException
public final java.lang.String getSType()
throws XBRLRuntimeException
XBRLRuntimeException
public void setSType(java.lang.String type)
throws XBRLRuntimeException
type -
XBRLRuntimeException
public final java.lang.String getShow()
throws XBRLRuntimeException
XBRLRuntimeException
public void setShow(java.lang.String show)
throws XBRLValidationException
show -
XBRLRuntimeException
XBRLValidationException
public final java.lang.String getActuate()
throws XBRLRuntimeException
XBRLRuntimeException
public void setActuate(java.lang.String actuate)
throws XBRLValidationException
actuate -
XBRLRuntimeException
XBRLValidationException
public org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragment
generateNode in class XMLFragmentrelativize - 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
XBRLSerializationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||