j3d.org Code

org.j3d.util.device
Class DeviceDescriptor

java.lang.Object
  extended byorg.j3d.util.device.DeviceDescriptor
Direct Known Subclasses:
AudioDeviceDescriptor, FileLoaderDescriptor, InputDeviceDescriptor

public abstract class DeviceDescriptor
extends java.lang.Object

An abstract descriptor class for holding information about the different device types.


Constructor Summary
protected DeviceDescriptor(java.lang.String name, java.lang.String desc, java.lang.String cls)
          Construct an instance of this class with the given information about the name, description and class file.
 
Method Summary
 boolean equals(java.lang.Object o)
          Check for equality of these two classes.
 java.lang.String getDescription()
          Get the description string of this device.
 java.lang.String getName()
          Get the name of this device.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceDescriptor

protected DeviceDescriptor(java.lang.String name,
                           java.lang.String desc,
                           java.lang.String cls)
Construct an instance of this class with the given information about the name, description and class file.

Parameters:
name - The name of the device
desc - A description of the device
cls - The fully qualified name of the class file
Method Detail

getName

public java.lang.String getName()
Get the name of this device. It should be a one line string that is not strictly formatted.

Returns:
The name of this class

getDescription

public java.lang.String getDescription()
Get the description string of this device. It could be a multi-line string containing copyright, author or any other random information.

Returns:
The description string for this device

equals

public boolean equals(java.lang.Object o)
Check for equality of these two classes. The equality check is based on having the same qualified class name.

Parameters:
o - The object to compare against
Returns:
true if these represent the same class

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org