Class XMLPSet

java.lang.Object
gov.nih.mipav.model.file.XMLPSet
All Implemented Interfaces:
Serializable

public class XMLPSet extends Object implements Serializable

Title: PSet

Description: Public class to store up to an infinite number of parameters... which will be in a Hashtable with name as the key Note: there must be at least one parameter associated with each parameter set per XSD (XML Schema)

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
not attributable
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • currentParameterName

      private String currentParameterName
      Current parameter name.
    • description

      private String description
      Description of parameter.
    • parameterTable

      private Hashtable<String,XMLParameter> parameterTable
      Parameter hashtable.
  • Constructor Details

    • XMLPSet

      public XMLPSet(String description)
      Create a new parameter set with the given description.
      Parameters:
      description - String description of parameter set
  • Method Details

    • addParameter

      public void addParameter(String name)
      Adds a new parameter to the set.
      Parameters:
      name - String name
    • containsKey

      public boolean containsKey(String key)
      Determines if the set contains a parameter with the given name.
      Parameters:
      key - String parameter name (key)
      Returns:
      boolean set contains parameter
    • getCurrentParameter

      public XMLParameter getCurrentParameter()
      Returns the current parameter to be modified.
      Returns:
      Parameter current parameter
    • getDescription

      public String getDescription()
      Get the parameter set description.
      Returns:
      String description
    • setDescription

      public void setDescription(String desc)
    • getParameter

      public XMLParameter getParameter(String name)
      Gets the parameter with the given name.
      Parameters:
      name - DOCUMENT ME!
      Returns:
      Parameter parameter
    • getParameterKeys

      public Enumeration<String> getParameterKeys()
      Get an enumeration for the list of parameter names.
      Returns:
      Enumeration enumeration for parameter name list
    • getTable

      public Hashtable<String,XMLParameter> getTable()
      Gets the hashtable of parameters.
      Returns:
      Hashtable parameter hashtable
    • removeParameter

      public void removeParameter(String name)
      Removes the parameter with the given name from the hashtable.
      Parameters:
      name - String parameter name
    • toString

      public String toString()
      Returns a String representation of the Set.
      Overrides:
      toString in class Object
      Returns:
      String string representation