• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

evolvedbinary / elemental / 982

29 Apr 2025 08:34PM UTC coverage: 56.409% (+0.007%) from 56.402%
982

push

circleci

adamretter
[feature] Improve README.md badges

28451 of 55847 branches covered (50.94%)

Branch coverage included in aggregate %.

77468 of 131924 relevant lines covered (58.72%)

0.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

47.06
/exist-core/src/main/java/org/exist/http/jaxb/YesNo.java
1
/*
2
 * Elemental
3
 * Copyright (C) 2024, Evolved Binary Ltd
4
 *
5
 * admin@evolvedbinary.com
6
 * https://www.evolvedbinary.com | https://www.elemental.xyz
7
 *
8
 * Use of this software is governed by the Business Source License 1.1
9
 * included in the LICENSE file and at www.mariadb.com/bsl11.
10
 *
11
 * Change Date: 2028-04-27
12
 *
13
 * On the date above, in accordance with the Business Source License, use
14
 * of this software will be governed by the Apache License, Version 2.0.
15
 *
16
 * Additional Use Grant: Production use of the Licensed Work for a permitted
17
 * purpose. A Permitted Purpose is any purpose other than a Competing Use.
18
 * A Competing Use means making the Software available to others in a commercial
19
 * product or service that: substitutes for the Software; substitutes for any
20
 * other product or service we offer using the Software that exists as of the
21
 * date we make the Software available; or offers the same or substantially
22
 * similar functionality as the Software.
23
 */
24
//
25
// This file was generated by the Eclipse Implementation of JAXB, v3.0.0 
26
// See https://eclipse-ee4j.github.io/jaxb-ri 
27
// Any modifications to this file will be lost upon recompilation of the source schema. 
28
// Generated on: 2020.12.01 at 10:16:19 AM CET 
29
//
30

31
/*
32
 * eXist-db Open Source Native XML Database
33
 * Copyright (C) 2001 The eXist-db Authors
34
 *
35
 * info@exist-db.org
36
 * http://www.exist-db.org
37
 *
38
 * This library is free software; you can redistribute it and/or
39
 * modify it under the terms of the GNU Lesser General Public
40
 * License as published by the Free Software Foundation; either
41
 * version 2.1 of the License, or (at your option) any later version.
42
 *
43
 * This library is distributed in the hope that it will be useful,
44
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
45
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
46
 * Lesser General Public License for more details.
47
 *
48
 * You should have received a copy of the GNU Lesser General Public
49
 * License along with this library; if not, write to the Free Software
50
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
51
 */
52
package org.exist.http.jaxb;
53

54
import jakarta.xml.bind.annotation.XmlEnum;
55
import jakarta.xml.bind.annotation.XmlEnumValue;
56
import jakarta.xml.bind.annotation.XmlType;
57

58

59
/**
60
 * <p>Java class for yesNo.
61
 * 
62
 * <p>The following schema fragment specifies the expected content contained within this class.
63
 * <pre>
64
 * &lt;simpleType name="yesNo"&gt;
65
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NCName"&gt;
66
 *     &lt;enumeration value="yes"/&gt;
67
 *     &lt;enumeration value="no"/&gt;
68
 *   &lt;/restriction&gt;
69
 * &lt;/simpleType&gt;
70
 * </pre>
71
 * 
72
 */
73
@XmlType(name = "yesNo")
74
@XmlEnum
75
public enum YesNo {
1✔
76

77
    @XmlEnumValue("yes")
1✔
78
    YES("yes"),
1✔
79
    @XmlEnumValue("no")
1✔
80
    NO("no");
1✔
81
    private final String value;
82

83
    YesNo(String v) {
1✔
84
        value = v;
1✔
85
    }
1✔
86

87
    public String value() {
88
        return value;
×
89
    }
90

91
    public static YesNo fromValue(String v) {
92
        for (YesNo c: YesNo.values()) {
×
93
            if (c.value.equals(v)) {
×
94
                return c;
×
95
            }
96
        }
97
        throw new IllegalArgumentException(v);
×
98
    }
99

100
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc