Coverage Report - org.jscsi.target.scsi.inquiry.CodeSet
 
Classes in this File Line Coverage Branch Coverage Complexity
CodeSet
0%
0/9
N/A
1
 
 1  
 package org.jscsi.target.scsi.inquiry;
 2  
 
 3  
 /**
 4  
  * The CODE SET field indicates the code set used for the IDENTIFIER field.
 5  
  * 
 6  
  * <table border="1">
 7  
  * <tr>
 8  
  * <th>Code</th>
 9  
  * <th>Description</th>
 10  
  * </tr>
 11  
  * <tr>
 12  
  * <td>0x0</td>
 13  
  * <td>RESERVED</td>
 14  
  * </tr>
 15  
  * <tr>
 16  
  * <td>0x1</td>
 17  
  * <td>The IDENTIFIER field shall contain binary values.</td>
 18  
  * </tr>
 19  
  * <tr>
 20  
  * <td>0x2</td>
 21  
  * <td>The IDENTIFIER field shall contain ASCII printable characters<br>
 22  
  * (i.e., code values 20h through 7Eh)</td>
 23  
  * </tr>
 24  
  * <tr>
 25  
  * <td>0x3</td>
 26  
  * <td>The IDENTIFIER field shall contain ISO/IEC 10646-1 (UTF-8) codes</td>
 27  
  * </tr>
 28  
  * <tr>
 29  
  * <td>0x4 - 0xf</td>
 30  
  * <td>RESERVED</td>
 31  
  * </tr>
 32  
  * </table>
 33  
  * 
 34  
  * The CODE SET field has a length of four bits.
 35  
  * 
 36  
  * @see IdentificationDescriptor
 37  
  * @author Andreas Ergenzinger
 38  
  */
 39  0
 public enum CodeSet {
 40  
     /**
 41  
      * This value is reserved.
 42  
      */
 43  0
     RESERVED((byte) 0x0),
 44  
     /**
 45  
      * The IDENTIFIER field shall contain binary values.
 46  
      */
 47  0
     BINARY_VALUES((byte) 0x1),
 48  
     /**
 49  
      * The IDENTIFIER field shall contain ASCII printable characters.
 50  
      */
 51  0
     ASCII_PRINTABLE_VALUES((byte) 0x2),
 52  
     /**
 53  
      * The IDENTIFIER field shall contain ISO/IEC 10646-1 (UTF-8) codes:
 54  
      */
 55  0
     UTF8_CODES((byte) 0x3);
 56  
 
 57  0
     private CodeSet (final byte value) {
 58  0
         this.value = value;
 59  0
     }
 60  
 
 61  
     /**
 62  
      * The serialized value of this object.
 63  
      */
 64  
     private final byte value;
 65  
 
 66  
     /**
 67  
      * Returns serialized value of this object.
 68  
      * 
 69  
      * @return serialized value of this object
 70  
      */
 71  
     public final byte getValue () {
 72  0
         return value;
 73  
     }
 74  
 }