gov.nasa.pds.harvest.target
Class Target

java.lang.Object
  extended by gov.nasa.pds.harvest.target.Target

public class Target
extends Object

Class representation of a target. Can either be a directory, collection, or bundle.

Author:
mcayanan

Constructor Summary
Target(String file, Type type)
          Constructor.
 
Method Summary
 String getFilename()
          Gets the name of the file.
 Type getType()
          Returns the target type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Target

public Target(String file,
              Type type)
Constructor.

Parameters:
file - A file.
type - The target type.
Method Detail

getFilename

public String getFilename()
Gets the name of the file.

Returns:
the file name.

getType

public Type getType()
Returns the target type.

Returns:
A target type.


Copyright © 2010-2011 Planetary Data System. All Rights Reserved.