public enum DTDErrorCode extends Enum<DTDErrorCode> implements IXMLErrorCode
https://wiki.xmldation.com/Support/Validator
Modifier and Type | Method and Description |
---|---|
static DTDErrorCode |
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,
DTDErrorCode code,
Object[] arguments,
DOMDocument document)
Create the LSP range from the SAX error.
|
static DTDErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DTDErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DTDErrorCode AttNameRequiredInAttDef
public static final DTDErrorCode AttTypeRequiredInAttDef
public static final DTDErrorCode ElementDeclUnterminated
public static final DTDErrorCode EntityDeclUnterminated
public static final DTDErrorCode EntityNotDeclared
public static final DTDErrorCode ExternalIDorPublicIDRequired
public static final DTDErrorCode IDInvalidWithNamespaces
public static final DTDErrorCode IDREFInvalidWithNamespaces
public static final DTDErrorCode IDREFSInvalid
public static final DTDErrorCode LessthanInAttValue
public static final DTDErrorCode MSG_ATTRIBUTE_NOT_DECLARED
public static final DTDErrorCode MSG_ATTRIBUTE_VALUE_NOT_IN_LIST
public static final DTDErrorCode MSG_CONTENT_INCOMPLETE
public static final DTDErrorCode MSG_CONTENT_INVALID
public static final DTDErrorCode MSG_ELEMENT_ALREADY_DECLARED
public static final DTDErrorCode MSG_ELEMENT_NOT_DECLARED
public static final DTDErrorCode MSG_ELEMENT_TYPE_REQUIRED_IN_ATTLISTDECL
public static final DTDErrorCode MSG_ELEMENT_TYPE_REQUIRED_IN_ELEMENTDECL
public static final DTDErrorCode MSG_ELEMENT_WITH_ID_REQUIRED
public static final DTDErrorCode MSG_ENTITY_NAME_REQUIRED_IN_ENTITYDECL
public static final DTDErrorCode MSG_FIXED_ATTVALUE_INVALID
public static final DTDErrorCode MSG_MARKUP_NOT_RECOGNIZED_IN_DTD
public static final DTDErrorCode MSG_NOTATION_NAME_REQUIRED_IN_NOTATIONDECL
public static final DTDErrorCode MSG_OPEN_PAREN_OR_ELEMENT_TYPE_REQUIRED_IN_CHILDREN
public static final DTDErrorCode MSG_REQUIRED_ATTRIBUTE_NOT_SPECIFIED
public static final DTDErrorCode MSG_SPACE_REQUIRED_AFTER_NOTATION_NAME_IN_NOTATIONDECL
public static final DTDErrorCode NotationDeclUnterminated
public static final DTDErrorCode OpenQuoteExpected
public static final DTDErrorCode OpenQuoteMissingInDecl
public static final DTDErrorCode PEReferenceWithinMarkup
public static final DTDErrorCode QuoteRequiredInPublicID
public static final DTDErrorCode QuoteRequiredInSystemID
public static final DTDErrorCode SpaceRequiredAfterSYSTEM
public static final DTDErrorCode dtd_not_found
public static DTDErrorCode[] values()
for (DTDErrorCode c : DTDErrorCode.values()) System.out.println(c);
public static DTDErrorCode 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 DTDErrorCode get(String name)
public static org.eclipse.lsp4j.Range toLSPRange(org.apache.xerces.xni.XMLLocator location, DTDErrorCode code, Object[] arguments, DOMDocument document)
location
- key
- arguments
- document
- public static void registerCodeActionParticipants(Map<String,ICodeActionParticipant> codeActions)
Copyright © 2020. All rights reserved.