XBRLAPI

A Java API for XBRL


org.xbrlapi.impl
Class CustomTypeImpl

java.lang.Object
  extended by org.xbrlapi.impl.FragmentImpl
      extended by org.xbrlapi.impl.CustomTypeImpl
All Implemented Interfaces:
Comparable<Fragment>, CustomType, Fragment
Direct Known Subclasses:
ArcroleTypeImpl, RoleTypeImpl

public class CustomTypeImpl
extends FragmentImpl
implements CustomType

Author:
Geoffrey Shuetrim (geoff@galexy.net)

Field Summary
 
Fields inherited from class org.xbrlapi.impl.FragmentImpl
logger
 
Constructor Summary
CustomTypeImpl()
           
 
Method Summary
 String getCustomTypeId()
          Get the id of the customType.
 String getCustomURI()
          Get the custom URI being defined.
 String getDefinition()
          Get the string value of the role Definition.
 FragmentList<UsedOn> getUsedOns()
           
 boolean isUsedCorrectly(Fragment fragment)
           
 boolean isUsedOn(String namespaceURI, String localname)
          Returns true only if the arcrole can be used on the specified element
 
Methods inherited from class org.xbrlapi.impl.FragmentImpl
appendElementSchemeXPointer, appendID, appendMetadataElement, compareTo, equals, getAllChildren, getAncestorOrSelf, getBuilder, getChild, getChildren, getDataRootElement, getDocumentNode, getFragmentIndex, getLabels, getLabels, getLabelsWithLanguage, getLabelsWithLanguage, getLabelsWithLanguageAndRole, getLabelsWithLanguageAndRole, getLabelsWithRole, getLabelsWithRole, getLocalname, getLocalnameFromQName, getMetaAttribute, getMetadataRootElement, getNamespaceFromQName, getNamespaceURI, getNetworks, getNetworksFromWithArcrole, getNetworksFromWithRoleAndArcrole, getNetworksWithArcrole, getParent, getParentElement, getParentIndex, getPrecedingSiblings, getPrefixFromQName, getReferences, getReferencingLocators, getRelationshipsToWithArcrole, getRelatives, getResource, getSequenceToParentElement, getSequenceToParentElementAsString, getSimpleLinks, getStore, getType, getURI, getXPath, hashCode, isa, isNewFragment, removeElementSchemeXPointer, removeID, removeMetaAttribute, removeMetadataElement, removeRelationship, setBuilder, setFragmentIndex, setMetaAttribute, setParentIndex, setPrecedingSiblings, setResource, setSequenceToParentElement, setStore, setURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xbrlapi.Fragment
appendElementSchemeXPointer, appendID, appendMetadataElement, equals, getAllChildren, getAncestorOrSelf, getBuilder, getDataRootElement, getDocumentNode, getFragmentIndex, getLabels, getLabels, getLabelsWithLanguage, getLabelsWithLanguage, getLabelsWithLanguageAndRole, getLabelsWithLanguageAndRole, getLabelsWithRole, getLabelsWithRole, getLocalname, getLocalnameFromQName, getMetaAttribute, getMetadataRootElement, getNamespaceFromQName, getNamespaceURI, getNetworks, getNetworksFromWithArcrole, getNetworksFromWithRoleAndArcrole, getNetworksWithArcrole, getParent, getParentElement, getParentIndex, getPrecedingSiblings, getPrefixFromQName, getReferences, getReferencingLocators, getRelationshipsToWithArcrole, getRelatives, getResource, getSequenceToParentElement, getSequenceToParentElementAsString, getSimpleLinks, getStore, getType, getURI, getXPath, hashCode, isa, isNewFragment, removeElementSchemeXPointer, removeID, removeMetaAttribute, removeMetadataElement, removeRelationship, setBuilder, setFragmentIndex, setMetaAttribute, setParentIndex, setPrecedingSiblings, setResource, setSequenceToParentElement, setStore, setURI
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

CustomTypeImpl

public CustomTypeImpl()
Method Detail

getCustomTypeId

public String getCustomTypeId()
                       throws XBRLException
Get the id of the customType.

Specified by:
getCustomTypeId in interface CustomType
Returns:
the id of the custom type or null if none is provided
Throws:
XBRLException
See Also:
CustomType.getCustomTypeId()

getCustomURI

public String getCustomURI()
                    throws XBRLException
Get the custom URI being defined.

Specified by:
getCustomURI in interface CustomType
Returns:
the custom URI being defined.
Throws:
XBRLExceptio - if the custom URI is not specified.
XBRLException
See Also:
CustomType.getCustomURI()

getDefinition

public String getDefinition()
                     throws XBRLException
Get the string value of the role Definition.

Specified by:
getDefinition in interface CustomType
Returns:
the string value of the role description or null if none is provided.
Throws:
XBRLException.
XBRLException
See Also:
CustomType.getDefinition()

isUsedCorrectly

public boolean isUsedCorrectly(Fragment fragment)
                        throws XBRLException
Specified by:
isUsedCorrectly in interface CustomType
Parameters:
fragment - The fragment to be tested to determine if the custom role has been used correctly based on usedOn constraints.
Returns:
true if the custom role has been used correctly on the fragment being checked. Returns false otherwise.
Throws:
XBRLException
See Also:
CustomType.isUsedCorrectly(Fragment)

isUsedOn

public boolean isUsedOn(String namespaceURI,
                        String localname)
                 throws XBRLException
Returns true only if the arcrole can be used on the specified element

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

getUsedOns

public FragmentList<UsedOn> getUsedOns()
                                throws XBRLException
Specified by:
getUsedOns in interface CustomType
Returns:
the list of usedOn child fragments.
Throws:
XBRLException
See Also:
CustomType.getUsedOns()

SourceForge Logo