org.neociclo.odetteftp
Enum OdetteFtpVersion

java.lang.Object
  extended by java.lang.Enum<OdetteFtpVersion>
      extended by org.neociclo.odetteftp.OdetteFtpVersion
All Implemented Interfaces:
Serializable, Comparable<OdetteFtpVersion>

public enum OdetteFtpVersion
extends Enum<OdetteFtpVersion>

Version:
$Rev: 411 $ $Date: 2010-06-21 11:55:04 -0300 (Mon, 21 Jun 2010) $
Author:
Rafael Marins

Enum Constant Summary
OFTP_V12
          ODETTE-FTP version 1.2 as specified by ODETTE Organization
OFTP_V13
          ODETTE FTP version 1.3 as specified in RFC 2204
OFTP_V14
          ODETTE FTP version 1.4 as detailed in RFC 5024
OFTP_V20
          ODETTE FTP version 2.0 as specified in RFC 5024
 
Method Summary
 int getProtocolLevel()
           
 boolean isEarlier(OdetteFtpVersion otherVersion)
           
 boolean isEqualOrEarlier(OdetteFtpVersion otherVersion)
           
 boolean isEqualOrOlder(OdetteFtpVersion otherVersion)
           
 boolean isOlder(OdetteFtpVersion otherVersion)
           
static OdetteFtpVersion parse(int protocolLevel)
           
 String toString()
           
static OdetteFtpVersion valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OdetteFtpVersion[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OFTP_V12

public static final OdetteFtpVersion OFTP_V12
ODETTE-FTP version 1.2 as specified by ODETTE Organization


OFTP_V13

public static final OdetteFtpVersion OFTP_V13
ODETTE FTP version 1.3 as specified in RFC 2204


OFTP_V14

public static final OdetteFtpVersion OFTP_V14
ODETTE FTP version 1.4 as detailed in RFC 5024


OFTP_V20

public static final OdetteFtpVersion OFTP_V20
ODETTE FTP version 2.0 as specified in RFC 5024

Method Detail

values

public static OdetteFtpVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OdetteFtpVersion c : OdetteFtpVersion.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OdetteFtpVersion valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

parse

public static OdetteFtpVersion parse(int protocolLevel)

getProtocolLevel

public int getProtocolLevel()

toString

public String toString()
Overrides:
toString in class Enum<OdetteFtpVersion>

isEqualOrEarlier

public boolean isEqualOrEarlier(OdetteFtpVersion otherVersion)

isEarlier

public boolean isEarlier(OdetteFtpVersion otherVersion)

isOlder

public boolean isOlder(OdetteFtpVersion otherVersion)

isEqualOrOlder

public boolean isEqualOrOlder(OdetteFtpVersion otherVersion)


ACCORD