Source for javax.print.attribute.standard.PrinterStateReason

   1: /* PrinterStateReason.java --
   2:    Copyright (C) 2004 Free Software Foundation, Inc.
   3: 
   4: This file is part of GNU Classpath.
   5: 
   6: GNU Classpath is free software; you can redistribute it and/or modify
   7: it under the terms of the GNU General Public License as published by
   8: the Free Software Foundation; either version 2, or (at your option)
   9: any later version.
  10: 
  11: GNU Classpath is distributed in the hope that it will be useful, but
  12: WITHOUT ANY WARRANTY; without even the implied warranty of
  13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14: General Public License for more details.
  15: 
  16: You should have received a copy of the GNU General Public License
  17: along with GNU Classpath; see the file COPYING.  If not, write to the
  18: Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  19: 02110-1301 USA.
  20: 
  21: Linking this library statically or dynamically with other modules is
  22: making a combined work based on this library.  Thus, the terms and
  23: conditions of the GNU General Public License cover the whole
  24: combination.
  25: 
  26: As a special exception, the copyright holders of this library give you
  27: permission to link this library with independent modules to produce an
  28: executable, regardless of the license terms of these independent
  29: modules, and to copy and distribute the resulting executable under
  30: terms of your choice, provided that you also meet, for each linked
  31: independent module, the terms and conditions of the license of that
  32: module.  An independent module is a module which is not derived from
  33: or based on this library.  If you modify this library, you may extend
  34: this exception to your version of the library, but you are not
  35: obligated to do so.  If you do not wish to do so, delete this
  36: exception statement from your version. */
  37: 
  38: 
  39: package javax.print.attribute.standard;
  40: 
  41: import javax.print.attribute.Attribute;
  42: import javax.print.attribute.EnumSyntax;
  43: 
  44: /**
  45:  * @author Michael Koch (konqueror@gmx.de)
  46:  */
  47: public class PrinterStateReason extends EnumSyntax
  48:   implements Attribute
  49: {
  50:   private static final long serialVersionUID = -1623720656201472593L;
  51: 
  52:   public static final PrinterStateReason OTHER = new PrinterStateReason(0);
  53:   public static final PrinterStateReason MEDIA_NEEDED =
  54:     new PrinterStateReason(1);
  55:   public static final PrinterStateReason MEDIA_JAM = new PrinterStateReason(2);
  56:   public static final PrinterStateReason MOVING_TO_PAUSED =
  57:     new PrinterStateReason(3);
  58:   public static final PrinterStateReason PAUSED = new PrinterStateReason(4);
  59:   public static final PrinterStateReason SHUTDOWN = new PrinterStateReason(5);
  60:   public static final PrinterStateReason CONNECTING_TO_DEVICE =
  61:     new PrinterStateReason(6);
  62:   public static final PrinterStateReason TIMED_OUT = new PrinterStateReason(7);
  63:   public static final PrinterStateReason STOPPING = new PrinterStateReason(8);
  64:   public static final PrinterStateReason STOPPED_PARTLY =
  65:     new PrinterStateReason(9);
  66:   public static final PrinterStateReason TONER_LOW =
  67:     new PrinterStateReason(10);
  68:   public static final PrinterStateReason TONER_EMPTY =
  69:     new PrinterStateReason(11);
  70:   public static final PrinterStateReason SPOOL_AREA_FULL =
  71:     new PrinterStateReason(12);
  72:   public static final PrinterStateReason COVER_OPEN =
  73:     new PrinterStateReason(13);
  74:   public static final PrinterStateReason INTERLOCK_OPEN =
  75:     new PrinterStateReason(14);
  76:   public static final PrinterStateReason DOOR_OPEN =
  77:     new PrinterStateReason(15);
  78:   public static final PrinterStateReason INPUT_TRAY_MISSING =
  79:     new PrinterStateReason(16);
  80:   public static final PrinterStateReason MEDIA_LOW =
  81:     new PrinterStateReason(17);
  82:   public static final PrinterStateReason MEDIA_EMPTY =
  83:     new PrinterStateReason(18);
  84:   public static final PrinterStateReason OUTPUT_TRAY_MISSING =
  85:     new PrinterStateReason(19);
  86:   public static final PrinterStateReason OUTPUT_AREA_ALMOST_FULL =
  87:     new PrinterStateReason(20);
  88:   public static final PrinterStateReason OUTPUT_AREA_FULL =
  89:     new PrinterStateReason(21);
  90:   public static final PrinterStateReason MARKER_SUPPLY_LOW =
  91:     new PrinterStateReason(22);
  92:   public static final PrinterStateReason MARKER_SUPPLY_EMPTY =
  93:     new PrinterStateReason(23);
  94:   public static final PrinterStateReason MARKER_WASTE_ALMOST_FULL =
  95:     new PrinterStateReason(24);
  96:   public static final PrinterStateReason MARKER_WASTE_FULL =
  97:     new PrinterStateReason(25);
  98:   public static final PrinterStateReason FUSER_OVER_TEMP =
  99:     new PrinterStateReason(26);
 100:   public static final PrinterStateReason FUSER_UNDER_TEMP =
 101:     new PrinterStateReason(27);
 102:   public static final PrinterStateReason OPC_NEAR_EOL =
 103:     new PrinterStateReason(28);
 104:   public static final PrinterStateReason OPC_LIFE_OVER =
 105:     new PrinterStateReason(29);
 106:   public static final PrinterStateReason DEVELOPER_LOW =
 107:     new PrinterStateReason(30);
 108:   public static final PrinterStateReason DEVELOPER_EMPTY =
 109:     new PrinterStateReason(31);
 110:   public static final PrinterStateReason INTERPRETER_RESOURCE_UNAVAILABLE =
 111:     new PrinterStateReason(32);
 112: 
 113:   /**
 114:    * Constructs a <code>PrinterStateReason</code> object.
 115:    */
 116:   protected PrinterStateReason(int value)
 117:   {
 118:     super(value);
 119:   }
 120: 
 121:   /**
 122:    * Returns category of this class.
 123:    *
 124:    * @return the class <code>PrintStateReason</code> itself
 125:    */
 126:   public Class getCategory()
 127:   {
 128:     return PrinterStateReason.class;
 129:   }
 130: 
 131:   /**
 132:    * Returns name of this class.
 133:    *
 134:    * @return the string "printer-state-reason"
 135:    */
 136:   public String getName()
 137:   {
 138:     return "printer-state-reason";
 139:   }
 140: }