jpl.eda.archive.server
Class ElementList

java.lang.Object
  extended byjpl.eda.archive.server.ElementList

public class ElementList
extends java.lang.Object

This class builds a list of data elements with their associated attribute information.

Version:
$Revision: 1.5 $
Author:
D. Crichton, S. Hardman
See Also:
ElementAttrInfo

Constructor Summary
ElementList()
          Constructor given no arguments.
 
Method Summary
 void addElement(ElementAttrInfo elementAttrInfo)
          Add a data element to the list.
 void addElement(int elementId, java.lang.String elementName, java.lang.String dataType, java.lang.String coreFlag, int length, int scale, int minValue, int maxValue, java.lang.String metadataColumn, java.lang.String dcElement, java.lang.String description, java.lang.String mandatoryFlag, java.lang.String indexFlag)
          Add a data element to the list.
 int getCount()
          Get the number of data elements in the hash map.
 ElementAttrInfo getElementAttrInfo(int index)
          Get attribute information for the given data element represented by its array index.
 ElementAttrInfo getElementAttrInfo(java.lang.String elementName)
          Get attribute information for the given data element.
 ElementAttrInfo getElementAttrInfoDc(java.lang.String dcElement)
          Get attribute information for the given Dublin Core element map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementList

public ElementList()
Constructor given no arguments. This constructor creates an empty data element list.

Method Detail

addElement

public void addElement(int elementId,
                       java.lang.String elementName,
                       java.lang.String dataType,
                       java.lang.String coreFlag,
                       int length,
                       int scale,
                       int minValue,
                       int maxValue,
                       java.lang.String metadataColumn,
                       java.lang.String dcElement,
                       java.lang.String description,
                       java.lang.String mandatoryFlag,
                       java.lang.String indexFlag)
Add a data element to the list.

Parameters:
elementId - The identifier for the data element.
elementName - The name of the data element.
dataType - The data type of the value.
coreFlag - The core element flag.
length - The length of value allowed.
scale - The scale factor of the value.
minValue - The minimum value.
maxValue - The maximum value.
metadataColumn - The associated product metadata table column.
dcElement - The Dublin Core element mapped to this data element.
description - The description of the data element.
mandatoryFlag - The mandatory flag.
indexFlag - The index flag.

addElement

public void addElement(ElementAttrInfo elementAttrInfo)
Add a data element to the list.

Parameters:
elementAttrInfo - An element attribute information object.

getCount

public int getCount()
Get the number of data elements in the hash map. This ought to be called size to match the rest of Java, but instead it matches the rest of OODT.

Returns:
The number of data elements in the map.

getElementAttrInfo

public ElementAttrInfo getElementAttrInfo(java.lang.String elementName)
Get attribute information for the given data element. Element names are matched with case insensitive searching.

Parameters:
elementName - The name of the data element.
Returns:
Attribute information about the data element contained in a ElementAttrInfo object, or null if the data element is not in the list.

getElementAttrInfo

public ElementAttrInfo getElementAttrInfo(int index)
Get attribute information for the given data element represented by its array index.

Parameters:
index - The index of the data element representing its location in the array.
Returns:
Attribute information about the data element contained in a ElementAttrInfo object, or null if the data element is not in the list.

getElementAttrInfoDc

public ElementAttrInfo getElementAttrInfoDc(java.lang.String dcElement)
Get attribute information for the given Dublin Core element map. Element names are matched with case insensitive searching.

Parameters:
dcElement - The name of the Dublin Core element map.
Returns:
Attribute information about the data element contained in a ElementAttrInfo object, or null if the data element is not in the list.


Copyright © 1999-2005 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.