gnu.javax.print.ipp

Class IppValueTag


public final class IppValueTag
extends Object

IPP Value Tags as described in RFC 2910 section 3.5.2.

Attributes are always of a special type syntax (e.g. boolean or interger attribute). These value types are specified by the tag constants provided in this class. Beside the syntax types some out of band values for reporting requested attributes as unsupported, unknown etc. back to the client.

Field Summary

static byte
BOOLEAN
Indicates a value of syntax type boolean.
static byte
CHARSET
Indicates a value of syntax type charset.
static byte
DATETIME
Indicates a value of syntax type datetime.
static byte
ENUM
Indicates a value of syntax type enum (enumeration).
static byte
INTEGER
Indicates a value of syntax type integer.
static byte
KEYWORD
Indicates a value of syntax type keyword.
static byte
MIME_MEDIA_TYPE
Indicates a value of syntax type mime media.
static byte
NAME_WITHOUT_LANGUAGE
Indicates a value of syntax type name without language.
static byte
NAME_WITH_LANGUAGE
Indicates a value of syntax type name with language.
static byte
NATURAL_LANGUAGE
Indicates a value of syntax type language.
static byte
NO_VALUE
Out of band value for attribute without a value.
static byte
OCTECTSTRING_UNSPECIFIED
Indicates a value of syntax type octect string.
static byte
RANGEOFINTEGER
Indicates a value of syntax type range of integers.
static byte
RESOLUTION
Indicates a value of syntax type resolution.
static byte
TEXT_WITHOUT_LANGUAGE
Indicates a value of syntax type text without language.
static byte
TEXT_WITH_LANGUAGE
Indicates a value of syntax type text with language.
static byte
UNKNOWN
Out of band value for unknown attributes.
static byte
UNSUPPORTED
Out of band value for unsupported attributes.
static byte
URI
Indicates a value of syntax type URI.
static byte
URI_SCHEME
Indicates a value of syntax type URI scheme.

Method Summary

static boolean
isValueTag(byte value)
Tests if given value corresponds to a value tag value.

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

BOOLEAN

public static final byte BOOLEAN
Indicates a value of syntax type boolean.
Field Value:
34

CHARSET

public static final byte CHARSET
Indicates a value of syntax type charset.
Field Value:
71

DATETIME

public static final byte DATETIME
Indicates a value of syntax type datetime.
Field Value:
49

ENUM

public static final byte ENUM
Indicates a value of syntax type enum (enumeration).
Field Value:
35

INTEGER

public static final byte INTEGER
Indicates a value of syntax type integer.
Field Value:
33

KEYWORD

public static final byte KEYWORD
Indicates a value of syntax type keyword.
Field Value:
68

MIME_MEDIA_TYPE

public static final byte MIME_MEDIA_TYPE
Indicates a value of syntax type mime media.
Field Value:
73

NAME_WITHOUT_LANGUAGE

public static final byte NAME_WITHOUT_LANGUAGE
Indicates a value of syntax type name without language.
Field Value:
66

NAME_WITH_LANGUAGE

public static final byte NAME_WITH_LANGUAGE
Indicates a value of syntax type name with language.
Field Value:
54

NATURAL_LANGUAGE

public static final byte NATURAL_LANGUAGE
Indicates a value of syntax type language.
Field Value:
72

NO_VALUE

public static final byte NO_VALUE
Out of band value for attribute without a value.
Field Value:
19

OCTECTSTRING_UNSPECIFIED

public static final byte OCTECTSTRING_UNSPECIFIED
Indicates a value of syntax type octect string.
Field Value:
48

RANGEOFINTEGER

public static final byte RANGEOFINTEGER
Indicates a value of syntax type range of integers.
Field Value:
51

RESOLUTION

public static final byte RESOLUTION
Indicates a value of syntax type resolution.
Field Value:
50

TEXT_WITHOUT_LANGUAGE

public static final byte TEXT_WITHOUT_LANGUAGE
Indicates a value of syntax type text without language.
Field Value:
65

TEXT_WITH_LANGUAGE

public static final byte TEXT_WITH_LANGUAGE
Indicates a value of syntax type text with language.
Field Value:
53

UNKNOWN

public static final byte UNKNOWN
Out of band value for unknown attributes.
Field Value:
18

UNSUPPORTED

public static final byte UNSUPPORTED
Out of band value for unsupported attributes.
Field Value:
16

URI

public static final byte URI
Indicates a value of syntax type URI.
Field Value:
69

URI_SCHEME

public static final byte URI_SCHEME
Indicates a value of syntax type URI scheme.
Field Value:
70

Method Details

isValueTag

public static boolean isValueTag(byte value)
Tests if given value corresponds to a value tag value.
Parameters:
value - the value to test for
Returns:
true if, false otherwise.

IppValueTag.java -- Copyright (C) 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.