com.dynalivery.saffron.client
Class DestinationType

java.lang.Object
  extended bycom.dynalivery.saffron.client.DestinationType

public class DestinationType
extends java.lang.Object

This class defines the Saffron export destination types.


Field Summary
static int LOCAL
          the destination is local to the Saffron server
static int NULL
          the destination is not the FileSystem
static int REMOTE
          the destination is the client which is remote with respect to the Saffron server
protected static java.lang.String[] typeStrings
           
 
Constructor Summary
DestinationType()
           
 
Method Summary
static java.lang.String getTypeString(int destinationType)
          Returns a descriptive String for the specified destination type
static void validate(int destinationType)
          Validate the specified destination type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOTE

public static final int REMOTE
the destination is the client which is remote with respect to the Saffron server

See Also:
Constant Field Values

LOCAL

public static final int LOCAL
the destination is local to the Saffron server

See Also:
Constant Field Values

NULL

public static final int NULL
the destination is not the FileSystem

See Also:
Constant Field Values

typeStrings

protected static final java.lang.String[] typeStrings
Constructor Detail

DestinationType

public DestinationType()
Method Detail

validate

public static void validate(int destinationType)
                     throws InvalidParameterException
Validate the specified destination type

Parameters:
destinationType - the destination type (e.g. DestinationType.REMOTE)
Throws:
InvalidParameterException - thrown if destination type is invalid

getTypeString

public static java.lang.String getTypeString(int destinationType)
                                      throws InvalidParameterException
Returns a descriptive String for the specified destination type

Parameters:
destinationType - the destination type (e.g. DestinationType.REMOTE)
Returns:
a descriptive String for the specified destination type
Throws:
InvalidParameterException - thrown if destination type is invalid