Package gov.nasa.pds.objectAccess.table
Enum DelimiterType
- java.lang.Object
- 
- java.lang.Enum<DelimiterType>
- 
- gov.nasa.pds.objectAccess.table.DelimiterType
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<DelimiterType>
 
 public enum DelimiterType extends java.lang.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.
- 
- 
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.LINE_FEEDLine feed (LF) record delimiter.SEMICOLONSemicolon field delimiter.VERTICAL_BARVertical tab field delimiter.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DelimiterTypegetDelimiterType(java.lang.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.java.lang.StringgetRecordDelimiter()Gets the string value for this (record) delimiter type.java.lang.StringgetXmlType()Gets the type string that will occur in XML labels.static DelimiterTypevalueOf(java.lang.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 Detail- 
COMMApublic static final DelimiterType COMMA Comma field delimiter.
 - 
SEMICOLONpublic static final DelimiterType SEMICOLON Semicolon field delimiter.
 - 
HORIZONTAL_TABpublic static final DelimiterType HORIZONTAL_TAB Horizontal tab field delimiter.
 - 
VERTICAL_BARpublic static final DelimiterType VERTICAL_BAR Vertical tab field delimiter.
 - 
CARRIAGE_RETURN_LINE_FEEDpublic static final DelimiterType CARRIAGE_RETURN_LINE_FEED Carriage return and line feed (CRLF) record delimiter.
 - 
LINE_FEEDpublic static final DelimiterType LINE_FEED Line feed (LF) record delimiter.
 
- 
 - 
Method Detail- 
valuespublic static DelimiterType[] 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 (DelimiterType c : DelimiterType.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static DelimiterType 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 name
- java.lang.NullPointerException- if the argument is null
 
 - 
getDelimiterTypepublic static DelimiterType getDelimiterType(java.lang.String xmlType) Gets 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
 
 - 
getXmlTypepublic java.lang.String getXmlType() Gets 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
 
 - 
getRecordDelimiterpublic java.lang.String getRecordDelimiter() Gets the string value for this (record) delimiter type.- Returns:
- the record delimiter string
 
 
- 
 
-