X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fxml%2Fbinding%2Fjalview%2FNoValueColour.java;fp=src%2Fjalview%2Fxml%2Fbinding%2Fjalview%2FNoValueColour.java;h=8d22ad876d950913f603c8dc3d19fe3e4c00127b;hb=cd669a0e8c7b91b379bca8fe6e702cf0fcbd1ce0;hp=eeeed2299f4b5226e85eb93a6a50bee44ed146b3;hpb=c956ba7ae40dd7f269aa372044ed4ed5f28fb042;p=jalview.git diff --git a/src/jalview/xml/binding/jalview/NoValueColour.java b/src/jalview/xml/binding/jalview/NoValueColour.java index eeeed22..8d22ad8 100644 --- a/src/jalview/xml/binding/jalview/NoValueColour.java +++ b/src/jalview/xml/binding/jalview/NoValueColour.java @@ -1,68 +1,60 @@ // -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb +// This file was generated by the Eclipse Implementation of JAXB, v2.3.3 +// See https://eclipse-ee4j.github.io/jaxb-ri // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2023.05.13 at 06:58:41 PM BST +// Generated on: 2023.11.01 at 07:03:09 PM GMT // + package jalview.xml.binding.jalview; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; + /** - *

- * Java class for NoValueColour. + * <p>Java class for NoValueColour. * - *

- * The following schema fragment specifies the expected content contained within - * this class. - *

- * - *

- * <simpleType name="NoValueColour">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="None"/>
- *     <enumeration value="Min"/>
- *     <enumeration value="Max"/>
- *   </restriction>
- * </simpleType>
- * 
+ * <p>The following schema fragment specifies the expected content contained within this class. + * <pre> + * &lt;simpleType name="NoValueColour"&gt; + * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; + * &lt;enumeration value="None"/&gt; + * &lt;enumeration value="Min"/&gt; + * &lt;enumeration value="Max"/&gt; + * &lt;/restriction&gt; + * &lt;/simpleType&gt; + * </pre> * */ @XmlType(name = "NoValueColour", namespace = "www.jalview.org/colours") @XmlEnum -public enum NoValueColour -{ - - @XmlEnumValue("None") - NONE("None"), @XmlEnumValue("Min") - MIN("Min"), @XmlEnumValue("Max") - MAX("Max"); - - private final String value; - - NoValueColour(String v) - { - value = v; - } +public enum NoValueColour { + + @XmlEnumValue("None") + NONE("None"), + @XmlEnumValue("Min") + MIN("Min"), + @XmlEnumValue("Max") + MAX("Max"); + private final String value; + + NoValueColour(String v) { + value = v; + } - public String value() - { - return value; - } + public String value() { + return value; + } - public static NoValueColour fromValue(String v) - { - for (NoValueColour c : NoValueColour.values()) - { - if (c.value.equals(v)) - { - return c; - } + public static NoValueColour fromValue(String v) { + for (NoValueColour c: NoValueColour.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); } - throw new IllegalArgumentException(v); - } }