public class DatasetNamer
extends java.lang.Object
Title: Catalog Generator
Description: Tool for generating THREDDS catalogs.
Copyright: Copyright (c) 2001
Company: UCAR/Unidata
Modifier and Type | Field and Description |
---|---|
protected java.util.regex.Pattern |
regExpPattern |
Constructor and Description |
---|
DatasetNamer(InvDataset parentDs,
java.lang.String name,
boolean addLevel,
thredds.cataloggen.config.DatasetNamerType type,
java.lang.String matchPattern,
java.lang.String substitutePattern,
java.lang.String attribContainer,
java.lang.String attribName)
Constructor
|
DatasetNamer(InvDataset parentDs,
java.lang.String name,
java.lang.String addLevelBoolean,
java.lang.String typeName,
java.lang.String matchPattern,
java.lang.String substitutePattern,
java.lang.String attribContainer,
java.lang.String attribName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAddLevel()
Return the value of the addLevel attribute of this DatasetNamer.
|
java.lang.String |
getAttribContainer()
Return the value of the attribContainer attribute of this DatasetNamer.
|
java.lang.String |
getAttribName()
Return the value of the attribName attribute of this DatasetNamer.
|
java.lang.String |
getMatchPattern()
Return the value of the matchPattern attribute of this DatasetNamer.
|
java.lang.String |
getName()
Return the name of this DatasetNamer.
|
InvDataset |
getParentDataset()
Return the parent dataset of this DatasetNamer
|
java.lang.String |
getSubstitutePattern()
Return the value of the substitutePattern attribute of this DatasetNamer.
|
thredds.cataloggen.config.DatasetNamerType |
getType()
Return the type attribute of this DatasetNamer.
|
boolean |
nameDataset(InvDatasetImpl dataset)
Try to name the given dataset.
|
boolean |
nameDatasetList(java.util.List datasetList)
Try to name the given dataset.
|
java.lang.String |
toString()
string representation
|
public DatasetNamer(InvDataset parentDs, java.lang.String name, java.lang.String addLevelBoolean, java.lang.String typeName, java.lang.String matchPattern, java.lang.String substitutePattern, java.lang.String attribContainer, java.lang.String attribName)
parentDs
- name
- addLevelBoolean
- typeName
- matchPattern
- substitutePattern
- attribContainer
- attribName
- public DatasetNamer(InvDataset parentDs, java.lang.String name, boolean addLevel, thredds.cataloggen.config.DatasetNamerType type, java.lang.String matchPattern, java.lang.String substitutePattern, java.lang.String attribContainer, java.lang.String attribName)
parentDs
- name
- addLevel
- type
- matchPattern
- substitutePattern
- attribContainer
- attribName
- public InvDataset getParentDataset()
public java.lang.String getName()
public boolean getAddLevel()
public thredds.cataloggen.config.DatasetNamerType getType()
public java.lang.String getMatchPattern()
public java.lang.String getSubstitutePattern()
public java.lang.String getAttribContainer()
public java.lang.String getAttribName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean nameDataset(InvDatasetImpl dataset)
public boolean nameDatasetList(java.util.List datasetList) throws java.lang.Exception
java.lang.Exception