edu.ucsb.nceas.morpho.plugins.metadisplay
Class History

java.lang.Object
  extended byedu.ucsb.nceas.morpho.plugins.metadisplay.History

public class History
extends java.lang.Object

A history implementation to wrap the underlying data structure


Constructor Summary
History()
          constructor
History(edu.ucsb.nceas.morpho.plugins.metadisplay.HistoryItem item)
          constructor
 
Method Summary
 void add(edu.ucsb.nceas.morpho.plugins.metadisplay.HistoryItem item)
          add the String identifier to the most-recent slot in history
 void deletePrevious()
          Deletes the String identifier that was most recently added to history
 edu.ucsb.nceas.morpho.plugins.metadisplay.HistoryItem getNewHistoryItemInstance(java.lang.String id, java.util.Properties params)
          public accessro for protected class; primarily for testing
 edu.ucsb.nceas.morpho.plugins.metadisplay.HistoryItem getPrevious()
          Gets the String identifier that was most recently added to history, and actually removes it from history
 java.lang.String previewPreviousID()
          Looks at the String identifier that was most recently added to history, without actually removing it from history
 java.lang.String toString()
          returns a String representation of all the elements in the History, without actually removing them from history
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

History

public History()
constructor


History

public History(edu.ucsb.nceas.morpho.plugins.metadisplay.HistoryItem item)
constructor

Method Detail

add

public void add(edu.ucsb.nceas.morpho.plugins.metadisplay.HistoryItem item)
add the String identifier to the most-recent slot in history


deletePrevious

public void deletePrevious()
Deletes the String identifier that was most recently added to history


getPrevious

public edu.ucsb.nceas.morpho.plugins.metadisplay.HistoryItem getPrevious()
Gets the String identifier that was most recently added to history, and actually removes it from history

Returns:
the String identifier that was most recently added to history

previewPreviousID

public java.lang.String previewPreviousID()
Looks at the String identifier that was most recently added to history, without actually removing it from history

Returns:
the String identifier that was most recently added to history. Returns null if the History is empty

toString

public java.lang.String toString()
returns a String representation of all the elements in the History, without actually removing them from history

Returns:
the String representation of all the elements in the History

getNewHistoryItemInstance

public edu.ucsb.nceas.morpho.plugins.metadisplay.HistoryItem getNewHistoryItemInstance(java.lang.String id,
                                                                                       java.util.Properties params)
public accessro for protected class; primarily for testing



Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.