public class XBRLLocator extends XBRLPointerOfARelationship implements XBRLValidation
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
standardLocQName
This is link:loc the element name of standard locators .
|
actuate, ACTUATE, ARC, arcrole, ARCROLE, ETITLE, EXTENDED, from, FROM, href, HREF, label, LABEL, LOCATOR, RESOURCE, role, ROLE, show, SHOW, SIMPLE, title, TITLE, to, 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 |
|---|
XBRLLocator(DTSContainer dts,
net.sf.saxon.s9api.XdmNode node)
Instantiates a new XBRL locator.
|
XBRLLocator(XBRLArc arc,
net.sf.saxon.s9api.XdmNode node)
Instantiates a new XBRL locator.
|
XBRLLocator(XMLFragment reference)
Instantiates a new XBRL locator.
|
| Modifier and Type | Method and Description |
|---|---|
XBRLArc |
getArc()
Access to the [parent] property.
|
XMLDocumentURI |
getHRefDocument()
Obtains the document this locator is pointing to.
|
XBRLExtendedLink |
getParent()
The parent XMLFragment node of this XMLFragment node.
|
XMLFragment |
getReference()
Access to the [Reference] property.
|
XBRLRoleType |
getRoleType()
Access to the [Role Type] property
The resource is validated against the content of the roleType information
Return null if no roleType exist on resource.
|
XBRLValidationReport |
getValidationReport()
Access to the last stored validation report.
|
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.
|
boolean |
isStandardLoc()
Returns true if the surrounding node is a link:loc
returns false if this object is in the substitution group of link:loc but not
a link:loc .
|
void |
setRoleType(XBRLRoleType role)
Sets the role type.
|
XBRLValidationReport |
validate(XBRLPlugInProcessor proc)
Executes validation on the instance object and returns a validation report.
|
void |
validateNotEmptyHref(java.net.URI href)
Validate not empty href.
|
void |
validateXPointer(java.net.URI uriHref)
resolve the XPointer to the node pointed to and returns the XMLFragment it points to or null if none can
be found.
|
generateNode, getActuate, getArcrole, getFromTxt, getHRef, getLabel, getRole, getShow, getStaticLabel, getSType, getTitle, getToTxt, isRequiredAttribute, isValidAttribute, setActuate, setArcrole, setFrom, setHRef, setLabel, setRole, setShow, setSType, setTitle, setToaddAttribute, 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, 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 javax.xml.namespace.QName standardLocQName
public XBRLLocator(DTSContainer dts, net.sf.saxon.s9api.XdmNode node)
dts - the dtsnode - the nodepublic XBRLLocator(XBRLArc arc, net.sf.saxon.s9api.XdmNode node)
arc - the arcnode - the nodepublic XBRLLocator(XMLFragment reference)
reference - the referencepublic XBRLArc getArc()
public XBRLExtendedLink getParent()
XMLFragmentFor XBRLAttribute nodes, the parent is the element node.
For Document nodes the returned value is null
For Embedded document nodes, the returned value is the parent element node.
getParent in interface XMLHasParentgetParent in class XMLFragmentpublic XMLFragment getReference() throws XBRLValidationException
XBRLValidationException - the XBRL validation exceptionpublic XMLDocumentURI getHRefDocument() throws XBRLValidationException
XBRLValidationException - the XBRL validation exceptionpublic void validateNotEmptyHref(java.net.URI href)
throws XBRLValidationExceptionInvalidEmptyHRef
href - the hrefXBRLValidationExceptionInvalidEmptyHRef - the XBRL validation exception invalid empty h refpublic void validateXPointer(java.net.URI uriHref)
throws XBRLValidationException
The href MUST be absolute.
uriHref - the URI to resolveXBRLValidationException - if the URI cannot be resolved according to the rules in the XBRL 2.1 specificationpublic boolean isStandardLoc()
public XBRLRoleType getRoleType()
public void setRoleType(XBRLRoleType role)
role - the new role typepublic 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