Package net.sf.okapi.proto.textunitflat
Enum TextFragment.TagType
- java.lang.Object
-
- java.lang.Enum<TextFragment.TagType>
-
- net.sf.okapi.proto.textunitflat.TextFragment.TagType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<TextFragment.TagType>
- Enclosing class:
- TextFragment
public static enum TextFragment.TagType extends Enum<TextFragment.TagType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumTextFragment.TagType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSINGCLOSING = 1;OPENINGOPENING = 0;PLACEHOLDERPLACEHOLDER = 2;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intCLOSING_VALUECLOSING = 1;static intOPENING_VALUEOPENING = 0;static intPLACEHOLDER_VALUEPLACEHOLDER = 2;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TextFragment.TagTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<TextFragment.TagType>internalGetValueMap()static TextFragment.TagTypevalueOf(int value)Deprecated.static TextFragment.TagTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static TextFragment.TagTypevalueOf(String name)Returns the enum constant of this type with the specified name.static TextFragment.TagType[]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.TagType OPENING
OPENING = 0;
-
CLOSING
public static final TextFragment.TagType CLOSING
CLOSING = 1;
-
PLACEHOLDER
public static final TextFragment.TagType PLACEHOLDER
PLACEHOLDER = 2;
-
UNRECOGNIZED
public static final TextFragment.TagType UNRECOGNIZED
-
-
Field Detail
-
OPENING_VALUE
public static final int OPENING_VALUE
OPENING = 0;- See Also:
- Constant Field Values
-
CLOSING_VALUE
public static final int CLOSING_VALUE
CLOSING = 1;- See Also:
- Constant Field Values
-
PLACEHOLDER_VALUE
public static final int PLACEHOLDER_VALUE
PLACEHOLDER = 2;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static TextFragment.TagType[] 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.TagType c : TextFragment.TagType.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.TagType 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
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static TextFragment.TagType valueOf(int value)
Deprecated.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:
value- 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
-
forNumber
public static TextFragment.TagType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<TextFragment.TagType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static TextFragment.TagType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc- 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
-
-