[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] classpath ChangeLog gnu/javax/print/ipp/IppPrin...
From: |
Andrew John Hughes |
Subject: |
[commit-cp] classpath ChangeLog gnu/javax/print/ipp/IppPrin... |
Date: |
Wed, 28 Apr 2010 21:33:37 +0000 |
CVSROOT: /sources/classpath
Module name: classpath
Changes by: Andrew John Hughes <gnu_andrew> 10/04/28 21:33:37
Modified files:
. : ChangeLog
gnu/javax/print/ipp: IppPrintService.java IppResponse.java
gnu/javax/print/ipp/attribute/supported:
CompressionSupported.java
FinishingsSupported.java
JobSheetsSupported.java
MediaSupported.java
MultipleDocumentHandlingSupported.java
OrientationRequestedSupported.java
PrintQualitySupported.java
PrinterResolutionSupported.java
Log message:
Add generic types to IppResponse and IppPrintService
2010-04-28 Andrew John Hughes <address@hidden>
* gnu/javax/print/ipp/IppPrintService.java:
(printerAttr): Add generic typing.
(printServiceAttributeListener): Likewise.
(flavors): Likewise.
(printerUris): Likewise.
(IppPrintService(URI uri, String username, String password)):
Use generic types in initialising listener set.
(getPrinterAttributes()): Add generic types. Remove cast.
(getPrinterAttributeSet(Class<T>)): Return a set containing
attributes of type T. Now creates a new set and checks that
all elements of the original set can be cast and added to this
new set.
(getPrinterDefaultAttribute(Class<? extends Attribute>)): Add
generic types.
(processResponse()): Add generic types.
(getAttribute(Class<T>)): Use generic types corresponding to
parent interface.
(getSupportedAttributeCategories()): Use generic types.
(getSupportedAttributeValues()): Likewise.
(handleSupportedAttributeValuesResponse(IppResponse,Class<?
extends Attribute>)):
Likewise.
(isAttributeCategorySupported(Class<? extends Attribute>)):
Likewise.
* gnu/javax/print/ipp/IppResponse.java:
(parseResponse(InputStream)): Use generic types.
(parseAttributes(Map<Class<? extends Attribute>,
Set<Attribute>, DataInputStream)):
Likewise.
(addAttribute(Map<Class<? extends Attribute>, Set<Attribute>>,
Attribute): Likewise.
(IppResponse(URI, short)): Create lists with appropriate type
parameters.
(getJobAttributes()): Use generic return type.
(getOperationAttributes()): Likewise.
(getPrinterAttributes()): Likewise.
(getUnsupportedAttributes()): Likewise.
*
gnu/javax/print/ipp/attribute/supported/CompressionSupported.java:
(getAssociatedAttributeArray(Set<Attribute>)): Use superclass
Attribute
as set type parameter and cast when looping over it.
*
gnu/javax/print/ipp/attribute/supported/FinishingsSupported.java,
(getAssociatedAttributeArray(Set<Attribute>)): Use superclass
Attribute
as set type parameter and cast when looping over it.
*
gnu/javax/print/ipp/attribute/supported/JobSheetsSupported.java,
(getAssociatedAttributeArray(Set<Attribute>)): Use superclass
Attribute
as set type parameter and cast when looping over it.
* gnu/javax/print/ipp/attribute/supported/MediaSupported.java,
(getAssociatedAttributeArray(Set<Attribute>)): Use superclass
Attribute
as set type parameter and cast when looping over it.
*
gnu/javax/print/ipp/attribute/supported/MultipleDocumentHandlingSupported.java,
(getAssociatedAttributeArray(Set<Attribute>)): Use superclass
Attribute
as set type parameter and cast when looping over it.
*
gnu/javax/print/ipp/attribute/supported/OrientationRequestedSupported.java,
(getAssociatedAttributeArray(Set<Attribute>)): Use superclass
Attribute
as set type parameter and cast when looping over it.
*
gnu/javax/print/ipp/attribute/supported/PrintQualitySupported.java,
(getAssociatedAttributeArray(Set<Attribute>)): Use superclass
Attribute
as set type parameter and cast when looping over it.
*
gnu/javax/print/ipp/attribute/supported/PrinterResolutionSupported.java,
(getAssociatedAttributeArray(Set<Attribute>)): Use superclass
Attribute
as set type parameter and cast when looping over it.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9786&r2=1.9787
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/javax/print/ipp/IppPrintService.java?cvsroot=classpath&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/javax/print/ipp/IppResponse.java?cvsroot=classpath&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/javax/print/ipp/attribute/supported/CompressionSupported.java?cvsroot=classpath&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/javax/print/ipp/attribute/supported/FinishingsSupported.java?cvsroot=classpath&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/javax/print/ipp/attribute/supported/JobSheetsSupported.java?cvsroot=classpath&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/javax/print/ipp/attribute/supported/MediaSupported.java?cvsroot=classpath&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/javax/print/ipp/attribute/supported/MultipleDocumentHandlingSupported.java?cvsroot=classpath&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/javax/print/ipp/attribute/supported/OrientationRequestedSupported.java?cvsroot=classpath&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/javax/print/ipp/attribute/supported/PrintQualitySupported.java?cvsroot=classpath&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/javax/print/ipp/attribute/supported/PrinterResolutionSupported.java?cvsroot=classpath&r1=1.2&r2=1.3