2 * Copyright (C) 2003 <a href="http://www.lohndirekt.de/">lohndirekt.de</a>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 package de
.lohndirekt
.print
.attribute
;
22 *Bezeichnungen übernommen aus <link>www.ietf.org/rfc/rfc2910.txt</link>
23 *Tags ohne Bezeichnung sind dort nicht aufgeführt, werden aber in der Cups-API verwendet
25 public class IppDelimiterTag
{
27 private String description
= "";
28 private int value
= 0;
30 public static final IppDelimiterTag ZERO
= new IppDelimiterTag(0x00, "");
31 public static final IppDelimiterTag BEGIN_OPERATION_ATTRIBUTES
= new IppDelimiterTag(0x01, "operation-attributes-tag");
32 public static final IppDelimiterTag BEGIN_JOB_ATTRIBUTES
= new IppDelimiterTag(0x02, "job-attributes-tag");
33 public static final IppDelimiterTag END_ATTRIBUTES
= new IppDelimiterTag(0x03, "end-of-attributes-tag");
34 public static final IppDelimiterTag BEGIN_PRINTER_ATTRIBUTES
= new IppDelimiterTag(0x04, "printer-attributes-tag");
35 public static final IppDelimiterTag UNSUPPORTED_GROUP
= new IppDelimiterTag(0x05, "unsupported-attributes-tag");
36 public static final IppDelimiterTag SUBSCRIPTION
= new IppDelimiterTag(0x06, "");
37 public static final IppDelimiterTag EVENT_NOTIFICATION
= new IppDelimiterTag(0x07, "");
39 private IppDelimiterTag(int value
, String description
) {
41 this.description
= description
;
44 public int getValue(){
48 public String
toString(){
49 return this.description
;