Package net.sf.okapi.common.resource
Enum TextFragment.Marker
- java.lang.Object
-
- java.lang.Enum<TextFragment.Marker>
-
- net.sf.okapi.common.resource.TextFragment.Marker
-
- All Implemented Interfaces:
Serializable
,Comparable<TextFragment.Marker>
- Enclosing class:
- TextFragment
public static enum TextFragment.Marker extends Enum<TextFragment.Marker>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextFragment.Marker
asEnum(int markerType)
int
getMarkerType()
static TextFragment.Marker
valueOf(String name)
Returns the enum constant of this type with the specified name.static TextFragment.Marker[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPENING
public static final TextFragment.Marker OPENING
-
CLOSING
public static final TextFragment.Marker CLOSING
-
ISOLATED
public static final TextFragment.Marker ISOLATED
-
UNKOWN
public static final TextFragment.Marker UNKOWN
-
-
Method Detail
-
values
public static TextFragment.Marker[] 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 (TextFragment.Marker c : TextFragment.Marker.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextFragment.Marker 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
-
asEnum
public static TextFragment.Marker asEnum(int markerType)
-
getMarkerType
public int getMarkerType()
-
-