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

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

public class Path
extends java.lang.Object

A path implementation to wrap the underlying data structure


Constructor Summary
Path()
          constructor
Path(PathElementInterface firstEntry)
          constructor
 
Method Summary
 void append(PathElementInterface element)
          add the PathElement to the end of the path
 void clear()
          Clears all PathElements, resulting in an empty path,
 PathElementInterface getLast()
          Gets the PathElement that is currently at the end of the path
 void removeLast()
          Deletes the PathElement that is currently at the end of the path
 java.lang.String toString()
          returns a String representation of all the elements in the Path,
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Path

public Path()
constructor


Path

public Path(PathElementInterface firstEntry)
constructor

Method Detail

append

public void append(PathElementInterface element)
add the PathElement to the end of the path

Parameters:
element - the PathElementInterface to be added

removeLast

public void removeLast()
Deletes the PathElement that is currently at the end of the path


getLast

public PathElementInterface getLast()
Gets the PathElement that is currently at the end of the path

Returns:
the PathElementInterface that was most recently added to path

clear

public void clear()
Clears all PathElements, resulting in an empty path,


toString

public java.lang.String toString()
returns a String representation of all the elements in the Path,

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


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