public class XBRLResource extends XBRLPointerOfARelationship implements XBRLValueKey, XBRLValidation
XMLFragment.NodeNameIterator<T extends XMLFragment>, XMLFragment.NodeTypeIterator<T extends XMLFragment>XBRLValidation.Direction| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log
The log.
|
static XBRLResource |
nullResource
The Constant nullResource.
|
actuate, ARC, arcrole, ETITLE, EXTENDED, from, href, label, LOCATOR, RESOURCE, role, show, SIMPLE, title, to, X_ACTUATE, X_ARCROLE, X_FROM, X_HREF, X_LABEL, X_ROLE, X_SHOW, X_TITLE, X_TO, X_TYPE, XLINKPREFIXADD_NAMESPACE_INHERIT, baseQName, CONCEPT_LABEL, CONCEPT_QNAME, EASY_TO_READ, ELEMENT_LABEL, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, FACT_VALUE, HIDE_COMMON_ACCURACY, idQName, langQName, nil, NO_POSITION, OrderComparator, OrderComparator2, OrderComparatorReverse, PERIOD_BOP, PERIOD_TYPE, PERIOD_VALUE, RELATIONSHIP_TYPE, RESOURCE_TYPE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER| Constructor and Description |
|---|
XBRLResource(DTSContainer dts)
Instantiates a new XBRL resource.
|
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,
XMLFragment node)
constructor of an XBRLResource object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(XMLFragment f)
Sets the resource value to a complex type value and adds a fragment to it.
|
void |
clear()
Removes all referneces to this resource in the DTS.
|
XBRLResource |
clone()
Clone.
|
XBRLResource |
clone(DTSContainer newDTS)
Clone.
|
boolean |
equals(java.lang.Object other)
Equals.
|
XBRLResource |
generateNode()
Generate node.
|
java.util.Iterator<XBRLAttribute> |
getAttributes()
Access to the [Attributes] property.
|
int |
getCode()
Gets the code.
|
DTSBase |
getDTSBase()
Gets the DTS base.
|
net.sf.saxon.tree.linked.NodeImpl |
getFirstChild() |
java.lang.String |
getFriendlyName()
Gets the friendly name.
|
java.lang.String |
getFriendlyName(int modifiers)
Gets the friendly name.
|
java.lang.String |
getFriendlyName(int modifiers,
LabelsProvider lp)
Gets the friendly name.
|
net.sf.saxon.tree.linked.NodeImpl |
getLastChild() |
int |
getNumberOfChildren() |
XBRLExtendedLink |
getParentXBRL()
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()
Gets the validation report.
|
net.sf.saxon.value.AnyURIValue |
getValueKey()
Gets the value key.
|
boolean |
hasChildNodes() |
int |
hashCode()
Hash code.
|
void |
invalidate()
Invalidate.
|
boolean |
invalidate(XBRLValidation.Direction dir)
Invalidate.
|
boolean |
isComplexType()
Checks if is complex type.
|
boolean |
isHashDependsOnAtribute(javax.xml.namespace.QName attributeName)
Checks if is hash depends on atribute.
|
boolean |
isOnValidation()
Checks if is on validation.
|
boolean |
isSimpleType()
Checks if is simple type.
|
void |
setCode(int resourceNumber)
Set the resource code.
|
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 id.
|
boolean |
setRawParentXBRL(XMLFragment 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 role.
|
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)
Validate.
|
getActuate, getArcrole, getFromTxt, getHRef, getHRefDocument, getHRefDocumentResolved, getHRefResolved, getLabel, getRawHRef, getReference, getRole, getShow, getStaticLabel, getSType, getTitle, getToTxt, isRequiredAttribute, isValidAttribute, setActuate, setArcrole, setFrom, setHRef, setLabel, setShow, setSType, setTitle, setTo, validateXPointeraddAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addChildArray, addChildAt, addChildNode, addChildNodeArray, addChildNodeAt, addChildNodeInBatch, addComment, addFromRelationship, addNamespace, addNamespace, addPropertyChangeListener, addToRelationship, changeBase, checkBase, childExists, commitBatch, copy, createComment, delAttribute, delAttribute, delete, equalXdmValues, findFirstNodeOfClass, findPosition, firePropertyChangeEvent, generateId, generateLocatorToNode, generatePrefix, getAllAttributes, getAttribute, getAttributeAtomicValue, getAttributeBooleanValue, getAttributeGroundedValue, getAttributeQNameValue, getAttributeValue, getBase, getBase, getBooleanValue, getChildren, getChildStringValue, getConfiguration, getContainer, getContainerDocumentURI, getDocument, getElement, getElement, getElements, getFirstChildNoComment, getFragment, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getId, getInScopeNamespaces, getLang, getLastChildNoComment, getNamePool, getNamespaceBinding, getNamespaceURI, getNextSiblingNoComment, getNodeName, getNthElement, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, getParentDocument, getPrefix, getPrefixes, getPropertyChangeListeners, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticNamespace, getStringValue, getToolTipText, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPath, getXPathFromXPointer, getXPathNamespaceContext, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerXPath2Scheme, initialise, internalToString, isAttribute, isChangeHashEnabled, isDead, isEmpty, isNamespaceDefined, isNil, moveNamespacesUp, objEquals, objHashCode, reindex, removeChild, removeChildNode, removeFromRelationship, removeNamespace, removePropertyChangeListener, removeToRelationship, replace, replaceChild, replaceStringValue, resetElements, resolveHRef, s_equal2_xp2, s_equal2_xp2, s_equal2, s_equal2, s_equal2, s_equal2, setAttributeList, setAttributes, setBase, setChildrenClone, setDirty, setElements, setLang, setModified, setNamespaceDeclarations, setNamespaces, setNil, setNodeName, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, valueEquals, xEqualaddAttribute, addNamespace, generateId, getAttributeList, getAttributeValue, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getDocumentRoot, getLineNumber, getNameCode, getNamespaceList, getNodeKind, getRoot, getSchemaType, getSystemId, getTypeAnnotation, getURIForPrefix, gsetAttributeCollection, isId, isInScopeNamespace, isNilled, iteratePrefixes, removeAttribute, removeTypeAnnotation, rename, setLocation, setNameCode, setNamespaceList, setSystemId, setTypeAnnotationatomize, compareOrder, comparePosition, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getSiblingPosition, getSuccessorElement, getURI, head, insertSiblings, isDeleted, isIdref, isSameNodeInfo, iterate, iterateAxis, iterateAxis, newBuilder, replacepublic static org.apache.log4j.Logger log
public static final XBRLResource nullResource
public XBRLResource(XBRLExtendedLink parent, XMLFragment node)
parent - the parentnode - the nodepublic XBRLResource(DTSContainer dts)
dts - the dtspublic 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 interface net.sf.saxon.om.NodeInfohashCode in class XLinkElementpublic boolean isHashDependsOnAtribute(javax.xml.namespace.QName attributeName)
isHashDependsOnAtribute in class XLinkElementattributeName - the attribute namepublic boolean equals(java.lang.Object other)
equals in interface net.sf.saxon.om.NodeInfoequals in class XLinkElementother - the otherpublic XBRLExtendedLink getParentXBRL()
getParentXBRL in class XMLFragmentpublic boolean setRawParentXBRL(XMLFragment parent)
If the resource had a previous parent this method detach the resource from previous parent and attach it to the new parent.
This method calls XBRLExtendedLink.addResource(XBRLResource) on the new parent (if not null)
and XBRLExtendedLink.removeResource(XBRLResource) on the old parent (if any)
setRawParentXBRL in class XMLFragmentparent - XBRLExtendedLinkpublic 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)
setRole in class XLinkElementrole - the new rolepublic DTSBase getDTSBase()
public void setDTSBase(DTSBase base)
base - DTSBasepublic java.util.Iterator<XBRLAttribute> getAttributes()
getAttributes in class XLinkElementXMLFragment.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
setId in class XMLFragmentid - the new idXBRLInconsistentDTSException - the XBRL inconsistent DTS exceptionpublic void addChild(XMLFragment f)
addChild in class XMLFragmentf - the fpublic boolean isSimpleType()
public XBRLResource generateNode() throws XBRLSerializationException
generateNode in class XLinkElementXBRLSerializationException - the XBRL serialization exceptionpublic net.sf.saxon.value.AnyURIValue getValueKey()
getValueKey in interface XBRLValueKeypublic void clear()
throws java.lang.Throwable
clear in class XLinkElementjava.lang.Throwable - the throwablepublic XBRLResource clone()
clone in class XMLFragmentpublic XBRLResource clone(DTSContainer newDTS)
clone in class XMLFragmentnewDTS - the new DTSpublic java.lang.String getFriendlyName()
getFriendlyName in class XMLFragmentpublic java.lang.String getFriendlyName(int modifiers)
getFriendlyName in class XMLFragmentmodifiers - the modifierspublic java.lang.String getFriendlyName(int modifiers,
LabelsProvider lp)
getFriendlyName in class XMLFragmentmodifiers - the modifierslp - the lppublic XBRLValidationReport getValidationReport()
getValidationReport in interface XBRLValidationpublic XBRLValidationReport validate(XBRLPlugInProcessor proc)
validate in interface XBRLValidationproc - the procpublic void invalidate()
invalidate in interface XBRLValidationpublic boolean invalidate(XBRLValidation.Direction dir)
invalidate in interface XBRLValidationdir - the dirpublic boolean isOnValidation()
isOnValidation in interface XBRLValidationpublic void setCode(int resourceNumber)
DTSContainer.addResource(XBRLResource) method
when a resource is addedresourceNumber - the new codepublic int getCode()
public final boolean hasChildNodes()
hasChildNodes in interface net.sf.saxon.om.NodeInfohasChildNodes in class net.sf.saxon.tree.linked.NodeImplpublic final int getNumberOfChildren()
public final net.sf.saxon.tree.linked.NodeImpl getFirstChild()
getFirstChild in interface net.sf.saxon.tree.util.SteppingNode<net.sf.saxon.tree.linked.NodeImpl>getFirstChild in class net.sf.saxon.tree.linked.NodeImplpublic final net.sf.saxon.tree.linked.NodeImpl getLastChild()
getLastChild in class net.sf.saxon.tree.linked.NodeImplCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa