|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.om.XMLFragment
com.ihr.xbrl.om.XMLDocumentURI
com.ihr.xbrl.om.XBRLDocument
com.ihr.xbrl.om.taxonomy.XBRLTaxonomy
public class XBRLTaxonomy
Provides the properties of an XBRL Taxonomy Information Item
The [Parent] property is the parent class XBRLDocument
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.ihr.xbrl.om.XBRLValidation |
|---|
XBRLValidation.Direction |
| Field Summary | |
|---|---|
static javax.xml.namespace.QName |
schemaNodeName
The document node name |
| Fields inherited from class com.ihr.xbrl.om.XBRLDocument |
|---|
INSTANCE, IXBRL, LINKBASE, TAXONOMY |
| Fields inherited from class com.ihr.xbrl.om.XMLFragment |
|---|
CONCEPT_LABEL, CONCEPT_QNAME, EMPTYRELATIONSHIPSITERATORINSTANCE, EMPTYXMLFRAGMENTITERATORINSTANCE, FACT_CONCEPT_DATATYPE, FACT_CONCEPT_LABEL, FACT_QNAME, idQName, NO_POSITION, OrderComparator, PERIOD_TYPE, PERIOD_VALUE, SHORT_TEXT, SOURCE_DOCUMENT, XPATH, XPOINTER |
| Constructor Summary | |
|---|---|
XBRLTaxonomy(DTSContainer dts)
Creates a new empty XBRLTaxonomy instance. |
|
XBRLTaxonomy(DTSContainer dts,
java.net.URI txBase,
java.net.URI txUri,
boolean bAddToCache,
XBRLDTSDocument parent)
Creates a new XBRLTaxonomy instance. |
|
XBRLTaxonomy(XMLDocumentURI docURI,
boolean bAddToCache)
Creates a new XBRLTaxonomy instance from an XMLDocumentURI. |
|
| Method Summary | |
|---|---|
void |
addArcroleType(XBRLArcroleType arcrole)
Adds a new arcrole type to the set of arcrole types defined in this taxonomy. |
void |
addElement(XMLElementDefinition newElement)
Add a new element to the taxonomy |
void |
addGlobalAttribute(XMLFragment attributeDefinitionHeaderNode)
Adds a new global attribute definition to this taxonomy schema. |
void |
addGlobalAttributeGroup(XMLFragment attributeGroupDefinitionHeaderNode)
Adds a new global attributeGroup definition to this taxonomy schema. |
void |
addGlobalGroup(XMLFragment groupDefinitionHeaderNode)
Adds a new global attributeGroup definition to this taxonomy schema. |
void |
addGlobalType(XMLFragment typeDefinitionHeaderNode)
Adds a new global type definition to this taxonomy schema. |
void |
addImport(XBRLImport imp)
Adds a new import to this taxonomy |
void |
addInclude(XBRLInclude inc)
Adds an XBRLInclude to this taxonomy |
void |
addLinkbase(XBRLLinkbase linkbase)
Adds a linkbase object to this taxonomy. |
void |
addRoleType(XBRLRoleType role)
Adds a new role type to the set of role types defined in this taxonomy. |
void |
addXMLChild(XMLHasParent child)
|
void |
clear()
Frees-up used memory This method should not be invoqued on live objects in the DTS. |
XMLElementDefinition |
convertNodeInfo(net.sf.saxon.s9api.XdmNode ni)
This method is used internally by the XBRL API in order to create an XMLElementDefinition from an XdmNode |
void |
delElement(XMLElementDefinition element)
Deletes an element from the taxonomy This function will not delete the relationships the element participates on. |
boolean |
delGlobalAttribute(java.lang.String name)
Removes a Global attribute definition from this taxonomy schema. |
boolean |
delGlobalAttributeGroup(java.lang.String name)
Removes a Global attributeGroup definition from this taxonomy schema. |
boolean |
delGlobalGroup(java.lang.String name)
Removes a Global group definition from this taxonomy schema. |
boolean |
delGlobalType(java.lang.String name)
Removes a Global Type definition from this taxonomy schema. |
void |
discoverDTS(XBRLDTSDocument parent)
All derived classes MUST implement this method and provide the functionality according to section 3.2 of the XBRL 2.1 specification |
org.jdom.Document |
generateDocNode(boolean relativize,
java.net.URI base)
This class has to be implemented by objects derived from XBRLDocument and must return a org.jdom.Document node with the content of this XBRLDocument object |
XBRLArcroleType |
getArcroleTypeByURI(java.lang.String uri)
Access to an arcrole type definition for a given URI if that arcrole type exists on this taxonomy. returns null if there is no such arcrole type for the given URI. |
java.util.Iterator<XBRLArcroleType> |
getArcroleTypes()
Returns an iterator over all arcrole types defined in this taxonomy. |
java.util.Iterator<XMLElementDefinition> |
getConcepts()
Access to the [Concepts] property This method does not return non XBRL concep definitions |
int |
getDTSDocumentType()
Returns the type of DTS Document |
java.lang.String |
getDTSDocumentTypeName()
|
XMLElementDefinition |
getElementDefinitionById(java.lang.String id)
Finds the element definition based on the element name and returns an XMLDocument that can be an XMLDocument, an XBRLItem or an XBRLTuple Returns null if not found |
XMLFragment |
getElementDefinitionByName(java.lang.String name)
Finds the element definition based on the element name and returns an XMLDocument that can be an XMLFragment, an XBRLItem or an XBRLTuple Returns null if not found |
java.util.Iterator<XMLFragment> |
getElements()
For complex type resources this returns an iterator with all children XML fragments Tthis method may be overwriten by other classes in the hierarchy |
XBRLExtendedLink |
getExtendedLink(net.sf.saxon.s9api.XdmNode key)
|
java.lang.String |
getFriendlyName()
Returns a string description that represents the element content in a form that users can understand. |
java.util.Iterator<java.lang.String> |
getGlobalAtributeGroups()
Access to an iterator over all global attribute groups |
XMLFragment |
getGlobalAttributeByName(java.lang.String name)
Returns a global attribute defined in this taxonomy schema by its name. |
XMLFragment |
getGlobalAttributeGroupByName(java.lang.String name)
Returns a global attributeGroup defined in this taxonomy schema by its name. |
java.util.Iterator<java.lang.String> |
getGlobalAttributes()
Access to an iterator over all global attributes |
XMLFragment |
getGlobalGroupByName(java.lang.String name)
Returns a global group defined in this taxonomy schema by its name. |
java.util.Iterator<java.lang.String> |
getGlobalGroups()
Access to an iterator over all element groups defined |
XMLFragment |
getGlobalTypeByName(java.lang.String name)
Returns a global type defined in this taxonomy schema by its name or null if the taxonomy schema has no a definition for a global type under the type name used in the name parameter. |
java.util.Iterator<java.lang.String> |
getGlobalTypes()
Access to an iterator over all global types defined in the taxonomy. |
XBRLTaxonomy |
getImport(java.net.URI namespace)
Return the XBRLTaxonomy imported for the namespace or null if the schema for the namespace is not imported. |
java.util.Iterator<XBRLImport> |
getImports()
Return an iterator of all defined imports |
java.util.Iterator<XBRLInclude> |
getIncludes()
Access to the includes declared on this taxonomy |
java.util.Iterator<XBRLItem> |
getItems()
Access to the [Items] property |
java.util.Iterator<XBRLLinkbase> |
getLinkbases()
Return an iterator of all defined linkbases |
int |
getNumberOfItemDeclarations()
Returns the number of XBRL items defined in this XBRLTaxonomy. |
int |
getNumberOfTupleDeclarations()
Returns the number of XBRL tuples defined in this XBRLTaxonomy. |
XBRLRoleType |
getRoleTypeByURI(java.lang.String uri)
Access to a role type definition for a given URI if that role type exists on this taxonomy. returns null if there is no such role type for the given URI. |
java.util.Iterator<XBRLRoleType> |
getRoleTypes()
Returns an iterator over all role types defined in this taxonomy. |
com.saxonica.schema.PreparedSchema |
getSchema()
Deprecated. |
java.lang.String |
getTargetNamespace()
Access to the [Namespace] Property |
java.util.Iterator<XBRLTuple> |
getTuples()
Access to the [Tuples] property |
void |
readInfoset()
Read all structures that builds the infoset |
void |
removeArcroleType(XBRLArcroleType arcrole)
Removes an arcrole type from the set of arcrole types defined in this taxonomy. |
void |
removeImport(XBRLImport imp)
Remove an existing import |
boolean |
removeInclude(XBRLInclude inc)
Removes am include form this taxonomy |
void |
removeLinkbase(XBRLLinkbase linkbase)
Removes a linkbase object that is referenced in this taxonomy. |
void |
removeRoleType(XBRLRoleType role)
Removes a role type from the set of role types defined in this taxonomy. |
void |
removeXMLChild(XMLHasParent child)
|
void |
setDocumentAndReload(net.sf.saxon.s9api.XdmNode node)
This method is called by the XMLFragment object each time the surrounding XdmNode object is set. |
void |
setTargetNamespace(java.lang.String targetNamespace)
Sets or changes the targetNamespace for this schema |
| Methods inherited from class com.ihr.xbrl.om.XBRLDocument |
|---|
addExtendedLink, addIdOfElement, addIdOfElement, addParent, changeElementId, changeExtendedLinkKey, createDocument, createDocument, delParent, equals, getAllUsedIds, getComments, getDocument, getDTS, getElementById, getExtendedLinks, getExtendedLinks, getParents, hashCode, isIdUsed, moveNamespacesUp, removeExtendedLink, removeIdOfElement, save, setComments, updateXML |
| Methods inherited from class com.ihr.xbrl.om.XMLDocumentURI |
|---|
addChild, delChild, generateLocatorToDocument, getBase, getChildren, getDocumentURI, getDTSKey, getLocalFile, getValidationReport, invalidate, invalidate, isInDTS, isOnValidation, setURI, validate |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final javax.xml.namespace.QName schemaNodeName
| Constructor Detail |
|---|
public XBRLTaxonomy(DTSContainer dts,
java.net.URI txBase,
java.net.URI txUri,
boolean bAddToCache,
XBRLDTSDocument parent)
throws DTSDiscoveryException
dts - current DTSContainer for the new XBRLTaxonomytxBase - the base URI for the creation of this taxonomytxUri - the taxonomy URI (official absolute URI)bAddToCache - boolean, true if the document should be added to the DTSContainer cache of read documents.parent - XBRLDTSDocument that is the parent of this document, this is only used if there are errors reading the document. Can be null.
DTSDiscoveryException
public XBRLTaxonomy(XMLDocumentURI docURI,
boolean bAddToCache)
throws DTSDiscoveryException
docURI - bAddToCache -
DTSDiscoveryExceptionpublic XBRLTaxonomy(DTSContainer dts)
The taxonomy will not have any parent object and will not be added to the set of
taxonomies that belongs to the DTSContainer object. See DTSContainer.addDocumentToDTS(XBRLDTSDocument)
in order to allow DTSContainer.save(boolean) to serialize the taxonomy
to XML nodes. Don't forget to set a file name to this taxonomy before calling
the save method. see XMLDocumentURI.setURI(URI) for more information.
dts - the DTSContainer object.| Method Detail |
|---|
public void clear()
throws java.lang.Throwable
XMLFragmentThis method should not be invoqued on live objects in the DTS. It is automatically invoqued by the API when an object is no longer used and referenced by other objects. It is save not to call it directly.
clear in interface XBRLDTSDocumentclear in class XBRLDocumentjava.lang.Throwable
public void setDocumentAndReload(net.sf.saxon.s9api.XdmNode node)
throws XBRLInconsistentDTSException,
com.rs.lic.LicenseVerificationException
XMLFragmentOverwrite this method in parent objects in order to refresh objects that depends on the surrounding XML nodes.
setDocumentAndReload in class XBRLDocumentnode - the new XdmNode
XBRLInconsistentDTSException
com.rs.lic.LicenseVerificationException@Deprecated public com.saxonica.schema.PreparedSchema getSchema()
public java.lang.String getTargetNamespace()
public void setTargetNamespace(java.lang.String targetNamespace)
targetNamespace - public int getDTSDocumentType()
XBRLDocument
getDTSDocumentType in class XBRLDocumentpublic java.util.Iterator<XMLElementDefinition> getConcepts()
XBRLValidationExceptionpublic java.util.Iterator<XBRLItem> getItems()
XBRLValidationExceptionpublic java.util.Iterator<XBRLTuple> getTuples()
XBRLValidationExceptionpublic void addElement(XMLElementDefinition newElement)
newElement -
XBRLDuplicateException - if the element name already exist or
the id is already used by another elementpublic void delElement(XMLElementDefinition element)
This function will not delete the relationships the element participates on.
If the desire is to remove the concept from the taxonomy and the relationships
form existing extended links use the DTSContainer.delConcept(QName)
method instead.
element - public XMLFragment getElementDefinitionByName(java.lang.String name)
name - Element name
XBRLValidationException
public XMLElementDefinition getElementDefinitionById(java.lang.String id)
throws XBRLValidationException
id - Element id
XBRLValidationExceptionpublic java.lang.String getDTSDocumentTypeName()
getDTSDocumentTypeName in class XBRLDocumentpublic java.util.Iterator<XBRLInclude> getIncludes()
public java.util.Iterator<XBRLImport> getImports()
public XMLFragment getGlobalTypeByName(java.lang.String name)
name - the type name
public java.util.Iterator<java.lang.String> getGlobalTypes()
public XMLFragment getGlobalAttributeByName(java.lang.String name)
name - the attribute name
public java.util.Iterator<java.lang.String> getGlobalAttributes()
public XMLFragment getGlobalAttributeGroupByName(java.lang.String name)
name - the attributeGroup name
public java.util.Iterator<java.lang.String> getGlobalAtributeGroups()
public XMLFragment getGlobalGroupByName(java.lang.String name)
name - the group name
public java.util.Iterator<java.lang.String> getGlobalGroups()
public boolean delGlobalType(java.lang.String name)
name - the global type name
public boolean delGlobalAttribute(java.lang.String name)
name - the global attribute name
public boolean delGlobalAttributeGroup(java.lang.String name)
name - the global attributeGroup name
public boolean delGlobalGroup(java.lang.String name)
name - the global group name
public void addGlobalType(XMLFragment typeDefinitionHeaderNode)
The parameter must contain all nodes representing the type definition as nested XMLFragment objects
typeDefinitionHeaderNode - the first XMLFragment object. Must be a complexType node or
a simpleType node with an attribute o name "name". the attribute value will be
used in order to obtain the type name.public void addGlobalAttribute(XMLFragment attributeDefinitionHeaderNode)
The parameter must contain all nodes representing the attribute definition as nested XMLFragment objects
attributeDefinitionHeaderNode - the first XMLFragment object. Must be a xs:attribute node
with an attribute named "name". the attribute value will be
used in order to obtain the attribute name.public void addGlobalAttributeGroup(XMLFragment attributeGroupDefinitionHeaderNode)
The parameter must contain all nodes representing the attributeGroup definition as nested XMLFragment objects
attributeGroupDefinitionHeaderNode - the first XMLFragment object. Must be a xs:attributeGroup node
with an attribute named "name". the attribute value will be
used in order to obtain the attribute name.public void addGlobalGroup(XMLFragment groupDefinitionHeaderNode)
The parameter must contain all nodes representing the attributeGroup definition as nested XMLFragment objects
groupDefinitionHeaderNode - the first XMLFragment object. Must be a xs:attributeGroup node
with an attribute named "name". the attribute value will be
used in order to obtain the attribute name.public XBRLTaxonomy getImport(java.net.URI namespace)
namespace -
XBRLValidationExceptionpublic java.util.Iterator<XBRLLinkbase> getLinkbases()
XBRLValidationException - if duplicate IDs exists on extended links or the links are not XBRL linkbasespublic void addLinkbase(XBRLLinkbase linkbase)
linkbase -
XBRLInconsistentDTSExceptionpublic void removeLinkbase(XBRLLinkbase linkbase)
linkbase - to remove
public XBRLExtendedLink getExtendedLink(net.sf.saxon.s9api.XdmNode key)
throws DTSDiscoveryException
getExtendedLink in class XBRLDocumentDTSDiscoveryException
public void discoverDTS(XBRLDTSDocument parent)
throws DTSDiscoveryException,
com.rs.lic.LicenseVerificationException
XBRLDocument
discoverDTS in interface XBRLDTSDocumentdiscoverDTS in class XBRLDocumentDTSDiscoveryException
com.rs.lic.LicenseVerificationExceptionpublic void addRoleType(XBRLRoleType role)
The XBRLRoleType object automatically calls this method when a parent is set to a role type.
role - XBRLRoleType to be added
XBRLDuplicateException - if there is another roleType for the same URIpublic void removeRoleType(XBRLRoleType role)
The XBRLRoleType object automatically calls this method when a parent is set to a role type.
role - XBRLRoleType to be removedpublic java.util.Iterator<XBRLRoleType> getRoleTypes()
public XBRLRoleType getRoleTypeByURI(java.lang.String uri)
uri - as a String
public void addArcroleType(XBRLArcroleType arcrole)
The XBRLArcroleType object automatically calls this method when a parent is set to an arcrole type.
arcrole - XBRLArcroleType to be added
XBRLDuplicateException - if there is another roleType for the same URIpublic void removeArcroleType(XBRLArcroleType arcrole)
The XBRLArcroleType object automatically calls this method when a parent is set to an arcrole type.
arcrole - XBRLArcroleType to be removedpublic java.util.Iterator<XBRLArcroleType> getArcroleTypes()
public XBRLArcroleType getArcroleTypeByURI(java.lang.String uri)
uri - as a String
public XMLElementDefinition convertNodeInfo(net.sf.saxon.s9api.XdmNode ni)
throws XBRLValidationException
ni - XdmNode
XBRLValidationException
public void readInfoset()
throws XBRLValidationException
XBRLDocument
readInfoset in class XBRLDocumentXBRLValidationExceptionpublic int getNumberOfItemDeclarations()
This is concept definitions that are in the xbrli:item substitution group or has xbrli:item on any on its ancestors in the substitution group hierarchy.
public int getNumberOfTupleDeclarations()
This is concept definitions that are in the xbrli:tuple substitution group or has xbrli:tuple on any on its ancestors in the substitution group hierarchy.
public org.jdom.Document generateDocNode(boolean relativize,
java.net.URI base)
throws XBRLSerializationException
XBRLDocument
generateDocNode in class XBRLDocumentrelativize - boolean indicating if all URIs must be relativizedbase - URI the base uri to relativize other URIs
XBRLSerializationExceptionpublic void removeImport(XBRLImport imp)
imp - XBRLImportpublic void addInclude(XBRLInclude inc)
inc - public boolean removeInclude(XBRLInclude inc)
inc -
public void addXMLChild(XMLHasParent child)
throws XBRLInconsistentDTSException
addXMLChild in interface XMLHasParentaddXMLChild in class XMLFragmentXBRLInconsistentDTSExceptionpublic void removeXMLChild(XMLHasParent child)
removeXMLChild in interface XMLHasParentremoveXMLChild in class XMLFragment
public void addImport(XBRLImport imp)
throws XBRLInconsistentDTSException
imp - XBRLImport
XBRLInconsistentDTSExceptionpublic java.util.Iterator<XMLFragment> getElements()
XMLFragment
getElements in class XMLFragmentpublic java.lang.String getFriendlyName()
XMLFragmentRemarks, this method may return very long names not suitable for user interface
getFriendlyName in class XMLFragment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||