public enum XSDErrorCode extends Enum<XSDErrorCode> implements IXMLErrorCode
https://wiki.xmldation.com/Support/Validator
Modifier and Type | Method and Description |
---|---|
static XSDErrorCode |
get(String name) |
String |
getCode()
Returns the XML error code.
|
static void |
registerCodeActionParticipants(Map<String,ICodeActionParticipant> codeActions) |
static org.eclipse.lsp4j.Range |
toLSPRange(org.apache.xerces.xni.XMLLocator location,
XSDErrorCode code,
Object[] arguments,
DOMDocument document)
Create the LSP range from the SAX error.
|
static XSDErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XSDErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XSDErrorCode cos_all_limited_2
public static final XSDErrorCode ct_props_correct_3
public static final XSDErrorCode p_props_correct_2_1
public static final XSDErrorCode s4s_elt_invalid_content_1
public static final XSDErrorCode s4s_elt_must_match_1
public static final XSDErrorCode s4s_elt_must_match_2
public static final XSDErrorCode s4s_att_must_appear
public static final XSDErrorCode s4s_elt_invalid_content_2
public static final XSDErrorCode s4s_att_not_allowed
public static final XSDErrorCode s4s_att_invalid_value
public static final XSDErrorCode s4s_elt_character
public static final XSDErrorCode s4s_elt_invalid_content_3
public static final XSDErrorCode sch_props_correct_2
public static final XSDErrorCode src_ct_1
public static final XSDErrorCode src_import_1_2
public static final XSDErrorCode src_element_3
public static final XSDErrorCode src_resolve_4_2
public static final XSDErrorCode src_resolve
public static final XSDErrorCode src_element_2_1
public static final XSDErrorCode EmptyTargetNamespace
public static XSDErrorCode[] values()
for (XSDErrorCode c : XSDErrorCode.values()) System.out.println(c);
public static XSDErrorCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getCode()
IXMLErrorCode
getCode
in interface IXMLErrorCode
public static XSDErrorCode get(String name)
public static org.eclipse.lsp4j.Range toLSPRange(org.apache.xerces.xni.XMLLocator location, XSDErrorCode code, Object[] arguments, DOMDocument document)
characterOffset
- key
- arguments
- document
- public static void registerCodeActionParticipants(Map<String,ICodeActionParticipant> codeActions)
Copyright © 2021. All rights reserved.