org.cassandraunit.dataset.xml.Strategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cassandra-unit Show documentation
Show all versions of cassandra-unit Show documentation
Test framework to develop with Cassandra
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.12.02 at 11:33:34 AM CET
//
package org.cassandraunit.dataset.xml;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for Strategy.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="Strategy">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="org.apache.cassandra.locator.LocalStrategy"/>
* <enumeration value="org.apache.cassandra.locator.NetworkTopologyStrategy"/>
* <enumeration value="org.apache.cassandra.locator.SimpleStrategy"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "Strategy")
@XmlEnum
public enum Strategy {
@XmlEnumValue("org.apache.cassandra.locator.LocalStrategy")
ORG_APACHE_CASSANDRA_LOCATOR_LOCAL_STRATEGY("org.apache.cassandra.locator.LocalStrategy"),
@XmlEnumValue("org.apache.cassandra.locator.NetworkTopologyStrategy")
ORG_APACHE_CASSANDRA_LOCATOR_NETWORK_TOPOLOGY_STRATEGY("org.apache.cassandra.locator.NetworkTopologyStrategy"),
@XmlEnumValue("org.apache.cassandra.locator.SimpleStrategy")
ORG_APACHE_CASSANDRA_LOCATOR_SIMPLE_STRATEGY("org.apache.cassandra.locator.SimpleStrategy");
private final String value;
Strategy(String v) {
value = v;
}
public String value() {
return value;
}
public static Strategy fromValue(String v) {
for (Strategy c: Strategy.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}