Package com.tietoenator.trip.jxp.data
Enum TdbDataFormat
- java.lang.Object
-
- java.lang.Enum<TdbDataFormat>
-
- com.tietoenator.trip.jxp.data.TdbDataFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TdbDataFormat>
public enum TdbDataFormat extends java.lang.Enum<TdbDataFormat>
Data formats available for retrieval when fetching one or more records from the server.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ELEMENT
Fields will be represented using elements named for each field.RAW
Fields will be represented using the <FIELD> element, with a NAME attribute for the field's name.TFORM
Within the XML markup required for transport via TRIPxpi, the actual data of the record will be represented using TFORM.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TdbDataFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TdbDataFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TFORM
public static final TdbDataFormat TFORM
Within the XML markup required for transport via TRIPxpi, the actual data of the record will be represented using TFORM.
-
RAW
public static final TdbDataFormat RAW
Fields will be represented using the <FIELD> element, with a NAME attribute for the field's name. This format is most useful in environments where the calling application is not in complete control of the data being retrieved.
-
ELEMENT
public static final TdbDataFormat ELEMENT
Fields will be represented using elements named for each field. This format is most useful when the calling application is in complete control of the retrieval operation.
-
-
Method Detail
-
values
public static TdbDataFormat[] 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 (TdbDataFormat c : TdbDataFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TdbDataFormat valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-