Package com.powsybl.iidm.xml
Enum IidmXmlVersion
- java.lang.Object
-
- java.lang.Enum<IidmXmlVersion>
-
- com.powsybl.iidm.xml.IidmXmlVersion
-
- All Implemented Interfaces:
Serializable
,Comparable<IidmXmlVersion>
public enum IidmXmlVersion extends Enum<IidmXmlVersion>
- Author:
- Miora Ralambotiana
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IidmXmlVersion
fromNamespaceURI(String namespaceURI)
String
getNamespaceURI()
String
getNamespaceURI(boolean valid)
String
getXsd()
String
getXsd(boolean valid)
static IidmXmlVersion
of(String version, String separator)
String
toString(String separator)
static IidmXmlVersion
valueOf(String name)
Returns the enum constant of this type with the specified name.static IidmXmlVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V_1_0
public static final IidmXmlVersion V_1_0
-
V_1_1
public static final IidmXmlVersion V_1_1
-
V_1_2
public static final IidmXmlVersion V_1_2
-
V_1_3
public static final IidmXmlVersion V_1_3
-
V_1_4
public static final IidmXmlVersion V_1_4
-
V_1_5
public static final IidmXmlVersion V_1_5
-
V_1_6
public static final IidmXmlVersion V_1_6
-
V_1_7
public static final IidmXmlVersion V_1_7
-
-
Method Detail
-
values
public static IidmXmlVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IidmXmlVersion c : IidmXmlVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IidmXmlVersion valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNamespaceURI
public String getNamespaceURI()
-
getNamespaceURI
public String getNamespaceURI(boolean valid)
-
getXsd
public String getXsd()
-
getXsd
public String getXsd(boolean valid)
-
fromNamespaceURI
public static IidmXmlVersion fromNamespaceURI(String namespaceURI)
-
of
public static IidmXmlVersion of(String version, String separator)
-
-