public abstract class XLinkElement extends XMLFragment
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.
| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
actuate
The Constant actuate.
|
static int |
ACTUATE
The Constant ACTUATE.
|
static int |
ARC
The Constant ARC.
|
static javax.xml.namespace.QName |
arcrole
The Constant arcrole.
|
static int |
ARCROLE
The Constant ARCROLE.
|
static int |
ETITLE
The Constant ETITLE.
|
static int |
EXTENDED
The Constant EXTENDED.
|
static javax.xml.namespace.QName |
from
The Constant from.
|
static int |
FROM
The Constant FROM.
|
static javax.xml.namespace.QName |
href
The Constant href.
|
static int |
HREF
The Constant HREF.
|
static javax.xml.namespace.QName |
label
The Constant label.
|
static int |
LABEL
The Constant LABEL.
|
static int |
LOCATOR
The Constant LOCATOR.
|
static int |
RESOURCE
The Constant RESOURCE.
|
static javax.xml.namespace.QName |
role
The Constant role.
|
static int |
ROLE
The Constant ROLE.
|
static javax.xml.namespace.QName |
show
The Constant show.
|
static int |
SHOW
The Constant SHOW.
|
static int |
SIMPLE
The Constant SIMPLE.
|
static javax.xml.namespace.QName |
title
The Constant title.
|
static int |
TITLE
The Constant TITLE.
|
static javax.xml.namespace.QName |
to
The Constant to.
|
static int |
TO
The Constant TO.
|
static javax.xml.namespace.QName |
type
The Constant type.
|
static int |
TYPE
The Constant TYPE.
|
CONCEPT_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 |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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 (only locator and resource elements)
According to the XLink specification, label is optional on locators and resource 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
|
addAttribute, addChild, addFromRelationship, addNamespace, addNamespace, addToRelationship, addXMLChild, changeBase, checkBase, clear, clone, clone, delAttribute, delAttribute, equals, equalXdmValues, evaluateBoolean, evaluateList, evaluateNode, evaluateNumber, evaluateString, generateId, generateNodeNamespacesAndAttributes, generateNodeValue, generatePrefix, getAllAttributes, getAttribute, getAttributeBooleanValue, getAttributeQNameValue, getAttributes, getAttributes, getAttributeStringValue, getAttributeValue, getBase, getBase, getBaseURI, getBooleanValue, getChild, getContainer, getContainerDocumentURI, getDeclaredNamespaces, getDocument, getElements, getElementsHashCode, getFragment, getFriendlyName, getFriendlyName, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getGenericLabelText, getId, getLang, getNamespaceURI, getNodeName, getNumberOfAttributes, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, getParent, getPrefix, getPrefixes, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticContext, getStaticNamespace, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPathExecutable, getXPathNamespaceContext, getXPathToNode, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerToNode, hashCode, 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, setId, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setRegenerateNodeIfnotFound, setValue, setValue, setVariablesDefined, size, thin, toString, valueEquals, xEqualpublic 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
public XLinkElement(DTSContainer dts, net.sf.saxon.s9api.XdmNode node)
dts - the dtsnode - the node, can be nullpublic XLinkElement(XLinkElement other)
other - the otherpublic XLinkElement(DTSContainer dts)
dts - the dtspublic static boolean isValidAttribute(int elementType,
int attributeType)
elementType - the element typeattributeType - the attribute typepublic static boolean isRequiredAttribute(int elementType,
int attributeType)
elementType - the element typeattributeType - the attribute typepublic final java.lang.String getTitle()
throws XBRLRuntimeException
XBRLRuntimeException - the XBRL runtime exceptionpublic void setTitle(java.lang.String title)
throws XBRLValidationException
title - the new titleXBRLValidationException - the XBRL validation exceptionpublic final java.lang.String getRole()
throws XBRLRuntimeException
XBRLRuntimeException - the XBRL runtime exceptionpublic void setRole(java.lang.String role)
throws XBRLValidationException
role - the new roleXBRLValidationException - the XBRL validation exceptionpublic static java.lang.String getStaticLabel()
public final java.lang.String getLabel()
throws XBRLRuntimeException
XBRLRuntimeException - the XBRL runtime exceptionpublic 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 - the new labelXBRLRuntimeException - the XBRL runtime exceptionpublic final java.net.URI getHRef()
throws XBRLRuntimeException
XBRLRuntimeException - the XBRL runtime exceptionpublic void setHRef(java.lang.String href)
throws XBRLValidationException
href - the new h refXBRLValidationException - the XBRL validation exceptionpublic final java.lang.String getArcrole()
throws XBRLRuntimeException
XBRLRuntimeException - the XBRL runtime exceptionpublic void setArcrole(java.lang.String arcrole)
throws XBRLValidationException
arcrole - the new arcroleXBRLValidationException - the XBRL validation exceptionpublic final java.lang.String getFromTxt()
throws XBRLRuntimeException
XBRLRuntimeException - the XBRL runtime exceptionpublic 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 - the new fromXBRLValidationException - the XBRL validation exceptionpublic final java.lang.String getToTxt()
throws XBRLRuntimeException
XBRLRuntimeException - the XBRL runtime exceptionpublic 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 - the new toXBRLValidationException - the XBRL validation exceptionpublic final java.lang.String getSType()
throws XBRLRuntimeException
XBRLRuntimeException - the XBRL runtime exceptionpublic void setSType(java.lang.String type)
throws XBRLRuntimeException
type - the new s typeXBRLRuntimeException - the XBRL runtime exceptionpublic final java.lang.String getShow()
throws XBRLRuntimeException
XBRLRuntimeException - the XBRL runtime exceptionpublic void setShow(java.lang.String show)
throws XBRLValidationException
show - the new showXBRLValidationException - the XBRL validation exceptionpublic final java.lang.String getActuate()
throws XBRLRuntimeException
XBRLRuntimeException - the XBRL runtime exceptionpublic void setActuate(java.lang.String actuate)
throws XBRLValidationException
actuate - the new actuateXBRLValidationException - the XBRL validation exceptionpublic org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragmentgenerateNode 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 relatividedXBRLSerializationException - the XBRL serialization exception