XBRLAPI

A Java API for XBRL


org.xbrlapi.xdt
Class CustomLinkRecogniserImpl

java.lang.Object
  extended by org.xbrlapi.xlink.CustomLinkRecogniser
      extended by org.xbrlapi.xlink.handler.XBRLCustomLinkRecogniserImpl
          extended by org.xbrlapi.xdt.CustomLinkRecogniserImpl
All Implemented Interfaces:
Serializable

public class CustomLinkRecogniserImpl
extends XBRLCustomLinkRecogniserImpl

This class provides an example custom link recogniser tailored to the needs of the non-xlink links used by XBRL.

Author:
Geoffrey Shuetrim (geoff@galexy.net)
See Also:
Serialized Form

Constructor Summary
CustomLinkRecogniserImpl()
          Constructor for the XBRL custom link recogniser
 
Method Summary
 String getHref(String namespaceURI, String lName, String qName, Attributes attrs)
          Get the href from the custom link
 boolean isLink(String namespaceURI, String lName, String qName, Attributes attrs)
          Added the ability to detect custom links from typed dimensions to their domain declarations.
 
Methods inherited from class org.xbrlapi.xlink.CustomLinkRecogniser
equals, getActuate, getArcrole, getRole, getShow, getTitle, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomLinkRecogniserImpl

public CustomLinkRecogniserImpl()
Constructor for the XBRL custom link recogniser

Method Detail

isLink

public boolean isLink(String namespaceURI,
                      String lName,
                      String qName,
                      Attributes attrs)
Added the ability to detect custom links from typed dimensions to their domain declarations.

Overrides:
isLink in class XBRLCustomLinkRecogniserImpl
Parameters:
namespaceURI - The namespace of the element.
lName - The localname of the element.
qName - The QName of the element.
attrs - The attributes of the element.
Returns:
true if the element is a custom simple link and false otherwise.
See Also:
CustomLinkRecogniser.isLink(String, String, String, Attributes)

getHref

public String getHref(String namespaceURI,
                      String lName,
                      String qName,
                      Attributes attrs)
               throws XLinkException
Get the href from the custom link

Overrides:
getHref in class XBRLCustomLinkRecogniserImpl
Returns:
the href
Throws:
XLinkException

Get Java XBRL API implementation at SourceForge.net.