legacy/src/main/java/thredds/cataloggen/config/CatGenConfigMetadataFactory.java
private DatasetNamer readDatasetNamerElement( InvDataset parentDataset,
                                                 Element dsNamerElement)
  {
    String name = dsNamerElement.getAttributeValue( "name");
    String addLevel = dsNamerElement.getAttributeValue( "addLevel");
    String type = dsNamerElement.getAttributeValue( "type");
    String matchPattern = dsNamerElement.getAttributeValue( "matchPattern");
    String substitutePattern = dsNamerElement.getAttributeValue( "substitutePattern");
    String attribContainer = dsNamerElement.getAttributeValue( "attribContainer");
    String attribName = dsNamerElement.getAttributeValue( "attribName");

    DatasetNamer dsNamer = new DatasetNamer( parentDataset,
                                             name, addLevel, type,
                                             matchPattern, substitutePattern,
                                             attribContainer, attribName);

    return( dsNamer);
  }
private DatasetNamer readDatasetNamerElement( InvDataset parentDataset,
                                                 Element dsNamerElement)
  {
    String name = dsNamerElement.getAttributeValue( "name");
    String addLevel = dsNamerElement.getAttributeValue( "addLevel");
    String type = dsNamerElement.getAttributeValue( "type");
    String matchPattern = dsNamerElement.getAttributeValue( "matchPattern");
    String substitutePattern = dsNamerElement.getAttributeValue( "substitutePattern");
    String attribContainer = dsNamerElement.getAttributeValue( "attribContainer");
    String attribName = dsNamerElement.getAttributeValue( "attribName");

    DatasetNamer dsNamer = new DatasetNamer( parentDataset,
                                             name, addLevel, type,
                                             matchPattern, substitutePattern,
                                             attribContainer, attribName);

    return( dsNamer);
  }
private DatasetNamer readDatasetNamerElement ( InvDataset parentDataset , Element dsNamerElement ) { String name = dsNamerElement . getAttributeValue ( "name" ) ; String addLevel = dsNamerElement . getAttributeValue ( "addLevel" ) ; String type = dsNamerElement . getAttributeValue ( "type" ) ; String matchPattern = dsNamerElement . getAttributeValue ( "matchPattern" ) ; String substitutePattern = dsNamerElement . getAttributeValue ( "substitutePattern" ) ; String attribContainer = dsNamerElement . getAttributeValue ( "attribContainer" ) ; String attribName = dsNamerElement . getAttributeValue ( "attribName" ) ; DatasetNamer dsNamer = new DatasetNamer ( parentDataset , name , addLevel , type , matchPattern , substitutePattern , attribContainer , attribName ) ; return ( dsNamer ) ; }
Return a DatasetNamer when given a 'datasetNamer' JDOM element.
Return a DatasetNamer when given a datasetNamer JDOM element .