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:
23: /*
24: * Table values are obtained from RFC2911: Internet Printing Protocol/1.1:
25: * Model and Semantics, section 4.1.6, 4.4.27 http://ietf.org/rfc/rfc2911.txt?number=2911
26: */
27: public class ReferenceUriSchemesSupported extends EnumSyntax implements
28: Attribute {
29: private static final long serialVersionUID = -8989076942813442805L;
30:
31: public static final ReferenceUriSchemesSupported FTP = new ReferenceUriSchemesSupported(
32: 0);
33:
34: public static final ReferenceUriSchemesSupported HTTP = new ReferenceUriSchemesSupported(
35: 1);
36:
37: public static final ReferenceUriSchemesSupported HTTPS = new ReferenceUriSchemesSupported(
38: 2);
39:
40: public static final ReferenceUriSchemesSupported GOPHER = new ReferenceUriSchemesSupported(
41: 3);
42:
43: public static final ReferenceUriSchemesSupported NEWS = new ReferenceUriSchemesSupported(
44: 4);
45:
46: public static final ReferenceUriSchemesSupported NNTP = new ReferenceUriSchemesSupported(
47: 5);
48:
49: public static final ReferenceUriSchemesSupported WAIS = new ReferenceUriSchemesSupported(
50: 6);
51:
52: public static final ReferenceUriSchemesSupported FILE = new ReferenceUriSchemesSupported(
53: 7);
54:
55: private static final ReferenceUriSchemesSupported[] enumValueTable = {
56: FTP, HTTP, HTTPS, GOPHER, NEWS, NNTP, WAIS, FILE, };
57:
58: private static final String[] stringTable = { "ftp", "http",
59: "https", "gopher", "news", "nntp", "wais", "file" };
60:
61: protected ReferenceUriSchemesSupported(int value) {
62: super (value);
63: }
64:
65: @Override
66: protected EnumSyntax[] getEnumValueTable() {
67: return enumValueTable.clone();
68: }
69:
70: public final Class<? extends Attribute> getCategory() {
71: return ReferenceUriSchemesSupported.class;
72: }
73:
74: public final String getName() {
75: return "reference-uri-schemes-supported";
76: }
77:
78: @Override
79: protected String[] getStringTable() {
80: return stringTable.clone();
81: }
82: }
|