Package jmri.jmrit
Enum XmlFile.Validate
- All Implemented Interfaces:
Serializable,Comparable<XmlFile.Validate>,java.lang.constant.Constable
- Enclosing class:
- XmlFile
Specify validation operations on input. The available choices are
restricted to what the underlying SAX Xerces and JDOM implementations
allow.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionValidate against DTD if present (no DTD passes too)Validate against DTD if present, else Schema must be present and validDon't validate inputRequire that the input specifies a Schema which validates -
Method Summary
Modifier and TypeMethodDescriptionstatic XmlFile.ValidateReturns the enum constant of this type with the specified name.static XmlFile.Validate[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
None
Don't validate input -
RequireSchema
Require that the input specifies a Schema which validates -
CheckDtd
Validate against DTD if present (no DTD passes too) -
CheckDtdThenSchema
Validate against DTD if present, else Schema must be present and valid
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-