diff options
| author | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-17 18:09:40 +0000 |
|---|---|---|
| committer | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-17 18:09:40 +0000 |
| commit | 2d8cf20d0d5ca6b1fbdefc22229d4b7cf1497ede (patch) | |
| tree | c976ca91e3ef0bda3b34b37c0195145638d8d08e /libjava/classpath/javax/print/attribute/standard/ReferenceUriSchemesSupported.java | |
| parent | a3ef37ddfeddcc5b0f1c5068d8fdeb25a302d5cd (diff) | |
| download | ppe42-gcc-2d8cf20d0d5ca6b1fbdefc22229d4b7cf1497ede.tar.gz ppe42-gcc-2d8cf20d0d5ca6b1fbdefc22229d4b7cf1497ede.zip | |
Imported GNU Classpath 0.20
* Makefile.am (AM_CPPFLAGS): Add classpath/include.
* java/nio/charset/spi/CharsetProvider.java: New override file.
* java/security/Security.java: Likewise.
* sources.am: Regenerated.
* Makefile.in: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/javax/print/attribute/standard/ReferenceUriSchemesSupported.java')
| -rw-r--r-- | libjava/classpath/javax/print/attribute/standard/ReferenceUriSchemesSupported.java | 84 |
1 files changed, 77 insertions, 7 deletions
diff --git a/libjava/classpath/javax/print/attribute/standard/ReferenceUriSchemesSupported.java b/libjava/classpath/javax/print/attribute/standard/ReferenceUriSchemesSupported.java index b4c0d9408c8..8a00218b8b7 100644 --- a/libjava/classpath/javax/print/attribute/standard/ReferenceUriSchemesSupported.java +++ b/libjava/classpath/javax/print/attribute/standard/ReferenceUriSchemesSupported.java @@ -1,5 +1,5 @@ /* ReferenceUriSchemesSupported.java -- - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -42,33 +42,82 @@ import javax.print.attribute.EnumSyntax; /** + * The <code>ReferenceUriSchemesSupported</code> attribute provides + * the supported URI schemes (e.g. ftp) which are supported by the + * printer service to be used as uri reference for document data. + * <p> + * <b>IPP Compatibility:</b> ReferenceUriSchemesSupported is an IPP 1.1 + * attribute. + * </p> + * * @author Michael Koch (konqueror@gmx.de) + * @author Wolfgang Baer (WBaer@gmx.de) */ public class ReferenceUriSchemesSupported extends EnumSyntax implements Attribute { private static final long serialVersionUID = -8989076942813442805L; + /** + * The file transfer protocol (FTP). + */ public static final ReferenceUriSchemesSupported FTP = new ReferenceUriSchemesSupported(0); + + /** + * The hyper text transfer protocol (HTTP). + */ public static final ReferenceUriSchemesSupported HTTP = new ReferenceUriSchemesSupported(1); + + /** + * The secure hyper text transfer protocol (HTTPS). + */ public static final ReferenceUriSchemesSupported HTTPS = new ReferenceUriSchemesSupported(2); + + /** + * The gopher protocol. + */ public static final ReferenceUriSchemesSupported GOPHER = new ReferenceUriSchemesSupported(3); + + /** + * The USENET news - RFC 1738. + */ public static final ReferenceUriSchemesSupported NEWS = new ReferenceUriSchemesSupported(4); + + /** + * The network news transfer protocol (NNTP) - RFC 1738. + */ public static final ReferenceUriSchemesSupported NNTP = new ReferenceUriSchemesSupported(5); + + /** + * The wide area information server protocol (WAIS) - RFC 4156. + */ public static final ReferenceUriSchemesSupported WAIS = new ReferenceUriSchemesSupported(6); + + /** + * A filename specific to the host. + */ public static final ReferenceUriSchemesSupported FILE = new ReferenceUriSchemesSupported(7); - /** - * Constructs a <code>ReferenceUriSchemeSupported</code> object. - */ + private static final String[] stringTable = { "ftp", "http", "https", + "gopher", "news", "nntp", + "wais", "file" }; + + private static final ReferenceUriSchemesSupported[] enumValueTable = + { FTP, HTTP, HTTPS, GOPHER, NEWS, NNTP, WAIS, FILE }; + + /** + * Constructs a <code>ReferenceUriSchemeSupported</code> object. + * + * @param value the enum value. + */ protected ReferenceUriSchemesSupported(int value) { super(value); @@ -77,7 +126,7 @@ public class ReferenceUriSchemesSupported extends EnumSyntax /** * Returns category of this class. * - * @return the class <code>ReferenceUriSchemesSupported</code> itself + * @return The class <code>ReferenceUriSchemesSupported</code> itself. */ public Class getCategory() { @@ -85,12 +134,33 @@ public class ReferenceUriSchemesSupported extends EnumSyntax } /** - * Returns name of this class. + * Returns the name of this attribute. * - * @return the string "reference-uri-schemes-supported" + * @return The name "reference-uri-schemes-supported". */ public String getName() { return "reference-uri-schemes-supported"; } + + /** + * Returns a table with the enumeration values represented as strings + * for this object. + * + * @return The enumeration values as strings. + */ + protected String[] getStringTable() + { + return stringTable; + } + + /** + * Returns a table with the enumeration values for this object. + * + * @return The enumeration values. + */ + protected EnumSyntax[] getEnumValueTable() + { + return enumValueTable; + } } |

