com.reverseXSL.types
Class DataFormat

java.lang.Object
  extended by com.reverseXSL.types.DataFormat
All Implemented Interfaces:
java.io.Serializable

public final class DataFormat
extends java.lang.Object
implements java.io.Serializable

DataFormat singletons indicate the format of message data (CSV, XML, free text, etc.). It is a strong typed enumeration class compatible with JDK1.4.

Valid enumeration values are all like DataFormat.CODE where CODE must be a valid code; for the list of codes see table.

See Also:
Serialized Form

Field Summary
static DataFormat ANY
          DataFormat data can be anything; it is unspecified.
static DataFormat BINARY
          Full transparent binary content that must be preserved from any alteration
static DataFormat CSV
          A text-oriented dataFormat with Comma Separated Values; also holds for ';', tabs and other usual separators.
static DataFormat EDIFACT
          An EDIFACT interchange as defined by standard ISO 9735 (made by United Nations Trade Facilitation Committee).
static DataFormat IATA
          A standard IATA message for IMP, AHM, SSIM and other sub-brands, starting with a Type-B SITA header.
static DataFormat PROPRIETARY
          A bilaterally agreed format, a corporate flat file.
static DataFormat SWIFT
          A standard financial message as defined in the SWIFT FIN User Handbook.
static DataFormat[] table
          May be used to iterate over all possible enumeration values.
static DataFormat TEXT
          Plain human readable text
static DataFormat TRADACOMS
          A Standard TRADACOMS message as edited by the UK Article Numbering Association.
static DataFormat X12
          The American National Standard ANSI X12, published by NIST.
static DataFormat XML
          a valid XML document
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static DataFormat find(java.lang.String key)
           
 java.lang.String toString()
           
 java.lang.String toVerboseString()
          Provides a default string rendering with long name followed by (CODE) as would be used when using a member like AddressType.CODE.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY

public static final DataFormat ANY
DataFormat data can be anything; it is unspecified.


BINARY

public static final DataFormat BINARY
Full transparent binary content that must be preserved from any alteration


CSV

public static final DataFormat CSV
A text-oriented dataFormat with Comma Separated Values; also holds for ';', tabs and other usual separators.


EDIFACT

public static final DataFormat EDIFACT
An EDIFACT interchange as defined by standard ISO 9735 (made by United Nations Trade Facilitation Committee).

This same tag is used for various EDIFACT sub-brands:

All these variants are, at this stage, globally labelled 'EDIFACT'.


IATA

public static final DataFormat IATA
A standard IATA message for IMP, AHM, SSIM and other sub-brands, starting with a Type-B SITA header. The header itself may be pure ASCII, or native, or with the full set of control characters.


PROPRIETARY

public static final DataFormat PROPRIETARY
A bilaterally agreed format, a corporate flat file.


SWIFT

public static final DataFormat SWIFT
A standard financial message as defined in the SWIFT FIN User Handbook.


table

public static final DataFormat[] table
May be used to iterate over all possible enumeration values.


TEXT

public static final DataFormat TEXT
Plain human readable text


TRADACOMS

public static final DataFormat TRADACOMS
A Standard TRADACOMS message as edited by the UK Article Numbering Association.


X12

public static final DataFormat X12
The American National Standard ANSI X12, published by NIST.


XML

public static final DataFormat XML
a valid XML document

Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

find

public static DataFormat find(java.lang.String key)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toVerboseString

public java.lang.String toVerboseString()
Provides a default string rendering with long name followed by (CODE) as would be used when using a member like AddressType.CODE.