Enum Class LifeFormHumanSpecificSubMachineGun
java.lang.Object
java.lang.Enum<LifeFormHumanSpecificSubMachineGun>
edu.nps.moves.dis7.enumerations.LifeFormHumanSpecificSubMachineGun
- All Implemented Interfaces:
Serializable
,Comparable<LifeFormHumanSpecificSubMachineGun>
,Constable
This
enum
type is generated from XML,
UID 482,
marshal size 8;
LifeFormHumanSpecificSubMachineGun has 17 enumerations total.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription5.45mm AKS-74U (AKSU-74)5.56mm Daewoo K1A7.65mm Sa vz 61 Skorpion9mm CZ Scorpion Evo9mm MP5-N9mm MP7A29mm Sterling SMG9mm Type CF-059mm UMP99mm Uzi9mm Madsen MK II9mm Daewoo K79mm MAC-10Other9mm MP5A29mm Mini-Uzi9mm Model 83 Skorpion SMG -
Method Summary
Modifier and TypeMethodDescriptionProvide enumeration descriptionstatic int
bit width for this enumerationgetEnumForValue
(int value) Provide enumeration for a given valueint
Returns size of this serialized (marshalled) object in bytesgetName()
Provide nameboolean
getTRACE()
Whether tracing is on or off for this objectint
getValue()
Provide enumeration valuevoid
marshal
(DataOutputStream dos) Marshal value to DataOutputStreamvoid
marshal
(ByteBuffer byteBuffer) Marshal value to ByteBuffervoid
setTRACE
(boolean value) Set tracing on/off for this objecttoString()
Provide simple identifierUnmarshal value to DataInputStreamunmarshalEnum
(ByteBuffer byteBuffer) Unmarshal enumeration value to ByteBufferReturns the enum constant of this class with the specified name.static LifeFormHumanSpecificSubMachineGun[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OTHER
Other -
_545MM_AKS_74U_AKSU_74
5.45mm AKS-74U (AKSU-74) -
_556MM_DAEWOO_K1A
5.56mm Daewoo K1A -
_765MM_SA_VZ_61_SKORPION
7.65mm Sa vz 61 Skorpion -
DATA_RELIABLE
9mm Daewoo K7 -
EVENT_REPORT_RELIABLE
9mm MAC-10 -
COMMENT_RELIABLE
9mm Madsen MK II -
RECORD_RELIABLE
9mm Mini-Uzi -
SET_RECORD_RELIABLE
9mm Model 83 Skorpion SMG -
RECORD_QUERY_RELIABLE
9mm MP5A2 -
_9MM_MP5_N
9mm MP5-N -
_9MM_STERLING_SMG
9mm Sterling SMG -
_9MM_TYPE_CF_05
9mm Type CF-05 -
_9MM_UZI
9mm Uzi -
_9MM_CZ_SCORPION_EVO
9mm CZ Scorpion Evo -
_9MM_MP7A2
9mm MP7A2 -
_9MM_UMP9
9mm UMP9
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Provide enumeration value- Returns:
- integer value
-
getDescription
-
getEnumBitWidth
public static int getEnumBitWidth()bit width for this enumeration- Returns:
- number of bits wide
-
getEnumForValue
Provide enumeration for a given value- Parameters:
value
- integer value of interest- Returns:
- enumeration corresponding to numeric value
-
setTRACE
public void setTRACE(boolean value) Set tracing on/off for this object- Parameters:
value
- whether tracing is on or off
-
getTRACE
public boolean getTRACE()Whether tracing is on or off for this object- Returns:
- whether tracing is on or off
-
marshal
Marshal value to DataOutputStream- Parameters:
dos
- DataOutputStream for output- Throws:
IOException
- input-output error- See Also:
-
marshal
Marshal value to ByteBuffer- Parameters:
byteBuffer
- ByteBuffer for output- Throws:
IOException
- input-output errorException
- See Also:
-
unmarshalEnum
public static LifeFormHumanSpecificSubMachineGun unmarshalEnum(DataInputStream dis) throws Exception Unmarshal value to DataInputStream- Parameters:
dis
- DataInputStream for input- Returns:
- enumeration of interest
- Throws:
Exception
- unmarshalling input-output error- See Also:
-
unmarshalEnum
public static LifeFormHumanSpecificSubMachineGun unmarshalEnum(ByteBuffer byteBuffer) throws Exception Unmarshal enumeration value to ByteBuffer- Parameters:
byteBuffer
- ByteBuffer for input- Returns:
- enumeration of interest
- Throws:
Exception
- unmarshalling input-output error- See Also:
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Returns:
- serialized size in bytes
- See Also:
-
getName
-
toString
Provide simple identifier- Overrides:
toString
in classEnum<LifeFormHumanSpecificSubMachineGun>
- Returns:
- class name, value and name
-