private org . jdom2 . Element createCatGenConfigElement ( CatalogGenConfig cgc ) { // @todo Need to deal with the 0.6 and 1.0 namespaces. Element cgcElem = new Element ( "catalogGenConfig" , CATALOG_GEN_CONFIG_NAMESPACE_0_5 ) ; if ( cgc != null ) { if ( cgc . getType ( ) != null ) { cgcElem . setAttribute ( "type" , cgc . getType ( ) . toString ( ) ) ; } // Add 'datasetSource' element DatasetSource dsSource = cgc . getDatasetSource ( ) ; cgcElem . addContent ( createDatasetSourceElement ( dsSource ) ) ; } return ( cgcElem ) ; }
Create a catalogGenConfig JDOM element