private CatalogGenConfig readCatGenConfigElement ( InvDataset parentDataset , Element catGenConfElement ) { String type = catGenConfElement . getAttributeValue ( "type" ) ; CatalogGenConfig catGenConf = new CatalogGenConfig ( parentDataset , type ) ; // get any datasetSource elements java . util . List list = catGenConfElement . getChildren ( "datasetSource" , catGenConfElement . getNamespace ( ) ) ; for ( int i = 0 ; i < list . size ( ) ; i ++ ) { Element dsSourceElement = ( Element ) list . get ( i ) ; catGenConf . setDatasetSource ( readDatasetSourceElement ( parentDataset , dsSourceElement ) ) ; } // @todo Start only allowing datasetSource elements in catalogGenConfig elements. // // get any datasetNamer elements // list = catGenConfElement.getChildren( "datasetNamer", catGenConfElement.getNamespace() ); // for (int i=0; i< list.size(); i++) // { // Element dsNamerElement = (Element) list.get(i); // // catGenConf.addDatasetNamer( readDatasetNamerElement( parentDataset, // dsNamerElement)); // } return ( catGenConf ) ; }
Return a CatalogGenConfig when given a catalogGenConfig JDOM element .