legacy/src/main/java/thredds/cataloggen/config/CatGenConfigMetadataFactory.java
private org.jdom2.Element createResultServiceElement( ResultService resultService)
  {
    Element rsElem = new Element("resultService", CATALOG_GEN_CONFIG_NAMESPACE_0_5);
    if ( resultService != null)
    {
      // Add 'name' attribute.
      if ( resultService.getName() != null)
      {
        rsElem.setAttribute( "name", resultService.getName());
      }

      // Add 'serviceType' attribute.
      if ( resultService.getServiceType() != null)
      {
        rsElem.setAttribute( "serviceType", resultService.getServiceType().toString());
      }

      // Add 'base' attribute.
      if ( resultService.getBase() != null)
      {
        rsElem.setAttribute( "base", resultService.getBase());
      }

      // Add 'suffix' attribute.
      if ( resultService.getSuffix() != null)
      {
        rsElem.setAttribute( "suffix", resultService.getSuffix());
      }

      // Add 'accessPointHeader' attribute.
      if ( resultService.getAccessPointHeader() != null)
      {
        rsElem.setAttribute( "accessPointHeader", resultService.getAccessPointHeader());
      }
    }

    return( rsElem);
  }
private org.jdom2.Element createResultServiceElement( ResultService resultService)
  {
    Element rsElem = new Element("resultService", CATALOG_GEN_CONFIG_NAMESPACE_0_5);
    if ( resultService != null)
    {
      // Add 'name' attribute.
      if ( resultService.getName() != null)
      {
        rsElem.setAttribute( "name", resultService.getName());
      }

      // Add 'serviceType' attribute.
      if ( resultService.getServiceType() != null)
      {
        rsElem.setAttribute( "serviceType", resultService.getServiceType().toString());
      }

      // Add 'base' attribute.
      if ( resultService.getBase() != null)
      {
        rsElem.setAttribute( "base", resultService.getBase());
      }

      // Add 'suffix' attribute.
      if ( resultService.getSuffix() != null)
      {
        rsElem.setAttribute( "suffix", resultService.getSuffix());
      }

      // Add 'accessPointHeader' attribute.
      if ( resultService.getAccessPointHeader() != null)
      {
        rsElem.setAttribute( "accessPointHeader", resultService.getAccessPointHeader());
      }
    }

    return( rsElem);
  }
private org . jdom2 . Element createResultServiceElement ( ResultService resultService ) { Element rsElem = new Element ( "resultService" , CATALOG_GEN_CONFIG_NAMESPACE_0_5 ) ; if ( resultService != null ) { // Add 'name' attribute. if ( resultService . getName ( ) != null ) { rsElem . setAttribute ( "name" , resultService . getName ( ) ) ; } // Add 'serviceType' attribute. if ( resultService . getServiceType ( ) != null ) { rsElem . setAttribute ( "serviceType" , resultService . getServiceType ( ) . toString ( ) ) ; } // Add 'base' attribute. if ( resultService . getBase ( ) != null ) { rsElem . setAttribute ( "base" , resultService . getBase ( ) ) ; } // Add 'suffix' attribute. if ( resultService . getSuffix ( ) != null ) { rsElem . setAttribute ( "suffix" , resultService . getSuffix ( ) ) ; } // Add 'accessPointHeader' attribute. if ( resultService . getAccessPointHeader ( ) != null ) { rsElem . setAttribute ( "accessPointHeader" , resultService . getAccessPointHeader ( ) ) ; } } return ( rsElem ) ; }
Create a 'ResultService' JDOM element
Create a ResultService JDOM element