Package gov.nasa.pds.objectAccess.table
Enum DelimiterType
- All Implemented Interfaces:
- Serializable,- Comparable<DelimiterType>,- java.lang.constant.Constable
public enum DelimiterType extends Enum<DelimiterType>
Defines a set of field and record delimiters for a table.
 Indicates the type string that will be found in XML label instances, and
 the character representation of the type for a field delimiter, or
 the string representation of the type for a record delimiter.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants Enum Constant Description CARRIAGE_RETURN_LINE_FEEDCarriage return and line feed (CRLF) record delimiter.COMMAComma field delimiter.HORIZONTAL_TABHorizontal tab field delimiter.SEMICOLONSemicolon field delimiter.VERTICAL_BARVertical tab field delimiter.
- 
Method SummaryModifier and Type Method Description static DelimiterTypegetDelimiterType(String xmlType)Gets the proper delimiter type for an XML type string in a label instance.chargetFieldDelimiter()Gets the character value for this (field) delimiter type.StringgetRecordDelimiter()Gets the string value for this (record) delimiter type.StringgetXmlType()Gets the type string that will occur in XML labels.static DelimiterTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DelimiterType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
COMMAComma field delimiter.
- 
SEMICOLONSemicolon field delimiter.
- 
HORIZONTAL_TABHorizontal tab field delimiter.
- 
VERTICAL_BARVertical tab field delimiter.
- 
CARRIAGE_RETURN_LINE_FEEDCarriage return and line feed (CRLF) record delimiter.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns 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
 
- 
getDelimiterTypeGets the proper delimiter type for an XML type string in a label instance.- Parameters:
- xmlType- the XML type string
- Returns:
- the delimiter type corresponding to the XML type
 
- 
getXmlTypeGets the type string that will occur in XML labels.- Returns:
- the XML type string
 
- 
getFieldDelimiterpublic char getFieldDelimiter()Gets the character value for this (field) delimiter type.- Returns:
- the field delimiter character
 
- 
getRecordDelimiterGets the string value for this (record) delimiter type.- Returns:
- the record delimiter string
 
 
-