Package thredds.cataloggen.config
Class DatasetNamer
- java.lang.Object
-
- thredds.cataloggen.config.DatasetNamer
-
public class DatasetNamer extends Object
Title: Catalog Generator
Description: Tool for generating THREDDS catalogs.
Copyright: Copyright (c) 2001
Company: UCAR/Unidata
-
-
Field Summary
Fields Modifier and Type Field Description protected PatternregExpPattern
-
Constructor Summary
Constructors Constructor Description DatasetNamer(InvDataset parentDs, String name, boolean addLevel, thredds.cataloggen.config.DatasetNamerType type, String matchPattern, String substitutePattern, String attribContainer, String attribName)ConstructorDatasetNamer(InvDataset parentDs, String name, String addLevelBoolean, String typeName, String matchPattern, String substitutePattern, String attribContainer, String attribName)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAddLevel()Return the value of the addLevel attribute of this DatasetNamer.StringgetAttribContainer()Return the value of the attribContainer attribute of this DatasetNamer.StringgetAttribName()Return the value of the attribName attribute of this DatasetNamer.StringgetMatchPattern()Return the value of the matchPattern attribute of this DatasetNamer.StringgetName()Return the name of this DatasetNamer.InvDatasetgetParentDataset()Return the parent dataset of this DatasetNamerStringgetSubstitutePattern()Return the value of the substitutePattern attribute of this DatasetNamer.thredds.cataloggen.config.DatasetNamerTypegetType()Return the type attribute of this DatasetNamer.booleannameDataset(InvDatasetImpl dataset)Try to name the given dataset.booleannameDatasetList(List datasetList)Try to name the given dataset.StringtoString()string representation
-
-
-
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.
-
-