org.xbrlapi.impl
Class MixedContentResourceImpl
java.lang.Object
org.xbrlapi.impl.XMLImpl
org.xbrlapi.impl.FragmentImpl
org.xbrlapi.impl.ExtendedLinkContentImpl
org.xbrlapi.impl.ArcEndImpl
org.xbrlapi.impl.ResourceImpl
org.xbrlapi.impl.MixedContentResourceImpl
- All Implemented Interfaces:
- Serializable, Comparable<XML>, ArcEnd, ExtendedLinkContent, Fragment, MixedContentResource, Resource, Xlink, XML
- Direct Known Subclasses:
- EntityResourceImpl, FootnoteResourceImpl, LabelResourceImpl, MeasureResourceImpl, ReferenceResourceImpl
public class MixedContentResourceImpl
- extends ResourceImpl
- implements MixedContentResource
- Author:
- Geoffrey Shuetrim (geoff@galexy.net)
- See Also:
- Serialized Form
| 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 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 |
MixedContentResourceImpl
public MixedContentResourceImpl()
getContentAsNodeList
public NodeList getContentAsNodeList()
throws XBRLException
- Description copied from interface:
MixedContentResource
- Get the value of the resource as a NodeList containing all of the children
elements and text nodes nested in the resource.
- Specified by:
getContentAsNodeList in interface MixedContentResource
- Returns:
- a list of child nodes of the resource including attributes,
XHTML elements, and text nodes.
- Throws:
XBRLException- See Also:
MixedContentResource.getContentAsNodeList()
getContentAsXHTMLString
public String getContentAsXHTMLString()
throws XBRLException
- Specified by:
getContentAsXHTMLString in interface MixedContentResource
- Returns:
- the content of the resource as a string serialising the XHTML content
of the resource. If the resource only contains a string without XHTML markup
then that string is what is returned.
- Throws:
XBRLException- See Also:
MixedContentResource.getContentAsXHTMLString()
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
- Description copied from interface:
Xlink
- Get a list of titles (The xlink:title children elements).
Returns null if there are no title children elements.
- Specified by:
getTitleElement in interface Xlink
- Parameters:
index - The index of the required title element
- Returns:
- The specified title fragment
- Throws:
XBRLException- 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 retrievelocalname - 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 targeted by the
supplied URI.
- Parameters:
uri - The supplied URI for decomposition.
- Returns:
- The URI of the the document containing the fragment targeted 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