com.sun.xml.ws.commons.virtualbox.IHostDVDDrive Maven / Gradle / Ivy
The newest version!
package com.sun.xml.ws.commons.virtualbox;
import javax.xml.ws.WebServiceException;
/**
* The IHostDVDDrive interface represents the physical CD/DVD drive
* hardware on the host. Used indirectly in {@link IHost#DVDDrives}.
*
*/
public class IHostDVDDrive
extends VBoxObject
{
public IHostDVDDrive(String _this, VboxPortType port) {
super(_this,port);
}
/**
* Returns the platform-specific device identifier.
* On DOS-like platforms, it is a drive name (e.g. R:).
* On Unix-like platforms, it is a device name (e.g. /dev/hdc).
*
*/
public String getName() {
try {
String retVal = port.iHostDVDDriveGetName(_this);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* Returns a human readable description for the drive. This
* description usually contains the product and vendor name. A
* @c null string is returned if the description is not available.
*
*/
public String getDescription() {
try {
String retVal = port.iHostDVDDriveGetDescription(_this);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
/**
* Returns the unique device identifier for the drive. This
* attribute is reserved for future use instead of {@link #name}. Currently it is not used and may return
* @c null on some platforms.
*
*/
public String getUdi() {
try {
String retVal = port.iHostDVDDriveGetUdi(_this);
return retVal;
} catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
throw new WebServiceException(e);
} catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
throw new WebServiceException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy