thredds.cataloggen.config
Class DatasetNamer

java.lang.Object
  extended by 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

Version:
1.0
Author:
Ethan Davis

Field Summary
protected  Pattern regExpPattern
           
 
Constructor Summary
DatasetNamer(InvDataset parentDs, String name, boolean addLevel, thredds.cataloggen.config.DatasetNamerType type, String matchPattern, String substitutePattern, String attribContainer, String attribName)
          Constructor
DatasetNamer(InvDataset parentDs, String name, String addLevelBoolean, String typeName, String matchPattern, String substitutePattern, String attribContainer, String attribName)
          Constructor
 
Method Summary
 boolean getAddLevel()
          Return the value of the addLevel attribute of this DatasetNamer.
 String getAttribContainer()
          Return the value of the attribContainer attribute of this DatasetNamer.
 String getAttribName()
          Return the value of the attribName attribute of this DatasetNamer.
 String getMatchPattern()
          Return the value of the matchPattern attribute of this DatasetNamer.
 String getName()
          Return the name of this DatasetNamer.
 InvDataset getParentDataset()
          Return the parent dataset of this DatasetNamer
 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(List datasetList)
          Try to name the given dataset.
 String toString()
          string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

toString

public String toString()
string representation

Overrides:
toString in class Object

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


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.