|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.pojo.XBRLPojoGenerator
public class XBRLPojoGenerator
Generates a POJO version of any other RS object version and recursively do the same for all required objects. For example, the generation of a com.ihr.xbrl.om.instance.XBRLInstance object will also convert the DTS objects, including the taxonomy, namespaces, linkbases, contexts etc etc.
If the conversion is launched for the storage of the object in a permanent repository
then it is required to set up this generator with a session object that will be used
for storing the data in the database.
if the session is not set then the conversion
cannot be stored in a database but can be used for any other purposes.
| Field Summary | |
|---|---|
static java.lang.String |
EXTERNAL_FILES_DOCUMENT_CONTENT_METHOD
The EXTERNAL_FILES_DOCUMENT_CONTENT_METHOD property indicates how the content "nodes" of an XBRL Document already loaded from an external web site is going to be transformed into a sequence of bytes for storage into the content of the DOCUMENTS table. |
static java.lang.String |
READSOURCE
This is another possible value for the EXTERNAL_FILES_DOCUMENT_CONTENT_METHOD property |
static java.lang.String |
SERIALIZE
This is the default value for the EXTERNAL_FILES_DOCUMENT_CONTENT_METHOD property |
| Constructor Summary | |
|---|---|
XBRLPojoGenerator()
|
|
XBRLPojoGenerator(java.util.Properties props)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EXTERNAL_FILES_DOCUMENT_CONTENT_METHOD
serialize: this is the default value. Means, the API will generate a new XBRLDocument (Taxonomy or Linkbase) from the original content. The new file will be semantically equivalent to the original one (same content) but may not be syntactically equal. The generation will always success because the document has been already loaded and validated. The generation is faster than obtaining it fron an external web site.
readsource: this will open a new http connection to the external web site and will read the content again from the original location.
public static final java.lang.String SERIALIZE
#EXTERNAL_FILES_DOCUMENT_CONTENT_METHOD},
Constant Field Valuespublic static final java.lang.String READSOURCE
#EXTERNAL_FILES_DOCUMENT_CONTENT_METHOD},
Constant Field Values| Constructor Detail |
|---|
public XBRLPojoGenerator()
public XBRLPojoGenerator(java.util.Properties props)
| Method Detail |
|---|
public XBRLInstance generate(XBRLInstance instance)
throws XBRLPojoGenerationException
XBRLPojoGenerationException
public XBRLInstance generate(XBRLInstance instance,
boolean bForUpdate)
throws XBRLPojoGenerationException
instance - RS Object model XBRL instancebForUpdate - boolean
XBRLPojoGenerationException
public XBRLInstance generate(XBRLInstance instance,
boolean bForUpdate,
java.lang.String pathConversionRule)
throws XBRLPojoGenerationException
instance - RS Object model XBRL instancebForUpdate - boolean
XBRLPojoGenerationException
public XBRLFactList generate(XBRLFactsList list)
throws XBRLPojoGenerationException
list -
XBRLPojoGenerationException
public XBRLFact generate(XBRLFact fact)
throws XBRLPojoGenerationException
fact -
XBRLPojoGenerationException
public XBRLFactItem generate(XBRLFactItem fact)
throws XBRLPojoGenerationException
fact -
XBRLPojoGenerationException
public XBRLFactTuple generate(XBRLFactTuple fact)
throws XBRLPojoGenerationException
fact -
XBRLPojoGenerationException
public XBRLFactString generate(XBRLFactNonNumeric fact)
throws XBRLPojoGenerationException
fact -
XBRLPojoGenerationException
public XBRLFactNumeric generate(XBRLFactNumeric fact)
throws XBRLPojoGenerationException
fact -
XBRLPojoGenerationExceptionpublic XBRLUnit generate(XBRLUnit unit)
unit -
public XBRLContext generate(XBRLContext context)
throws XBRLPojoGenerationException
context -
XBRLPojoGenerationException
public XBRLScenario generate(XBRLScenario scenario)
throws XBRLPojoGenerationException
scenario -
XBRLPojoGenerationExceptionpublic XBRLPeriod generate(XBRLPeriod period)
period -
public XBRLEntity generate(XBRLEntity entity)
throws XBRLPojoGenerationException
entity -
XBRLPojoGenerationException
public XBRLSegment generate(XBRLSegment segment)
throws XBRLPojoGenerationException
segment -
XBRLPojoGenerationException
public DTSContainer generate(DTSContainer dts)
throws XBRLPojoGenerationException
dts - Regular, non POJO, DTS Container
XBRLPojoGenerationException
public XBRLItem generate(XBRLItem dtsItem)
throws XBRLPojoGenerationException
XBRLPojoGenerationExceptionpublic QName generate(javax.xml.namespace.QName q)
q - QName
public Namespace generate(org.jdom.Namespace ns)
ns -
public XMLAttribute generate(XBRLAttribute dtsAtt)
throws XBRLPojoGenerationException
dtsAtt -
XBRLPojoGenerationException
public XBRLTuple generate(XBRLTuple dtsTuple)
throws XBRLPojoGenerationException
XBRLPojoGenerationException
public XBRLTaxonomy generate(XBRLTaxonomy dtsTaxonomy)
throws XBRLPojoGenerationException
XBRLPojoGenerationException
public XBRLImport generate(XBRLImport dtsImport)
throws XBRLPojoGenerationException
dtsImport -
XBRLPojoGenerationException
public XBRLResource generate(XBRLResource dtsRes)
throws XBRLPojoGenerationException
XBRLPojoGenerationException
public XBRLExtendedLink generate(XBRLExtendedLink dtsExtLink)
throws XBRLPojoGenerationException
dtsExtLink -
XBRLPojoGenerationException
public XBRLDocument generate(XBRLDocument dtsDoc)
throws XBRLPojoGenerationException
dtsDoc -
XBRLPojoGenerationException
public XBRLRelationship generate(XBRLRelationship dtsRel)
throws XBRLPojoGenerationException
dtsRel -
XBRLPojoGenerationException
public XMLFragment generate(XMLFragment node)
throws XBRLPojoGenerationException
node -
XBRLPojoGenerationException
public XBRLLinkbase generate(XBRLLinkbase dtsLinkbase)
throws XBRLPojoGenerationException
dtsLinkbase -
XBRLPojoGenerationException
public XBRLArcroleType generate(XBRLArcroleType dtsArcroleType)
throws XBRLPojoGenerationException
dtsArcroleType -
XBRLPojoGenerationException
public XBRLRoleType generate(XBRLRoleType dtsRoleType)
throws XBRLPojoGenerationException
dtsRoleType -
XBRLPojoGenerationException
public XBRLDocumentation generate(XBRLDocumentation dtsDoc)
throws XBRLPojoGenerationException
XBRLPojoGenerationException
public XBRLHasDocumentation generate(XBRLAllowsDocumentation parent)
throws XBRLPojoGenerationException
parent -
XBRLPojoGenerationException
public XBRLRoleArcroleType generate(XBRLRoleAndArcroleTypes parent)
throws XBRLPojoGenerationException
XBRLPojoGenerationException
public XBRLUsedOn generate(XBRLUsedOn dtsOn)
throws XBRLPojoGenerationException
dtsOn -
XBRLPojoGenerationExceptionpublic void registerBar(DTSLoadingBarInterface bar)
bar - public int getObjectsCount()
public java.lang.String getStatistics()
public void setSession(org.hibernate.Session session,
DbUtil.Database databaseType)
session - Session object to setdatabaseType -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||