org.xbrlapi.impl
Class CustomTypeImpl
java.lang.Object
org.xbrlapi.impl.FragmentImpl
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)
| 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 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 |
CustomTypeImpl
public CustomTypeImpl()
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 forlocalname - 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()