thredds.cataloggen.config
Class DatasetNamer

java.lang.Object
  extended by thredds.cataloggen.config.DatasetNamer

public class DatasetNamer
extends java.lang.Object

Title: Catalog Generator

Description: Tool for generating THREDDS catalogs.

Copyright: Copyright (c) 2001

Company: UCAR/Unidata

Version:
1.0
Author:
Ethan Davis

Constructor Summary
DatasetNamer(InvDataset parentDs, java.lang.String name, boolean addLevel, 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
 
Method Summary
 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.
 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.
 void setAddLevel(boolean addLevel)
          Set the value of the addLevel attribute
 void setAttribContainer(java.lang.String attContainer)
          Set the value of the attribContainer attribute
 void setAttribName(java.lang.String attName)
          Set the value of the attribute Name attribute
 void setMatchPattern(java.lang.String mPat)
          Set the value of the matchPattern attribute
 void setName(java.lang.String name)
          Set name attribute for this DatasetNamer
 void setParentDataset(InvDataset parentDataset)
          Set the type of this DatasetNamer
 void setSubstitutePattern(java.lang.String sPat)
          Set the value of the substututePattern attribute
 void setType(DatasetNamerType type)
          Set the value of the type attribute
 void setType(java.lang.String typeName)
          Set the value of the type attribute
 java.lang.String toString()
          string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatasetNamer

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)
Constructor

Parameters:
parentDs -
name -
addLevelBoolean -
typeName -
matchPattern -
substitutePattern -
attribContainer -
attribName -

DatasetNamer

public DatasetNamer(InvDataset parentDs,
                    java.lang.String name,
                    boolean addLevel,
                    DatasetNamerType type,
                    java.lang.String matchPattern,
                    java.lang.String substitutePattern,
                    java.lang.String attribContainer,
                    java.lang.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


setParentDataset

public void setParentDataset(InvDataset parentDataset)
Set the type of this DatasetNamer


getName

public java.lang.String getName()
Return the name of this DatasetNamer.

Returns:
String name of this DatasetNamer

setName

public void setName(java.lang.String name)
Set name attribute for this DatasetNamer

Parameters:
name -

getAddLevel

public boolean getAddLevel()
Return the value of the addLevel attribute of this DatasetNamer.

Returns:
boolean addLevel attribute value for this DatasetNamer

setAddLevel

public void setAddLevel(boolean addLevel)
Set the value of the addLevel attribute

Parameters:
addLevel -

getType

public DatasetNamerType getType()
Return the type attribute of this DatasetNamer.

Returns:
DatasetNamerType type value for this DatasetNamer

setType

public void setType(java.lang.String typeName)
Set the value of the type attribute

Parameters:
typeName - String

setType

public void setType(DatasetNamerType type)
Set the value of the type attribute

Parameters:
type - DatasetNamerType

getMatchPattern

public java.lang.String getMatchPattern()
Return the value of the matchPattern attribute of this DatasetNamer.

Returns:
String value of matchPattern

setMatchPattern

public void setMatchPattern(java.lang.String mPat)
Set the value of the matchPattern attribute

Parameters:
mPat -

getSubstitutePattern

public java.lang.String getSubstitutePattern()
Return the value of the substitutePattern attribute of this DatasetNamer.

Returns:
String - value of substitutePattern

setSubstitutePattern

public void setSubstitutePattern(java.lang.String sPat)
Set the value of the substututePattern attribute

Parameters:
sPat -

getAttribContainer

public java.lang.String getAttribContainer()
Return the value of the attribContainer attribute of this DatasetNamer.

Returns:
String - value of attribContainer

setAttribContainer

public void setAttribContainer(java.lang.String attContainer)
Set the value of the attribContainer attribute

Parameters:
attContainer -

getAttribName

public java.lang.String getAttribName()
Return the value of the attribName attribute of this DatasetNamer.

Returns:
String - value of attribName

setAttribName

public void setAttribName(java.lang.String attName)
Set the value of the attribute Name attribute

Parameters:
attName -

toString

public java.lang.String toString()
string representation

Overrides:
toString in class java.lang.Object

nameDataset

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


nameDatasetList

public boolean nameDatasetList(java.util.List datasetList)
                        throws java.lang.Exception
Try to name the given dataset.

Throws:
java.lang.Exception