com.ihr.xbrl.om
Class XBRLAttribute

java.lang.Object
  extended by com.ihr.xbrl.om.XMLFragment
      extended by com.ihr.xbrl.om.XBRLAttribute
All Implemented Interfaces:
XBRLRelationshipPoint, XMLHasParent, java.lang.Cloneable, javax.xml.namespace.NamespaceContext

public class XBRLAttribute
extends XMLFragment
implements java.lang.Cloneable

This is an XML Attribute used in relation with an XMLFragment

Author:
Ignacio

Field Summary
 
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
XBRLAttribute(DTSContainer dts, org.jdom.Attribute jdomAttribute)
          Creates an atribute node. it will not be linked to its parent node.
XBRLAttribute(DTSContainer dts, javax.xml.namespace.QName nodeName, net.sf.saxon.value.AtomicValue value)
          Creates an attribute node.
XBRLAttribute(DTSContainer dts, net.sf.saxon.s9api.XdmNode node)
          Creates an XBRL attribute.
XBRLAttribute(XBRLAttribute other)
          Creates a new XBRLAttribute that is a clone of this attribute The parent of the new attribute will be set to null.
 
Method Summary
 void addXMLChild(XMLHasParent newChild)
           
 void clear()
          Frees-up used memory This method should not be invoqued on live objects in the DTS.
 XBRLAttribute clone()
           
 boolean equals(java.lang.Object other)
          Compare two attributes for equality Parent is not considered in equality just the node name and the values
 org.jdom.Attribute generateAttributeNode(org.jdom.Element el)
          The element el in which the namespace will be defined for QName type attributes
 java.lang.String getFriendlyName()
          Returns a string description that represents the element content in a form that users can understand.
 int hashCode()
           
 void removeXMLChild(XMLHasParent child)
           
 
Methods inherited from class com.ihr.xbrl.om.XMLFragment
addAttribute, addChild, addFromRelationship, addNamespace, addNamespace, addToRelationship, changeBase, checkBase, clone, delAttribute, delAttribute, equalXdmValues, evaluateBoolean, evaluateList, evaluateNode, evaluateNumber, evaluateString, generateId, generateNode, generateNodeNamespacesAndAttributes, generateNodeValue, generatePrefix, getAttribute, getAttributeQNameValue, getAttributes, getAttributes, getAttributeStringValue, getAttributeValue, getBase, getBase, getBaseURI, getBooleanValue, getChild, getContainer, getContainerDocumentURI, getDeclaredNamespaces, getDocument, getElements, getFragment, getFriendlyName, getFromRelationships, getFromRelationships, getFromRelationships, getFromRelationships, getId, getLang, getNamespaceURI, getNodeName, getNumberOfAttributes, getNumberOfElements, getNumberOfFromRelationships, getNumberOfToRelationships, getOrGenerateId, getParent, getPrefix, getPrefixes, getQNameValue, getRelationshipsBases, getRelationshipsChain, getRelationshipTypes, getStaticNamespace, getStringValue, getToRelationships, getToRelationships, getToRelationships, getToRelationships, getValue, getXPathNamespaceContext, getXPathToNode, getXPathToRoot, getXPointerElementScheme, getXPointerElementScheme, getXPointerShorthandScheme, getXPointerToNode, isDead, isNamespaceDefined, objEquals, objHashCode, qNameToString, removeAttribute, removeChild, removeChild, removeFromRelationship, removeToRelationship, resetElements, resetHash, resolveHRef, resolveHRef, s_equal2, s_equal2, setAttributes, setBase, setDocument, setDocumentAndReload, setElements, setId, setLang, setNamespaceContext, setNamespaces, setNode, setNodeName, setParent, setValue, setValue, setVariablesDefined, toString, valueEquals, xEqual
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XBRLAttribute

public XBRLAttribute(DTSContainer dts,
                     net.sf.saxon.s9api.XdmNode node)
Creates an XBRL attribute. The attribute is not associated to its parent object.

Parameters:
dts - DTSContainer
node - NodeInfo

XBRLAttribute

public XBRLAttribute(XBRLAttribute other)
Creates a new XBRLAttribute that is a clone of this attribute The parent of the new attribute will be set to null.

Parameters:
other -

XBRLAttribute

public XBRLAttribute(DTSContainer dts,
                     javax.xml.namespace.QName nodeName,
                     net.sf.saxon.value.AtomicValue value)
Creates an attribute node. It will not be linked to its parent node.

Parameters:
dts - DTSContainer
nodeName - QName
value - Value

XBRLAttribute

public XBRLAttribute(DTSContainer dts,
                     org.jdom.Attribute jdomAttribute)
Creates an atribute node. it will not be linked to its parent node.

Parameters:
dts - DTSContainer
jdomAttribute - Attribute
Method Detail

clear

public void clear()
           throws java.lang.Throwable
Description copied from class: XMLFragment
Frees-up used memory

This method should not be invoqued on live objects in the DTS. It is automatically invoqued by the API when an object is no longer used and referenced by other objects. It is save not to call it directly.

Overrides:
clear in class XMLFragment
Throws:
java.lang.Throwable

addXMLChild

public void addXMLChild(XMLHasParent newChild)
Specified by:
addXMLChild in interface XMLHasParent
Overrides:
addXMLChild in class XMLFragment

removeXMLChild

public void removeXMLChild(XMLHasParent child)
Specified by:
removeXMLChild in interface XMLHasParent
Overrides:
removeXMLChild in class XMLFragment

clone

public XBRLAttribute clone()
Overrides:
clone in class XMLFragment

hashCode

public int hashCode()
Overrides:
hashCode in class XMLFragment

generateAttributeNode

public org.jdom.Attribute generateAttributeNode(org.jdom.Element el)
The element el in which the namespace will be defined for QName type attributes

Returns:
org.jdom.Attribute

equals

public boolean equals(java.lang.Object other)
Compare two attributes for equality Parent is not considered in equality just the node name and the values

Overrides:
equals in class XMLFragment

getFriendlyName

public java.lang.String getFriendlyName()
Description copied from class: XMLFragment
Returns a string description that represents the element content in a form that users can understand. This method may be overridden by parent classes.

Remarks, this method may return very long names not suitable for user interface

Overrides:
getFriendlyName in class XMLFragment
Returns:
Non empty String. Internationalization is enabled


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa