All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.virtualbox_4_2.SettingsVersion Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version

/*
 *  Copyright (C) 2010-2011 Oracle Corporation
 *
 *  This file is part of the VirtualBox SDK, as available from
 *  http://www.virtualbox.org.  This library is free software; you can
 *  redistribute it and/or modify it under the terms of the GNU Lesser General
 *  Public License as published by the Free Software Foundation, in version 2.1
 *  as it comes in the "COPYING.LIB" file of the VirtualBox SDK distribution.
 *  This library is distributed in the hope that it will be useful, but WITHOUT
 *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
 *  License for more details.
 *
 * SettingsVersion.java
 *
 * DO NOT EDIT! This is a generated file.
 * Generated from: src/VBox/Main/idl/VirtualBox.xidl (VirtualBox's interface definitions in XML)
 * Generator: src/VBox/Main/glue/glue-java.xsl
 */

package org.virtualbox_4_2;

import org.virtualbox_4_2.jaxws.*;
import javax.xml.ws.*;
/**

      Settings version of VirtualBox settings files. This is written to
      the "version" attribute of the root "VirtualBox" element in the settings
      file XML and indicates which VirtualBox version wrote the file.
    
Interface ID: {52BD6F5F-1ADB-4493-975D-581A9C4B803F}
*/
public enum SettingsVersion {

/**
Null value, indicates invalid version.
*/
    Null(0),
/**
Legacy settings version, not currently supported.
*/
    v1_0(1),
/**
Legacy settings version, not currently supported.
*/
    v1_1(2),
/**
Legacy settings version, not currently supported.
*/
    v1_2(3),
/**
Legacy settings version, not currently supported.
*/
    v1_3pre(4),
/**
Settings version "1.3", written by VirtualBox 2.0.12.
*/
    v1_3(5),
/**
Intermediate settings version, understood by VirtualBox 2.1.x.
*/
    v1_4(6),
/**
Intermediate settings version, understood by VirtualBox 2.1.x.
*/
    v1_5(7),
/**
Settings version "1.6", written by VirtualBox 2.1.4 (at least).
*/
    v1_6(8),
/**
Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.
*/
    v1_7(9),
/**
Intermediate settings version "1.8", understood by VirtualBox 3.1.x.
*/
    v1_8(10),
/**
Settings version "1.9", written by VirtualBox 3.1.x.
*/
    v1_9(11),
/**
Settings version "1.10", written by VirtualBox 3.2.x.
*/
    v1_10(12),
/**
Settings version "1.11", written by VirtualBox 4.0.x.
*/
    v1_11(13),
/**
Settings version "1.12", written by VirtualBox 4.1.x.
*/
    v1_12(14),
/**
Settings version "1.13", written by VirtualBox 4.2.x.
*/
    v1_13(15),
/**
Settings version greater than "1.13", written by a future VirtualBox version.
*/
    Future(99999);

    private final int value;

    SettingsVersion(int v) {
        value = v;
    }

    public int value() {
        return value;
    }

    public static SettingsVersion fromValue(long v) {
        for (SettingsVersion c: SettingsVersion.values()) {
            if (c.value == (int)v) {
                return c;
            }
        }
        throw new IllegalArgumentException(Long.toString(v));
    }

    public static SettingsVersion fromValue(String v) {
        return valueOf(SettingsVersion.class, v);
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy