org.neociclo.odetteftp.protocol.v14
Enum ReleaseFormatVer14

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

public enum ReleaseFormatVer14
extends Enum<ReleaseFormatVer14>
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_V14
          Change Direction command format.
CDT_V14
          Set Credit command format.
EERP_V14
          End-to-End Response command format.
EFID_V14
          End File command format.
EFNA_V14
          End File Negative Answer command format.
EFPA_V14
          End File Positive Answer command format.
ESID_V14
          End Session command format.
NERP_V14
          Negative End Response command format.
RTR_V14
          Ready To Receive command format.
SFID_V14
          Start File command format.
SFNA_V14
          Start File Negative Answer command format.
SFPA_V14
          Start File Positive Answer command format.
SSID_V14
          Start Session command format.
SSRM_V14
          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.4.
 CommandIdentifier getIdentifier()
           
 int getSize()
           
static ReleaseFormatVer14 valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ReleaseFormatVer14[] 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_V14

public static final ReleaseFormatVer14 CD_V14
Change Direction command format.


CDT_V14

public static final ReleaseFormatVer14 CDT_V14
Set Credit command format.


EERP_V14

public static final ReleaseFormatVer14 EERP_V14
End-to-End Response command format.


EFID_V14

public static final ReleaseFormatVer14 EFID_V14
End File command format.


EFNA_V14

public static final ReleaseFormatVer14 EFNA_V14
End File Negative Answer command format.


EFPA_V14

public static final ReleaseFormatVer14 EFPA_V14
End File Positive Answer command format.


ESID_V14

public static final ReleaseFormatVer14 ESID_V14
End Session command format.


NERP_V14

public static final ReleaseFormatVer14 NERP_V14
Negative End Response command format.


RTR_V14

public static final ReleaseFormatVer14 RTR_V14
Ready To Receive command format.


SFID_V14

public static final ReleaseFormatVer14 SFID_V14
Start File command format.


SFNA_V14

public static final ReleaseFormatVer14 SFNA_V14
Start File Negative Answer command format.


SFPA_V14

public static final ReleaseFormatVer14 SFPA_V14
Start File Positive Answer command format.


SSID_V14

public static final ReleaseFormatVer14 SSID_V14
Start Session command format.


SSRM_V14

public static final ReleaseFormatVer14 SSRM_V14
Start Session Ready Message command format.

Method Detail

values

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

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

valueOf

public static ReleaseFormatVer14 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.4.

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