|
||||||||||
| 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
com.ihr.xbrl.om.exLinks.XBRLPointerOfARelationship
com.ihr.xbrl.om.exLinks.XBRLResource
public class XBRLResource
This is the base type for XBRL resources. This object represents the content of an XBRL Resource as indicated in the XBRL Infoset documentation. Every other XBRL resource is derived from this XBRLResource and may overwrite methods in this class or any other class in the hierarchy tree. Label resources, for example, are implemented as XBRLLabelResource objects with additional properties, validation constraints etc.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.ihr.xbrl.om.XBRLValidation |
|---|
XBRLValidation.Direction |
| Field Summary | |
|---|---|
static XBRLResource |
nullResource
|
| Fields inherited from class com.ihr.xbrl.om.exLinks.XLinkElement |
|---|
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 |
| 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 | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
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()
|
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 |
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()
|
XBRLValidationReport |
getValidationReport()
Access to the last stored validation report |
net.sf.saxon.value.AnyURIValue |
getValueKey()
|
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()
|
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()
|
void |
setComplexType()
Programatically sets if the resource type is simple or complex |
void |
setDTSBase(DTSBase 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)
|
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. |
| Methods inherited from class com.ihr.xbrl.om.exLinks.XLinkElement |
|---|
getActuate, getArcrole, getFromTxt, getHRef, getLabel, getRole, getShow, getStaticLabel, getSType, getTitle, getToTxt, isRequiredAttribute, isValidAttribute, setActuate, setArcrole, setFrom, setHRef, setLabel, setShow, setSType, setTitle, setTo |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ihr.xbrl.om.exLinks.XBRLRelationshipPoint |
|---|
addFromRelationship, addToRelationship, getFromRelationships, getToRelationships, removeFromRelationship, removeToRelationship |
| Field Detail |
|---|
public static final XBRLResource nullResource
| Constructor Detail |
|---|
public XBRLResource(XBRLExtendedLink parent,
net.sf.saxon.s9api.XdmNode resNode)
parent - resNode -
XBRLValidationExceptionpublic XBRLResource(XBRLResource other)
other -
XBRLValidationException
DTSDiscoveryException
XBRLValidationException
public 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.
XBRLDuplicateResource| Method Detail |
|---|
public int hashCode()
hashCode in class XMLFragmentpublic boolean equals(java.lang.Object other)
XMLFragment
equals in class XMLFragmentpublic XBRLExtendedLink getParent()
getParent in interface XMLHasParentgetParent in class XMLFragment
public void setParent(XBRLExtendedLink parent)
throws XBRLDuplicateException
parent - XBRLExtendedLink
XBRLDuplicateExceptionpublic XBRLRoleType getRoleType()
XBRLValidationExceptionpublic void setRoleType(XBRLRoleType role)
public void setRole(java.lang.String role)
XLinkElement
setRole in class XLinkElementpublic DTSBase getDTSBase()
public void setDTSBase(DTSBase base)
base - DTSBasepublic java.util.Iterator<XBRLAttribute> getAttributes()
getAttributes in class XMLFragmentpublic XBRLXSDTypeDefinition getType()
public boolean isComplexType()
public void setComplexType()
public void setSimpleType()
public void setValue(net.sf.saxon.s9api.XdmValue v)
setValue in class XMLFragment
public void setId(java.lang.String id)
throws XBRLInconsistentDTSException
XMLFragment
setId in class XMLFragmentid - the new ID
XBRLInconsistentDTSException - if the id is not lexicographically validpublic void addChild(XMLFragment f)
addChild in class XMLFragmentpublic boolean isSimpleType()
public org.jdom.Element generateNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XMLFragment
generateNode 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 relativided
XBRLSerializationException
public XBRLLocator generateLocatorToNode(boolean relativize,
java.net.URI base)
throws java.net.URISyntaxException
base - relativize -
java.net.URISyntaxExceptionpublic net.sf.saxon.value.AnyURIValue getValueKey()
getValueKey in interface XBRLValueKey
public void clear()
throws java.lang.Throwable
clear in class XMLFragmentXBRLValidationException
java.lang.Throwablepublic java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XMLFragment
public 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 - integer
public XBRLValidationReport getValidationReport()
XBRLValidation
getValidationReport 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()
XBRLValidation
invalidate 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()
XBRLValidation
isOnValidation in interface XBRLValidation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||