org.w3._1998.math.mathml.Centering Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of legislation-gov-uk Show documentation
Show all versions of legislation-gov-uk Show documentation
Java library for consuming the Legislation.gov.uk API
The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.08.07 at 06:17:52 PM CEST
//
package org.w3._1998.math.mathml;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for centering.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="centering">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="left"/>
* <enumeration value="center"/>
* <enumeration value="right"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "centering")
@XmlEnum
public enum Centering {
@XmlEnumValue("left")
LEFT("left"),
@XmlEnumValue("center")
CENTER("center"),
@XmlEnumValue("right")
RIGHT("right");
private final String value;
Centering(String v) {
value = v;
}
public static Centering fromValue(String v) {
for (Centering c: Centering.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
public String value() {
return value;
}
}