xsd.etso_code_lists.UnitSymbol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powsybl-glsk-document-cse Show documentation
Show all versions of powsybl-glsk-document-cse Show documentation
Model of GLSK according to CSE format with its importer.
The newest version!
//
// Ce fichier a été généré par Eclipse Implementation of JAXB, v3.0.2
// Voir https://eclipse-ee4j.github.io/jaxb-ri
// Toute modification apportée à ce fichier sera perdue lors de la recompilation du schéma source.
// Généré le : 2024.10.16 à 01:13:04 PM CEST
//
package xsd.etso_code_lists;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* Classe Java pour UnitSymbol.
*
*
Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe.
*
* <simpleType name="UnitSymbol">
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="AMP"/>
* <enumeration value="C62"/>
* <enumeration value="DD"/>
* <enumeration value="HTZ"/>
* <enumeration value="KVT"/>
* <enumeration value="MAR"/>
* <enumeration value="MAW"/>
* <enumeration value="MVA"/>
* <enumeration value="OHM"/>
* <enumeration value="P1"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "UnitSymbol", namespace = "etso-code-lists.xsd")
@XmlEnum
public enum UnitSymbol {
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><CodeDescription xmlns:ecl="etso-code-lists.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Title>Ampere</Title><Definition>The unit of electrical current in the International system of Units (SI) equivalent to one Coulomb per second.</Definition></CodeDescription>
*
*
*
*/
AMP("AMP"),
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><CodeDescription xmlns:ecl="etso-code-lists.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Title>One</Title><Definition>A unit for dimensionless quantities, also called quantities of dimension one.</Definition></CodeDescription>
*
*
*
*/
@XmlEnumValue("C62")
C_62("C62"),
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><CodeDescription xmlns:ecl="etso-code-lists.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Title>degree (unit of angle)</Title><Definition>A unit of measurement of angles expressed in a 0 to 360 degree gradient.</Definition></CodeDescription>
*
*
*
*/
DD("DD"),
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><CodeDescription xmlns:ecl="etso-code-lists.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Title>Hertz</Title><Definition>HTZ unit as per UN/CEFACT recommendation 20</Definition></CodeDescription>
*
*
*
*/
HTZ("HTZ"),
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><CodeDescription xmlns:ecl="etso-code-lists.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Title>kV</Title><Definition>The symbol of kV</Definition></CodeDescription>
*
*
*
*/
KVT("KVT"),
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><CodeDescription xmlns:ecl="etso-code-lists.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Title>MVAr</Title><Definition>The symbol of MVAr</Definition></CodeDescription>
*
*
*
*/
MAR("MAR"),
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><CodeDescription xmlns:ecl="etso-code-lists.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Title>MW</Title><Definition>The symbol of MW</Definition></CodeDescription>
*
*
*
*/
MAW("MAW"),
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><CodeDescription xmlns:ecl="etso-code-lists.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Title>megavolt-ampere</Title><Definition>MVA unit as per UN/CEFACT recommendation 20</Definition></CodeDescription>
*
*
*
*/
MVA("MVA"),
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><CodeDescription xmlns:ecl="etso-code-lists.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Title>Ohm</Title><Definition>The symbol of Ohm Unit</Definition></CodeDescription>
*
*
*
*/
OHM("OHM"),
/**
*
*
* <?xml version="1.0" encoding="UTF-8"?><CodeDescription xmlns:ecl="etso-code-lists.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Title>Percent</Title><Definition>A unit of proportion equal to 0.01.</Definition></CodeDescription>
*
*
*
*/
@XmlEnumValue("P1")
P_1("P1");
private final String value;
UnitSymbol(String v) {
value = v;
}
public String value() {
return value;
}
public static UnitSymbol fromValue(String v) {
for (UnitSymbol c: UnitSymbol.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}