XBRLAPI

A Java API for XBRL


org.xbrlapi.xdt
Class TypedDimensionImpl

java.lang.Object
  extended by org.xbrlapi.impl.XMLImpl
      extended by org.xbrlapi.impl.FragmentImpl
          extended by org.xbrlapi.impl.SchemaContentImpl
              extended by org.xbrlapi.impl.SchemaDeclarationImpl
                  extended by org.xbrlapi.impl.SchemaContentDeclarationImpl
                      extended by org.xbrlapi.impl.ElementDeclarationImpl
                          extended by org.xbrlapi.impl.ConceptImpl
                              extended by org.xbrlapi.xdt.XDTConceptImpl
                                  extended by org.xbrlapi.xdt.DimensionImpl
                                      extended by org.xbrlapi.xdt.TypedDimensionImpl
All Implemented Interfaces:
Serializable, Comparable<XML>, Concept, ElementDeclaration, Fragment, Link, SchemaContent, SchemaContentDeclaration, SchemaDeclaration, SimpleLink, Dimension, TypedDimension, XDTConcept, Xlink, XML

public class TypedDimensionImpl
extends DimensionImpl
implements TypedDimension, SimpleLink

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

Field Summary
 
Fields inherited from class org.xbrlapi.impl.XMLImpl
logger
 
Constructor Summary
TypedDimensionImpl()
           
 
Method Summary
 URI getAbsoluteHref()
          Get the absolute value of the HREF to the metadata.
 URI getArcrole()
          Get the link arcrole attribute value, before any resolution.
 String getAttribute(String name)
          Get a no-namespace attribute value.
 String getAttribute(URI namespace, String localname)
          Get a non-xlink attribute value.
 String getHref()
          Get the link HREF attribute value, before any resolution.
 URI getLinkRole()
           
 Fragment getTarget()
           
 URI getTargetDocumentURI()
           
protected  URI getTargetDocumentURI(URI uri)
          Get the URI of the document containing the fragment targetted by the supplied URI.
protected  String getTargetPointerValue(String pointer)
          Get the value of the XPointer that corresponds to the XPointer information stored in the metadata of all fragments.
 String getTitleAttribute()
          Get the title (The xlink:title attribute value).
 Title getTitleElement(int index)
          Get a specific title fragment
 List<Title> getTitleElements()
          Get a list of titles (The xlink:title children elements).
 String getXlinkType()
          Get the xlink type (The xxlink:type attribute value).
 void setTarget(URI uri)
          Set metadata about the target of the simple link.
 
Methods inherited from class org.xbrlapi.xdt.DimensionImpl
isExplicitDimension, isTypedDimension
 
Methods inherited from class org.xbrlapi.impl.ConceptImpl
getBalance, getFactCount, getFactIndices, getFacts, getPeriodType, getPresentationNetworkLinkroles, getRootFacts, getSchema, isNumeric
 
Methods inherited from class org.xbrlapi.impl.ElementDeclarationImpl
getLocalComplexType, getMaxOccurs, getMinOccurs, getSubstitutionGroupDeclaration, getSubstitutionGroupLocalname, getSubstitutionGroupNamespace, getSubstitutionGroupNamespaceAlias, getSubstitutionGroupQName, hasLocalComplexType, hasSubstitutionGroup, isAbstract, isBlockingExtension, isBlockingRestriction, isBlockingSubstitution, isFinalForExtension, isFinalForRestriction, isItem, isNillable, isTuple, substitutesFor
 
Methods inherited from class org.xbrlapi.impl.SchemaContentDeclarationImpl
getDefault, getFixed, getForm, getLocalType, getTypeDeclaration, getTypeLocalname, getTypeNamespace, getTypeNamespaceAlias, getTypeQName, hasLocalType, hasTypeReference, isFixed, isGlobal
 
Methods inherited from class org.xbrlapi.impl.SchemaDeclarationImpl
getName, getReferencedSchemaDeclaration, getReferenceLocalname, getReferenceNamespace, getReferenceNamespaceAlias, getReferenceQName, hasReference
 
Methods inherited from class org.xbrlapi.impl.SchemaContentImpl
getAnnotations, getOtherAttribute, getOtherAttributes, getSchemaId, getTargetNamespace, hasOtherAttribute
 
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.xdt.Dimension
isExplicitDimension, isTypedDimension
 
Methods inherited from interface org.xbrlapi.Concept
getBalance, getFactCount, getFactIndices, getFacts, getPeriodType, getPresentationNetworkLinkroles, getRootFacts, isNumeric
 
Methods inherited from interface org.xbrlapi.ElementDeclaration
getLocalComplexType, getMaxOccurs, getMinOccurs, getSubstitutionGroupDeclaration, getSubstitutionGroupLocalname, getSubstitutionGroupNamespace, getSubstitutionGroupNamespaceAlias, getSubstitutionGroupQName, hasLocalComplexType, hasSubstitutionGroup, isAbstract, isBlockingExtension, isBlockingRestriction, isBlockingSubstitution, isFinalForExtension, isFinalForRestriction, isItem, isNillable, isTuple, substitutesFor
 
Methods inherited from interface org.xbrlapi.SchemaContentDeclaration
getDefault, getFixed, getForm, getLocalType, getTypeDeclaration, getTypeLocalname, getTypeNamespace, getTypeNamespaceAlias, getTypeQName, hasLocalType, hasTypeReference, isFixed, isGlobal
 
