Class DatasetNamer


  • public class DatasetNamer
    extends Object

    Title: Catalog Generator

    Description: Tool for generating THREDDS catalogs.

    Copyright: Copyright (c) 2001

    Company: UCAR/Unidata

    • Field Detail

      • regExpPattern

        protected Pattern regExpPattern
    • Constructor Detail

      • DatasetNamer

        public DatasetNamer​(InvDataset parentDs,
                            String name,
                            String addLevelBoolean,
                            String typeName,
                            String matchPattern,
                            String substitutePattern,
                            String attribContainer,
                            String attribName)
        Constructor
        Parameters:
        parentDs -
        name -
        addLevelBoolean -
        typeName -
        matchPattern -
        substitutePattern -
        attribContainer -
        attribName -
      • DatasetNamer

        public DatasetNamer​(InvDataset parentDs,
                            String name,
                            boolean addLevel,
                            thredds.cataloggen.config.DatasetNamerType type,
                            String matchPattern,
                            String substitutePattern,
                            String attribContainer,
                            String attribName)
        Constructor
        Parameters:
        parentDs -
        name -
        addLevel -
        type -
        matchPattern -
        substitutePattern -
        attribContainer -
        attribName -
    • Method Detail

      • getParentDataset

        public InvDataset getParentDataset()
        Return the parent dataset of this DatasetNamer
      • getName

        public String getName()
        Return the name of this DatasetNamer.
        Returns:
        String name of this DatasetNamer
      • getAddLevel

        public boolean getAddLevel()
        Return the value of the addLevel attribute of this DatasetNamer.
        Returns:
        boolean addLevel attribute value for this DatasetNamer
      • getType

        public thredds.cataloggen.config.DatasetNamerType getType()
        Return the type attribute of this DatasetNamer.
        Returns:
        DatasetNamerType type value for this DatasetNamer
      • getMatchPattern

        public String getMatchPattern()
        Return the value of the matchPattern attribute of this DatasetNamer.
        Returns:
        String value of matchPattern
      • getSubstitutePattern

        public String getSubstitutePattern()
        Return the value of the substitutePattern attribute of this DatasetNamer.
        Returns:
        String - value of substitutePattern
      • getAttribContainer

        public String getAttribContainer()
        Return the value of the attribContainer attribute of this DatasetNamer.
        Returns:
        String - value of attribContainer
      • getAttribName

        public String getAttribName()
        Return the value of the attribName attribute of this DatasetNamer.
        Returns:
        String - value of attribName
      • nameDataset

        public boolean nameDataset​(InvDatasetImpl dataset)
        Try to name the given dataset.
      • nameDatasetList

        public boolean nameDatasetList​(List datasetList)
                                throws Exception
        Try to name the given dataset.
        Throws:
        Exception