XBRLAPI

A Java API for XBRL


org.xbrlapi.impl
Class UsedOnImpl

java.lang.Object
  extended by org.xbrlapi.impl.XMLImpl
      extended by org.xbrlapi.impl.FragmentImpl
          extended by org.xbrlapi.impl.UsedOnImpl
All Implemented Interfaces:
Serializable, Comparable<XML>, Fragment, UsedOn, XML

public class UsedOnImpl
extends FragmentImpl
implements UsedOn

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

Field Summary
 
Fields inherited from class org.xbrlapi.impl.XMLImpl
logger
 
Constructor Summary
UsedOnImpl()
           
 
Method Summary
 String getUsedOnLocalname()
           
 URI getUsedOnNamespace()
           
 boolean isUsedOn(URI namespaceURI, String localname)
          Returns true only if the custom role type can be used on the specified element based on this usedOn fragment.
 
Methods inherited from class org.xbrlapi.impl.FragmentImpl
appendElementSchemeXPointer, appendID, getAllChildren, getAllChildrenIndices, getAncestorOrSelf, getChild, getChildren, getChildren, getChildrenIndices, getDataRootElement, getElementSchemeXPointerExpression, getIDXPointerExpression, getLabels, getLabels, getLabels, getLabelsWithLanguage, getLabelsWithLanguageAndResourceRole, getLabelsWithLanguageAndResourceRoleAndLinkRole, getLabelsWithResourceRole, getLanguage, getLanguage, getLanguageName, getLanguageName, getLocalname, getLocalnameFromQName, getNamespace, getNamespaceFromQName, getParent, getParentElement, getParentIndex, getPrefixFromQName, getReferences, getReferencesWithLanguage, getReferencesWithLanguageAndResourceRoleAndLinkRole, getReferencesWithLanguageAndRole, getReferencesWithResourceRole, getReferencingLocators, getSequenceToParentElement, getSequenceToParentElementAsString, getSimpleLinks, getURI, getXPath, getXPointerExpression, isAncestorOf, isChild, isNewFragment, isRoot, setParentIndex, setSequenceToParentElement, setURI
 
Methods inherited from class org.xbrlapi.impl.XMLImpl
appendMetadataElement, compareTo, equals, finalize, getBuilder, getDocumentNode, getIndex, getMetaAttribute, getMetadataRootElement, getStore, getType, hashCode, hasMetaAttribute, isa, isa, removeMetaAttribute, removeMetadataElement, serialize, serialize, serialize, setBuilder, setIndex, setMetaAttribute, setResource, setStore, updateInStore
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xbrlapi.Fragment
appendElementSchemeXPointer, appendID, getAllChildren, getAllChildrenIndices, getAncestorOrSelf, getChild, getChildren, getChildren, getChildrenIndices, getDataRootElement, getElementSchemeXPointerExpression, getIDXPointerExpression, getLabels, getLabels, getLabels, getLabelsWithLanguage, getLabelsWithLanguageAndResourceRole, getLabelsWithLanguageAndResourceRoleAndLinkRole, getLabelsWithResourceRole, getLanguage, getLanguage, getLanguageName, getLanguageName, getLocalname, getLocalnameFromQName, getNamespace, getNamespaceFromQName, getParent, getParentElement, getParentIndex, getPrefixFromQName, getReferences, getReferencesWithLanguage, getReferencesWithLanguageAndResourceRoleAndLinkRole, getReferencesWithLanguageAndRole, getReferencesWithResourceRole, getReferencingLocators, getSequenceToParentElement, getSequenceToParentElementAsString, getSimpleLinks, getURI, getXPath, getXPointerExpression, isAncestorOf, isChild, isNewFragment, isRoot, setParentIndex, setSequenceToParentElement, setURI
 
Methods inherited from interface org.xbrlapi.XML
appendMetadataElement, equals, getBuilder, getDocumentNode, getIndex, getMetaAttribute, getMetadataRootElement, getStore, getType, hashCode, hasMetaAttribute, isa, isa, removeMetaAttribute, removeMetadataElement, serialize, serialize, serialize, setBuilder, setIndex, setMetaAttribute, setResource, setStore, updateInStore
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

UsedOnImpl

public UsedOnImpl()
Method Detail

getUsedOnNamespace

public URI getUsedOnNamespace()
                       throws XBRLException
Specified by:
getUsedOnNamespace in interface UsedOn
Returns:
the namespace URI of the element that can be used on.
Throws:
XBRLException
See Also:
UsedOn.getUsedOnNamespace()

getUsedOnLocalname

public String getUsedOnLocalname()
                          throws XBRLException
Specified by:
getUsedOnLocalname in interface UsedOn
Returns:
the local name of the element that the custom XLINK link role, resource role, or arc role can be used on.
Throws:
XBRLException
See Also:
UsedOn.getUsedOnLocalname()

isUsedOn

public boolean isUsedOn(URI namespaceURI,
                        String localname)
                 throws XBRLException
Description copied from interface: UsedOn
Returns true only if the custom role type can be used on the specified element based on this usedOn fragment.

Specified by:
isUsedOn in interface UsedOn
Parameters:
namespaceURI - The namespace of the element being tested for
localname - The local name of the element being tested for
Throws:
XBRLException
See Also:
UsedOn.isUsedOn(URI, String)

Get Java XBRL API implementation at SourceForge.net.