Package ucar.unidata.data
Class DataGroup
java.lang.Object
ucar.unidata.data.DataGroup
A generic base class that represents a source of data.
- Version:
- $Revision: 1.21 $
- Author:
- Jeff McWhirter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataGroup
getDataGroup
(String groupName) Get the DataGroup of the specified nameGet the Description property.getElement
(Document doc) Create an xml element that represents this data groupstatic List
Get the list of DataGroupsgetName()
Get the Name property.Get the parameter setstatic void
Initialize from XML.static void
init
(XmlResourceCollection xrc, boolean andClear) Initialize from XML.static List
readGroups
(Element root, Hashtable groupMap, boolean merge) Construct the groups from XML.void
setDescription
(String value) Set the Description property.void
Set the Name property.void
setParamSets
(List l) Set the list of param setstoString()
tostring
-
Constructor Details
-
DataGroup
public DataGroup()The bean ctor -
DataGroup
Create a new DataGroup with the specified name- Parameters:
groupName
- name of group
-
DataGroup
copy ctor- Parameters:
that
- that
-
-
Method Details
-
getDataGroup
Get the DataGroup of the specified name- Parameters:
groupName
- name of group- Returns:
- DataGroup for that name (or null if it does not exist).
-
getGroups
Get the list of DataGroups- Returns:
- list of DataGroups
-
setName
Set the Name property.- Parameters:
value
- The new value for Name
-
getName
Get the Name property.- Returns:
- The Name
-
getParamSets
Get the parameter set- Returns:
- List of parameters
-
setParamSets
Set the list of param sets- Parameters:
l
- list
-
init
Initialize from XML.- Parameters:
xrc
- resource collection
-
init
Initialize from XML.- Parameters:
xrc
- resource collectionandClear
- If true then clear any current state and reinitialize
-
getElement
Create an xml element that represents this data group- Parameters:
doc
- doc to use- Returns:
- the element
-
toString
tostring -
readGroups
Construct the groups from XML.- Parameters:
root
- root XML element.groupMap
- groupmerge
- Try to merge the new DataGroups into the ones defined in groupMap- Returns:
- List of groups
-
setDescription
Set the Description property.- Parameters:
value
- The new value for Description
-
getDescription
Get the Description property.- Returns:
- The Description
-