public class XBRLResource extends XBRLPointerOfARelationship implements XBRLValueKey, XBRLRelationshipPoint, XBRLValidation
XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log
The log.
|
static XBRLResource |
nullResource
The Constant nullResource.
|
actuate, ACTUATE, ARC, arcrole, ARCROLE, ETITLE, EXTENDED, from, FROM, href, HREF, label, LABEL, LOCATOR, RESOURCE, role, ROLE, show, SHOW, SIMPLE, title, TITLE, to, TO, 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 |
|---|
XBRLResource(XBRLExtendedLink parent,
javax.xml.namespace.QName type,
boolean bAddToParent)
Creates a XBRLResource programatically
Set bAddToParent to false if the resource is not fully initialized in this case this function
never throws a XBRLDuplicateResource exception
Starting with release 2.6.5 this constructor requires the element declaration of the type parameter
to be loaded in the set of schemas available in the DTSContainer of the parent.
|
XBRLResource(XBRLExtendedLink parent,
net.sf.saxon.s9api.XdmNode resNode)
constructor of an XBRLResource object.
|
XBRLResource(XBRLResource other)
Constructor of a resource based on another resource that is already in the resource cache of
the container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(XMLFragment f)
Sets the resource value to a comples type value and adds a fragment to it.
|
void |
clear()
Removes all referneces to this resource in the DTS.
|
boolean |
equals(java.lang.Object other)
Sets a new XPathFunctionResolver for this object.
|
XBRLLocator |
generateLocatorToNode(boolean relativize,
java.net.URI base)
Generate locator to node.
|
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.util.Iterator<XBRLAttribute> |
getAttributes()
Access to the [Attributes] property.
|
DTSBase |
getDTSBase()
Gets the DTS base.
|
java.lang.String |
getFriendlyName()
Returns a string description that represents the element content in a form
that users can understand.
|
java.lang.String |
getFriendlyName(int modifiers,
LabelsProvider lp)
Returns a string description that represents the element content in a form
that users can understand.
|
XBRLExtendedLink |
getParent()
Access to the [Parent] property.
|
static java.lang.String |
getResourceIdentifier(XBRLResource resource)
Returns a text identifying the resource from the linkbase syntax. this is
either the value of the id attribute or the value of the xlink:label on the
resource
|
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.
|
XBRLXSDTypeDefinition |
getType()
Gets the type.
|
XBRLValidationReport |
getValidationReport()
Access to the last stored validation report.
|
net.sf.saxon.value.AnyURIValue |
getValueKey()
Gets the value key.
|
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 |
isComplexType()
Checks if is complex type.
|
boolean |
isOnValidation()
When validation is a recursive process, this function returns true if the
object going to be validated is already under validation.
|
boolean |
isSimpleType()
Checks if is simple type.
|
void |
setComplexType()
Programatically sets if the resource type is simple or complex.
|
void |
setDTSBase(DTSBase base)
Sets the DTS base.
|
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.
|
void |
setParent(XBRLExtendedLink parent)
Sets the parent of this resource to the Extended link that is used in the parameter.
|
void |
setRole(java.lang.String role)
Sets the value of the xlink:role attribute to a specific value.
|
void |
setRoleType(XBRLRoleType role)
Sets the role type.
|
void |
setSimpleType()
Programatically sets if the resource type is simple or complex.
|
void |
setValue(net.sf.saxon.s9api.XdmValue v)
Sets the resource value to a specific simple type value.
|
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, setArcrole, setFrom, setHRef, setLabel, setShow, setSType, setTitle, setToaddAttribute, 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, 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, setVariablesDefined, size, thin, toString, valueEquals, xEqualaddFromRelationship, addToRelationship, getFromRelationships, getToRelationships, removeFromRelationship, removeToRelationshippublic static org.apache.log4j.Logger log
public static final XBRLResource nullResource
public XBRLResource(XBRLExtendedLink parent, net.sf.saxon.s9api.XdmNode resNode)
parent - the parentresNode - the res node, can be nullpublic XBRLResource(XBRLResource other)
other - the otherpublic XBRLResource(XBRLExtendedLink parent, javax.xml.namespace.QName type, boolean bAddToParent)
parent - XBRLExtendedLink the extended linktype - QName the type of this new resourcebAddToParent - if this is true the resource will be added to the extended link and to the DTS Container.public int hashCode()
hashCode in class XMLFragmentpublic boolean equals(java.lang.Object other)
XMLFragmentequals in class XMLFragmentother - the otherpublic XBRLExtendedLink getParent()
getParent in interface XMLHasParentgetParent in class XMLFragmentpublic void setParent(XBRLExtendedLink parent) throws XBRLDuplicateException
parent - XBRLExtendedLinkXBRLDuplicateException - the XBRL duplicate exceptionpublic static java.lang.String getResourceIdentifier(XBRLResource resource)
resource - the resourcepublic XBRLRoleType getRoleType()
public void setRoleType(XBRLRoleType role)
role - the new role typepublic void setRole(java.lang.String role)
XLinkElementsetRole in class XLinkElementrole - the new rolepublic DTSBase getDTSBase()
public void setDTSBase(DTSBase base)
base - DTSBasepublic java.util.Iterator<XBRLAttribute> getAttributes()
getAttributes in class XMLFragmentXMLFragment.getAllAttributes()public XBRLXSDTypeDefinition getType()
public boolean isComplexType()
public void setComplexType()
public void setSimpleType()
public void setValue(net.sf.saxon.s9api.XdmValue v)
setValue in class XMLFragmentv - the new valuepublic void setId(java.lang.String id)
throws XBRLInconsistentDTSException
XMLFragmentsetId in class XMLFragmentid - the new IDXBRLInconsistentDTSException - if the id is not lexicographically validpublic void addChild(XMLFragment f)
addChild in class XMLFragmentf - the fpublic boolean isSimpleType()
public 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 XBRLLocator generateLocatorToNode(boolean relativize, java.net.URI base) throws java.net.URISyntaxException
relativize - the relativizebase - the basejava.net.URISyntaxException - the URI syntax exceptionpublic net.sf.saxon.value.AnyURIValue getValueKey()
XBRLValueKeygetValueKey in interface XBRLValueKeypublic void clear()
throws java.lang.Throwable
clear in class XMLFragmentjava.lang.Throwable - the throwablepublic java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XMLFragmentpublic java.lang.String getFriendlyName(int modifiers,
LabelsProvider lp)
XMLFragmentThis function accepts flags that are defined as constants in XMLFragment in order to modify the output.
getFriendlyName in class XMLFragmentmodifiers - integerlp - the lppublic 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