diff options
Diffstat (limited to 'javax/print/attribute/Attribute.java')
-rw-r--r-- | javax/print/attribute/Attribute.java | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/javax/print/attribute/Attribute.java b/javax/print/attribute/Attribute.java index fcaa7d84c..7ce0247ce 100644 --- a/javax/print/attribute/Attribute.java +++ b/javax/print/attribute/Attribute.java @@ -1,5 +1,5 @@ /* Attribute.java -- - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -40,11 +40,27 @@ package javax.print.attribute; import java.io.Serializable; /** - * @author Michael Koch + * Base interface of every printing attribute of the Java Print Service API. + * + * @author Michael Koch (konqueror@gmx.de) */ public interface Attribute extends Serializable { + /** + * Returns the category of the printing attribute which is the specific + * attribute class implementing this interface. + * + * @return The concrete {@link Class} instance of the attribute class. + */ Class getCategory (); + /** + * Returns the descriptive name of the attribute category. + * + * Implementations of the <code>Attribute</code> interfaces providing equal + * category values have to return equal name values. + * + * @return The name of the attribute category. + */ String getName (); } |