org.neociclo.odetteftp.protocol.v13
Enum ReleaseFormatVer13

java.lang.Object
  extended by java.lang.Enum<ReleaseFormatVer13>
      extended by org.neociclo.odetteftp.protocol.v13.ReleaseFormatVer13
All Implemented Interfaces:
Serializable, Comparable<ReleaseFormatVer13>, CommandFormat

public enum ReleaseFormatVer13
extends Enum<ReleaseFormatVer13>
implements CommandFormat

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.neociclo.odetteftp.protocol.CommandFormat
CommandFormat.Field
 
Enum Constant Summary
CD_V13
          Change Direction command format.
CDT_V13
          Set Credit command format.
EERP_V13
          End-to-End Response command format.
EFID_V13
          End File command format.
EFNA_V13
          End File Negative Answer command format.
EFPA_V13
          End File Positive Answer command format.
ESID_V13
          End Session command format.
RTR_V13
          Ready To Receive command format.
SFID_V13
          Start File command format.
SFNA_V13
          Start File Negative Answer command format.
SFPA_V13
          Start File Positive Answer command format.
SSID_V13
          Start Session command format.
SSRM_V13
          Start Session Ready Message command format.
 
Method Summary
 CommandFormat.Field getField(String name)
          Return a Command Format field definition by its key name.
 String[] getFieldNames()
           
static CommandFormat getFormat(CommandIdentifier identifier)
          Return the Command Format definition given a specific Command identifier code of ODETTE-FTP version 1.3.
 CommandIdentifier getIdentifier()
           
 int getSize()
           
static ReleaseFormatVer13 valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ReleaseFormatVer13[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CD_V13

public static final ReleaseFormatVer13 CD_V13
Change Direction command format.


CDT_V13

public static final ReleaseFormatVer13 CDT_V13
Set Credit command format.


EERP_V13

public static final ReleaseFormatVer13 EERP_V13
End-to-End Response command format.


EFID_V13

public static final ReleaseFormatVer13 EFID_V13
End File command format.


EFNA_V13

public static final ReleaseFormatVer13 EFNA_V13
End File Negative Answer command format.


EFPA_V13

public static final ReleaseFormatVer13 EFPA_V13
End File Positive Answer command format.


ESID_V13

public static final ReleaseFormatVer13 ESID_V13
End Session command format.


RTR_V13

public static final ReleaseFormatVer13 RTR_V13
Ready To Receive command format.


SFID_V13

public static final ReleaseFormatVer13 SFID_V13
Start File command format.


SFNA_V13

public static final ReleaseFormatVer13 SFNA_V13
Start File Negative Answer command format.


SFPA_V13

public static final ReleaseFormatVer13 SFPA_V13
Start File Positive Answer command format.


SSID_V13

public static final ReleaseFormatVer13 SSID_V13
Start Session command format.


SSRM_V13

public static final ReleaseFormatVer13 SSRM_V13
Start Session Ready Message command format.

Method Detail

values

public static ReleaseFormatVer13[] 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 (ReleaseFormatVer13 c : ReleaseFormatVer13.values())
    System.out.println(c);

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

valueOf

public static ReleaseFormatVer13 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

getFormat

public static CommandFormat getFormat(CommandIdentifier identifier)
Return the Command Format definition given a specific Command identifier code of ODETTE-FTP version 1.3.

Parameters:
identifier - One of the CommandIdentifier static attribute.
Returns:
The corresponding Command Format definition.

getField

public CommandFormat.Field getField(String name)
Description copied from interface: CommandFormat
Return a Command Format field definition by its key name.

Specified by:
getField in interface CommandFormat
Parameters:
name - Field key name within Command Format.
Returns:
Field definition, or null if it does not exist.

getFieldNames

public String[] getFieldNames()
Specified by:
getFieldNames in interface CommandFormat

getIdentifier

public CommandIdentifier getIdentifier()
Specified by:
getIdentifier in interface CommandFormat

getSize

public int getSize()
Specified by:
getSize in interface CommandFormat
Returns:


ACCORD