001package io.ebeaninternal.dbmigration.migration; 002 003import javax.xml.bind.annotation.XmlEnum; 004import javax.xml.bind.annotation.XmlEnumValue; 005import javax.xml.bind.annotation.XmlType; 006 007 008/** 009 * <p>Java class for changeSetType. 010 * 011 * <p>The following schema fragment specifies the expected content contained within this class. 012 * <p> 013 * <pre> 014 * <simpleType name="changeSetType"> 015 * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> 016 * <enumeration value="apply"/> 017 * <enumeration value="pendingDrops"/> 018 * <enumeration value="baseline"/> 019 * <enumeration value="drop"/> 020 * </restriction> 021 * </simpleType> 022 * </pre> 023 */ 024@XmlType(name = "changeSetType") 025@XmlEnum 026public enum ChangeSetType { 027 028 @XmlEnumValue("apply") 029 APPLY("apply"), 030 @XmlEnumValue("pendingDrops") 031 PENDING_DROPS("pendingDrops"), 032 @XmlEnumValue("baseline") 033 BASELINE("baseline"), 034 @XmlEnumValue("drop") 035 DROP("drop"); 036 private final String value; 037 038 ChangeSetType(String v) { 039 value = v; 040 } 041 042 public String value() { 043 return value; 044 } 045 046 public static ChangeSetType fromValue(String v) { 047 for (ChangeSetType c : ChangeSetType.values()) { 048 if (c.value.equals(v)) { 049 return c; 050 } 051 } 052 throw new IllegalArgumentException(v); 053 } 054 055}