Methods inherited from interface org.xbrlapi.SchemaDeclaration
getName, getReferencedSchemaDeclaration, getReferenceLocalname, getReferenceNamespace, getReferenceNamespaceAlias, getReferenceQName, hasReference
 
Methods inherited from interface org.xbrlapi.SchemaContent
getAnnotations, getOtherAttribute, getOtherAttributes, getSchema, getSchemaId, getTargetNamespace, hasOtherAttribute
 
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

TypedDimensionImpl

public TypedDimensionImpl()
Method Detail

getLinkRole

public URI getLinkRole()
                throws XBRLException
Specified by:
getLinkRole in interface Link
Returns:
the link role (The xlink:role attribute value).
Throws:
XBRLException
See Also:
Link.getLinkRole()

getXlinkType

public String getXlinkType()
                    throws XBRLException
Description copied from interface: Xlink
Get the xlink type (The xxlink:type attribute value). This is one of simple or extended

Specified by:
getXlinkType in interface Xlink
Throws:
XBRLException
See Also:
Xlink.getXlinkType()

getTitleAttribute

public String getTitleAttribute()
                         throws XBRLException
Description copied from interface: Xlink
Get the title (The xlink:title attribute value).

Specified by:
getTitleAttribute in interface Xlink
Returns:
the value of the xlink:title attribute or null if none is supplied.
Throws:
XBRLException
See Also:
Xlink.getTitleAttribute()

getTitleElements

public List<Title> getTitleElements()
                             throws XBRLException
Description copied from interface: Xlink
Get a list of titles (The xlink:title children elements).

Specified by:
getTitleElements in interface Xlink
Returns:
a fragment list of title elements or null if there are none.
Throws:
XBRLException
See Also:
Xlink.getTitleElements()

getTitleElement

public Title getTitleElement(int index)
                      throws XBRLException
Get a specific title fragment

Specified by:
getTitleElement in interface Xlink
Parameters:
index - The index of the required title element
Returns:
the title fragment or null if there are no title children elements.
Throws:
XBRLException - if the index is out of bounds
See Also:
Xlink.getTitleElement(int)

getAttribute

public String getAttribute(URI namespace,
                           String localname)
                    throws XBRLException
Description copied from interface: Xlink
Get a non-xlink attribute value.

Specified by:
getAttribute in interface Xlink
Parameters:
namespace - The namespace of the attribute to retrieve
localname - The local name of the attribute to retrieve
Throws:
XBRLException - if the namespace URI is for the XLink namespace.
See Also:
Xlink.getAttribute(URI, String)

getAttribute

public String getAttribute(String name)
                    throws XBRLException
Description copied from interface: Xlink
Get a no-namespace attribute value.

Specified by:
getAttribute in interface Xlink
Parameters:
name - The name of the no-namespace attribute to retrieve
Throws:
XBRLException
See Also:
Xlink.getAttribute(String)

getTargetDocumentURI

protected URI getTargetDocumentURI(URI uri)
                            throws XBRLException
Get the URI of the document containing the fragment targetted by the supplied URI.

Parameters:
uri - The supplied URI for decomposition.
Returns:
The URI of the the document containing the fragment targetted by the supplied URI.
Throws:
XBRLException

getTargetPointerValue

protected String getTargetPointerValue(String pointer)
                                throws XBRLException
Get the value of the XPointer that corresponds to the XPointer information stored in the metadata of all fragments.

Parameters:
pointer - The String value of the XPointer supplied in the URI.
Returns:
The value of the XPointer corresponding to the XPointer information stored in the metadata of all fragments. Returns the empty string if the XPointer does not specify an element scheme or ID based shorthand pointer value.
Throws:
XBRLException

setTarget

public void setTarget(URI uri)
               throws XBRLException
Description copied from interface: SimpleLink
Set metadata about the target of the simple link. This includes, the absolute URI, the target document URI and the XPointer value used to identify part of the target document.

Specified by:
setTarget in interface SimpleLink
Throws:
XBRLException
See Also:
SimpleLink.setTarget(URI)

getHref

public String getHref()
               throws XBRLException
Description copied from interface: SimpleLink
Get the link HREF attribute value, before any resolution.

Specified by:
getHref in interface SimpleLink
Throws:
XBRLException
See Also:
SimpleLink.getHref()

getAbsoluteHref

public URI getAbsoluteHref()
                    throws XBRLException
Description copied from interface: SimpleLink
Get the absolute value of the HREF to the metadata.

Specified by:
getAbsoluteHref in interface SimpleLink
Returns:
The absolute URI specified by the locator HREF attribute. This includes the query and fragment parts of the URI (if there are any) and has NOT been adjusted to reflect any URI matching features. of the data store.
Throws:
XBRLException
See Also:
SimpleLink.getAbsoluteHref()

getTargetDocumentURI

public URI getTargetDocumentURI()
                         throws XBRLException
Specified by:
getTargetDocumentURI in interface SimpleLink
Returns:
the document URI for the target fragment.
Throws:
XBRLException.
XBRLException

getArcrole

public URI getArcrole()
               throws XBRLException
Description copied from interface: SimpleLink
Get the link arcrole attribute value, before any resolution.

Specified by:
getArcrole in interface SimpleLink
Throws:
XBRLException
See Also:
SimpleLink.getArcrole()

getTarget

public Fragment getTarget()
                   throws XBRLException
Specified by:
getTarget in interface SimpleLink
Returns:
the single fragment referenced by the simple link null if none is found.
Throws:
XBRLException
See Also:
SimpleLink.getTarget()

Get Java XBRL API implementation at SourceForge.net.