01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package javax.print.attribute.standard;
19:
20: import javax.print.attribute.Attribute;
21: import javax.print.attribute.EnumSyntax;
22: import javax.print.attribute.PrintJobAttribute;
23: import javax.print.attribute.PrintRequestAttribute;
24:
25: public final class Fidelity extends EnumSyntax implements
26: PrintJobAttribute, PrintRequestAttribute {
27: private static final long serialVersionUID = 6320827847329172308L;
28:
29: public static final Fidelity FIDELITY_TRUE = new Fidelity(0);
30:
31: public static final Fidelity FIDELITY_FALSE = new Fidelity(1);
32:
33: private static final Fidelity[] enumValueTable = { FIDELITY_TRUE,
34: FIDELITY_FALSE };
35:
36: private static final String[] stringTable = { "true", "false" };
37:
38: protected Fidelity(int value) {
39: super (value);
40: }
41:
42: public final Class<? extends Attribute> getCategory() {
43: return Fidelity.class;
44: }
45:
46: @Override
47: protected EnumSyntax[] getEnumValueTable() {
48: return enumValueTable;
49: }
50:
51: public final String getName() {
52: return "ipp-attribute-fidelity";
53: }
54:
55: @Override
56: protected String[] getStringTable() {
57: return stringTable;
58: }
59: }
|