Package net.sf.okapi.lib.xliff2.reader
Enum EventType
- java.lang.Object
-
- java.lang.Enum<EventType>
-
- net.sf.okapi.lib.xliff2.reader.EventType
-
- All Implemented Interfaces:
Serializable,Comparable<EventType>
public enum EventType extends Enum<EventType>
List of the different types ofEventobjects theXLIFFReadercan generate.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description END_DOCUMENTEnd of the input document.END_FILEEnd of a file in an XLIFF document.END_GROUPEnd of a group.END_XLIFFEnd of the XLIFF element in the document.INSIGNIFICANT_PARTNon-significant parts of the document (white-spaces between elements outside the content).MID_FILEPart of the file-level data after the skeleton and before the first unit or group.SKELETONSkeleton element.START_DOCUMENTStart of the input document.START_FILEStart of a file in an XLIFF document.START_GROUPStart of a group.START_XLIFFStart of the XLIFF element of the document.TEXT_UNITA full unit element (start to end) This event comes with aUnitresource.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EventTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START_DOCUMENT
public static final EventType START_DOCUMENT
Start of the input document. This event has no associated resource. There are no events before this one.
-
END_DOCUMENT
public static final EventType END_DOCUMENT
End of the input document. This event has no associated resource. There are no events after this one.
-
START_XLIFF
public static final EventType START_XLIFF
Start of the XLIFF element of the document. This event comes with anStartXliffDataresource.
-
END_XLIFF
public static final EventType END_XLIFF
End of the XLIFF element in the document. This event has no associated resource.
-
START_FILE
public static final EventType START_FILE
Start of a file in an XLIFF document. This event comes with aStartFileDataresource.
-
MID_FILE
public static final EventType MID_FILE
Part of the file-level data after the skeleton and before the first unit or group. This event comes with aMidFileDataresource.
-
END_FILE
public static final EventType END_FILE
End of a file in an XLIFF document. This event has no associated resource.
-
SKELETON
public static final EventType SKELETON
Skeleton element. This event comes with aStartXliffDataresource.
-
START_GROUP
public static final EventType START_GROUP
Start of a group. This event comes with aStartGroupDataresource.
-
END_GROUP
public static final EventType END_GROUP
End of a group. This event has no associated resource.
-
TEXT_UNIT
public static final EventType TEXT_UNIT
A full unit element (start to end) This event comes with aUnitresource.
-
INSIGNIFICANT_PART
public static final EventType INSIGNIFICANT_PART
Non-significant parts of the document (white-spaces between elements outside the content). this event comes with aInsingnificantPartDataresource.
-
-
Method Detail
-
values
public static EventType[] 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 (EventType c : EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventType 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 nameNullPointerException- if the argument is null
-
-