Enum Class RelaxNGErrorCode

java.lang.Object
java.lang.Enum<RelaxNGErrorCode>
org.eclipse.lemminx.extensions.relaxng.xml.validator.RelaxNGErrorCode
All Implemented Interfaces:
Serializable, Comparable<RelaxNGErrorCode>, java.lang.constant.Constable, IXMLErrorCode

public enum RelaxNGErrorCode extends Enum<RelaxNGErrorCode> implements IXMLErrorCode
RelaxNG error code when XML is validated with *.rng / *.rnc schemas.
Author:
Angelo ZERR
See Also:
  • Enum Constant Details

    • unknown_element

      public static final RelaxNGErrorCode unknown_element
    • unexpected_element_required_element_missing

      public static final RelaxNGErrorCode unexpected_element_required_element_missing
    • unexpected_element_required_elements_missing

      public static final RelaxNGErrorCode unexpected_element_required_elements_missing
    • element_not_allowed_yet

      public static final RelaxNGErrorCode element_not_allowed_yet
    • out_of_context_element

      public static final RelaxNGErrorCode out_of_context_element
    • no_attributes_allowed

      public static final RelaxNGErrorCode no_attributes_allowed
    • invalid_attribute_name

      public static final RelaxNGErrorCode invalid_attribute_name
    • invalid_attribute_value

      public static final RelaxNGErrorCode invalid_attribute_value
    • required_attributes_missing_expected

      public static final RelaxNGErrorCode required_attributes_missing_expected
    • required_attribute_missing

      public static final RelaxNGErrorCode required_attribute_missing
    • required_attributes_missing

      public static final RelaxNGErrorCode required_attributes_missing
    • incomplete_element_required_elements_missing_expected

      public static final RelaxNGErrorCode incomplete_element_required_elements_missing_expected
    • incomplete_element_required_element_missing

      public static final RelaxNGErrorCode incomplete_element_required_element_missing
    • incomplete_element_required_elements_missing

      public static final RelaxNGErrorCode incomplete_element_required_elements_missing
    • text_not_allowed

      public static final RelaxNGErrorCode text_not_allowed
    • document_incomplete

      public static final RelaxNGErrorCode document_incomplete
    • invalid_element_value

      public static final RelaxNGErrorCode invalid_element_value
    • blank_not_allowed

      public static final RelaxNGErrorCode blank_not_allowed
    • schema_allows_nothing

      public static final RelaxNGErrorCode schema_allows_nothing
    • RelaxNGNotFound

      public static final RelaxNGErrorCode RelaxNGNotFound
    • missing_start_element

      public static final RelaxNGErrorCode missing_start_element
    • reference_to_undefined

      public static final RelaxNGErrorCode reference_to_undefined
    • duplicate_define

      public static final RelaxNGErrorCode duplicate_define
    • duplicate_start

      public static final RelaxNGErrorCode duplicate_start
    • unrecognized_datatype

      public static final RelaxNGErrorCode unrecognized_datatype
    • expected_pattern

      public static final RelaxNGErrorCode expected_pattern
    • illegal_attribute_ignored

      public static final RelaxNGErrorCode illegal_attribute_ignored
    • illegal_name_attribute

      public static final RelaxNGErrorCode illegal_name_attribute
    • invalid_ncname

      public static final RelaxNGErrorCode invalid_ncname
    • missing_children

      public static final RelaxNGErrorCode missing_children
    • missing_name_attribute

      public static final RelaxNGErrorCode missing_name_attribute
    • missing_name_class

      public static final RelaxNGErrorCode missing_name_class
    • missing_type_attribute

      public static final RelaxNGErrorCode missing_type_attribute
    • to_implement

      public static final RelaxNGErrorCode to_implement
  • Method Details

    • values

      public static RelaxNGErrorCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RelaxNGErrorCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public String getCode()
      Description copied from interface: IXMLErrorCode
      Returns the XML error code.
      Specified by:
      getCode in interface IXMLErrorCode
      Returns:
      the XML error code.
    • get

      public static RelaxNGErrorCode get(String name)
    • toLSPRange

      public static org.eclipse.lsp4j.Range toLSPRange(org.apache.xerces.xni.XMLLocator location, RelaxNGErrorCode rngCode, Object[] arguments, DOMDocument document)
    • registerCodeActionParticipants

      public static void registerCodeActionParticipants(Map<String,ICodeActionParticipant> codeActions, SharedSettings sharedSettings)