

/**
 * Copyright (C) 2006-2008 Sun Microsystems, Inc.
 * 
 * Sun Microsystems, Inc. confidential
 * All rights reserved
 *
 * This file is autogenerated by glue-jaxws.xsl, DO NOT EDIT! 
 */

package com.sun.xml.ws.commons.virtualbox;

import java.math.BigInteger;
import java.util.List;
import java.util.UUID;
import javax.xml.ws.Holder;
import javax.xml.ws.WebServiceException;
import com.sun.xml.ws.commons.virtualbox.IUnknown;

import org.virtualbox.service.InvalidObjectFaultMsg;
import org.virtualbox.service.RuntimeFaultMsg;
import org.virtualbox.service.VboxService;
import org.virtualbox.service.VboxPortType;

public class IUSBDeviceFilter extends IUnknown {

    public static IUSBDeviceFilter cast(IUnknown other) {
        return new IUSBDeviceFilter(other.getRef(), other.getRemoteWSPort());
    }

    public IUSBDeviceFilter(String _this, VboxPortType port) {
        super(_this,port);
    }

    // read/write attribute IUSBDeviceFilter::name of type wstring
    public String getName() {
        try {
            String retVal = port.iusbDeviceFilterGetName(_this);
            return retVal;
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }
    public void setName(String value) {
        try {
            port.iusbDeviceFilterSetName(_this, value);
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }

    // read/write attribute IUSBDeviceFilter::active of type boolean
    public Boolean getActive() {
        try {
            Boolean retVal = port.iusbDeviceFilterGetActive(_this);
            return retVal;
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }
    public void setActive(Boolean value) {
        try {
            port.iusbDeviceFilterSetActive(_this, value);
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }

    // read/write attribute IUSBDeviceFilter::vendorId of type wstring
    public String getVendorId() {
        try {
            String retVal = port.iusbDeviceFilterGetVendorId(_this);
            return retVal;
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }
    public void setVendorId(String value) {
        try {
            port.iusbDeviceFilterSetVendorId(_this, value);
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }

    // read/write attribute IUSBDeviceFilter::productId of type wstring
    public String getProductId() {
        try {
            String retVal = port.iusbDeviceFilterGetProductId(_this);
            return retVal;
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }
    public void setProductId(String value) {
        try {
            port.iusbDeviceFilterSetProductId(_this, value);
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }

    // read/write attribute IUSBDeviceFilter::revision of type wstring
    public String getRevision() {
        try {
            String retVal = port.iusbDeviceFilterGetRevision(_this);
            return retVal;
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }
    public void setRevision(String value) {
        try {
            port.iusbDeviceFilterSetRevision(_this, value);
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }

    // read/write attribute IUSBDeviceFilter::manufacturer of type wstring
    public String getManufacturer() {
        try {
            String retVal = port.iusbDeviceFilterGetManufacturer(_this);
            return retVal;
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }
    public void setManufacturer(String value) {
        try {
            port.iusbDeviceFilterSetManufacturer(_this, value);
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }

    // read/write attribute IUSBDeviceFilter::product of type wstring
    public String getProduct() {
        try {
            String retVal = port.iusbDeviceFilterGetProduct(_this);
            return retVal;
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }
    public void setProduct(String value) {
        try {
            port.iusbDeviceFilterSetProduct(_this, value);
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }

    // read/write attribute IUSBDeviceFilter::serialNumber of type wstring
    public String getSerialNumber() {
        try {
            String retVal = port.iusbDeviceFilterGetSerialNumber(_this);
            return retVal;
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }
    public void setSerialNumber(String value) {
        try {
            port.iusbDeviceFilterSetSerialNumber(_this, value);
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }

    // read/write attribute IUSBDeviceFilter::port of type wstring
    public String getPort() {
        try {
            String retVal = port.iusbDeviceFilterGetPort(_this);
            return retVal;
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }
    public void setPort(String value) {
        try {
            port.iusbDeviceFilterSetPort(_this, value);
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }

    // read/write attribute IUSBDeviceFilter::remote of type wstring
    public String getRemote() {
        try {
            String retVal = port.iusbDeviceFilterGetRemote(_this);
            return retVal;
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }
    public void setRemote(String value) {
        try {
            port.iusbDeviceFilterSetRemote(_this, value);
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }

    // read/write attribute IUSBDeviceFilter::maskedInterfaces of type unsigned long
    public Long getMaskedInterfaces() {
        try {
            Long retVal = port.iusbDeviceFilterGetMaskedInterfaces(_this);
            return retVal;
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }
    public void setMaskedInterfaces(Long value) {
        try {
            port.iusbDeviceFilterSetMaskedInterfaces(_this, value);
        } catch (InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }
}
