usb.jphoto
Class NameFactory

java.lang.Object
  |
  +--usb.jphoto.NameFactory
Direct Known Subclasses:
BaselineInitiator

public class NameFactory
extends java.lang.Object

Supports use of objects using vendor extension codes. The base class produces names only for standard PTP operations, responses, properties, events, and formats.


Method Summary
 java.lang.String getEventString(int code)
          Maps event codes to string names.
 java.lang.String getFormatString(int code)
          Maps object format codes to string names.
 java.lang.String getOpcodeString(int code)
          Maps command codes to string names.
 java.lang.String getPropertyName(int code)
          Maps property codes to string names.
 java.lang.String getResponseString(int code)
          Maps response codes to string names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOpcodeString

public java.lang.String getOpcodeString(int code)
Maps command codes to string names.
Parameters:
code - device command code
Returns:
interned string identifying that command.

getResponseString

public java.lang.String getResponseString(int code)
Maps response codes to string names.
Parameters:
code - response code
Returns:
interned string identifying that response.

getFormatString

public java.lang.String getFormatString(int code)
Maps object format codes to string names.
Parameters:
code - device format code
Returns:
interned string identifying that format.

getEventString

public java.lang.String getEventString(int code)
Maps event codes to string names.
Parameters:
code - device event code
Returns:
interned string identifying that event.

getPropertyName

public java.lang.String getPropertyName(int code)
Maps property codes to string names.
Parameters:
code - device property code
Returns:
interned string identifying that property.


Associated source code is licenced under the GPL.
See http://jphoto.sourceforge.net
This documentation was derived from that source code on 2001-04-12.