| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| IdentifierType |
|
| 1.0;1 |
| 1 | package org.jscsi.target.scsi.inquiry; | |
| 2 | ||
| 3 | /** | |
| 4 | * The IDENTIFIER TYPE field indicates the format and assignment authority for the IDENTIFIER. | |
| 5 | * <p> | |
| 6 | * The IDENTIFIER TYPE field has a length of four bits. | |
| 7 | * | |
| 8 | * @see Identifier | |
| 9 | * @author Andreas Ergenzinger | |
| 10 | */ | |
| 11 | 0 | public enum IdentifierType { |
| 12 | ||
| 13 | 0 | VENDOR_SPECIFIC((byte) 0x0), T10_VENDOR_ID_BASED((byte) 0x1), EUI_64_BASED((byte) 0x2), NAA((byte) 0x3), RELATIVE_TARGET_PORT_IDENTIFIERT((byte) 0x4), TARGET_PORT_GROUP((byte) 0x5), LOGICAL_UNIT_GROUP((byte) 0x6), MD5_LOGICAL_UNIT_IDENTIFIER((byte) 0x7), SCSI_NAME_STRING((byte) 0x8); |
| 14 | // 0x9-0xf are RESERVED | |
| 15 | ||
| 16 | private final byte value; | |
| 17 | ||
| 18 | 0 | private IdentifierType (byte value) { |
| 19 | 0 | this.value = value; |
| 20 | 0 | } |
| 21 | ||
| 22 | public final byte getValue () { | |
| 23 | 0 | return value; |
| 24 | } | |
| 25 | } |