public enum XMLSyntaxErrorCode extends Enum<XMLSyntaxErrorCode> implements IXMLErrorCode
https://wiki.xmldation.com/Support/Validator
Modifier and Type | Method and Description |
---|---|
static XMLSyntaxErrorCode |
get(String name) |
String |
getCode()
Returns the XML error code.
|
static void |
registerCodeActionParticipants(Map<String,ICodeActionParticipant> codeActions,
SharedSettings sharedSettings) |
static org.eclipse.lsp4j.Range |
toLSPRange(org.apache.xerces.xni.XMLLocator location,
XMLSyntaxErrorCode code,
Object[] arguments,
DOMDocument document)
Create the LSP range from the SAX error.
|
static XMLSyntaxErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XMLSyntaxErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XMLSyntaxErrorCode AttributeNotUnique
public static final XMLSyntaxErrorCode AttributeNSNotUnique
public static final XMLSyntaxErrorCode AttributePrefixUnbound
public static final XMLSyntaxErrorCode ContentIllegalInProlog
public static final XMLSyntaxErrorCode DashDashInComment
public static final XMLSyntaxErrorCode ElementUnterminated
public static final XMLSyntaxErrorCode ElementPrefixUnbound
public static final XMLSyntaxErrorCode EmptyPrefixedAttName
public static final XMLSyntaxErrorCode EncodingDeclRequired
public static final XMLSyntaxErrorCode ETagRequired
public static final XMLSyntaxErrorCode ETagUnterminated
public static final XMLSyntaxErrorCode EqRequiredInAttribute
public static final XMLSyntaxErrorCode EqRequiredInXMLDecl
public static final XMLSyntaxErrorCode IllegalQName
public static final XMLSyntaxErrorCode InvalidCommentStart
public static final XMLSyntaxErrorCode LessthanInAttValue
public static final XMLSyntaxErrorCode MarkupEntityMismatch
public static final XMLSyntaxErrorCode MarkupNotRecognizedInContent
public static final XMLSyntaxErrorCode NameRequiredInReference
public static final XMLSyntaxErrorCode OpenQuoteExpected
public static final XMLSyntaxErrorCode PITargetRequired
public static final XMLSyntaxErrorCode PseudoAttrNameExpected
public static final XMLSyntaxErrorCode QuoteRequiredInXMLDecl
public static final XMLSyntaxErrorCode RootElementTypeMustMatchDoctypedecl
public static final XMLSyntaxErrorCode SDDeclInvalid
public static final XMLSyntaxErrorCode SemicolonRequiredInReference
public static final XMLSyntaxErrorCode SpaceRequiredBeforeEncodingInXMLDecl
public static final XMLSyntaxErrorCode SpaceRequiredBeforeStandalone
public static final XMLSyntaxErrorCode SpaceRequiredInPI
public static final XMLSyntaxErrorCode VersionInfoRequired
public static final XMLSyntaxErrorCode VersionNotSupported
public static final XMLSyntaxErrorCode XMLDeclUnterminated
public static final XMLSyntaxErrorCode CustomETag
public static final XMLSyntaxErrorCode PrematureEOF
public static final XMLSyntaxErrorCode DoctypeNotAllowed
public static final XMLSyntaxErrorCode NoMorePseudoAttributes
public static final XMLSyntaxErrorCode NoGrammarConstraints
public static XMLSyntaxErrorCode[] values()
for (XMLSyntaxErrorCode c : XMLSyntaxErrorCode.values()) System.out.println(c);
public static XMLSyntaxErrorCode 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 XMLSyntaxErrorCode get(String name)
public static org.eclipse.lsp4j.Range toLSPRange(org.apache.xerces.xni.XMLLocator location, XMLSyntaxErrorCode code, Object[] arguments, DOMDocument document)
location
- key
- arguments
- document
- public static void registerCodeActionParticipants(Map<String,ICodeActionParticipant> codeActions, SharedSettings sharedSettings)
Copyright © 2021. All rights reserved.