org.xbrlapi.impl
Class TypeDeclarationImpl
java.lang.Object
org.xbrlapi.impl.XMLImpl
org.xbrlapi.impl.FragmentImpl
org.xbrlapi.impl.SchemaContentImpl
org.xbrlapi.impl.SchemaDeclarationImpl
org.xbrlapi.impl.TypeDeclarationImpl
- All Implemented Interfaces:
- Serializable, Comparable<XML>, Fragment, SchemaContent, SchemaDeclaration, TypeDeclaration, XML
- Direct Known Subclasses:
- ComplexTypeDeclarationImpl, SimpleTypeDeclarationImpl
public class TypeDeclarationImpl
- extends SchemaDeclarationImpl
- implements TypeDeclaration
- 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 |
TypeDeclarationImpl
public TypeDeclarationImpl()
getFinal
public String getFinal()
throws XBRLException
- Specified by:
getFinal in interface TypeDeclaration
- Returns:
- the final attribute value or null if there is none.
One of #all or list of extension and restriction
- Throws:
XBRLException- See Also:
TypeDeclaration.getFinal()
isFinal
public boolean isFinal()
throws XBRLException
- Specified by:
isFinal in interface TypeDeclaration
- Returns:
- true iff the type declaration cannot be extended or restricted.
- Throws:
XBRLException- See Also:
TypeDeclaration.isFinal()
isFinalForExtension
public boolean isFinalForExtension()
throws XBRLException
- Specified by:
isFinalForExtension in interface TypeDeclaration
- Returns:
- true iff the type declaration cannot be extended.
- Throws:
XBRLException- See Also:
TypeDeclaration.isFinalForExtension()
isFinalForRestriction
public boolean isFinalForRestriction()
throws XBRLException
- Specified by:
isFinalForRestriction in interface TypeDeclaration
- Returns:
- true iff the type declaration cannot be restricted.
- Throws:
XBRLException- See Also:
TypeDeclaration.isFinalForRestriction()
isDerivedFrom
public boolean isDerivedFrom(TypeDeclaration candidate)
throws XBRLException
- Specified by:
isDerivedFrom in interface TypeDeclaration
- Parameters:
candidate - the type declaration that this type may be derived from.
- Returns:
- true if this type declaration is or is derived from the specified
ancestor type declaration.
- Throws:
XBRLException- See Also:
TypeDeclaration.isDerivedFrom(org.xbrlapi.TypeDeclaration)
isDerivedFrom
public boolean isDerivedFrom(URI namespace,
String name)
throws XBRLException
- Specified by:
isDerivedFrom in interface TypeDeclaration
- Parameters:
namespace - The namespace of the prospective type.name - The local name of the prospective type.
- Returns:
- true if this type declaration is or is derived from the specified type declaration.
- Throws:
XBRLException - if there is no type declaration with the given namespace and name.- See Also:
TypeDeclaration.isDerivedFrom(java.net.URI, java.lang.String)
getParentType
public TypeDeclaration getParentType()
throws XBRLException
- Specified by:
getParentType in interface TypeDeclaration
- Returns:
- the type that this type extends or restricts or null if the type that
is extended or restricted is a type defined in the XML Schema specifications.
- Throws:
XBRLException- See Also:
TypeDeclaration.getParentType()
getParentTypeLocalname
public String getParentTypeLocalname()
throws XBRLException
- Specified by:
getParentTypeLocalname in interface TypeDeclaration
- Returns:
- the local name of the type that this type declaration extends or restricts.
- Throws:
XBRLException- See Also:
TypeDeclaration.getParentTypeLocalname()
getParentTypeNamespace
public URI getParentTypeNamespace()
throws XBRLException
- Specified by:
getParentTypeNamespace in interface TypeDeclaration
- Returns:
- the namespace of the type that this type declaration extends or restricts.
- Throws:
XBRLException- See Also:
TypeDeclaration.getParentTypeNamespace()
isNumericItemType
public boolean isNumericItemType()
throws XBRLException
- Specified by:
isNumericItemType in interface TypeDeclaration
- Returns:
- true if the type is derived from or is an XBRL numeric item type.
- Throws:
XBRLException- See Also:
TypeDeclaration.isNumericItemType()