Enum Class DTDErrorCode
- All Implemented Interfaces:
Serializable,Comparable<DTDErrorCode>,java.lang.constant.Constable,IXMLErrorCode
DTD error code.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic DTDErrorCodegetCode()Returns the XML error code.static voidregisterCodeActionParticipants(Map<String, ICodeActionParticipant> codeActions, SharedSettings sharedSettings) static org.eclipse.lsp4j.RangetoLSPRange(org.apache.xerces.xni.XMLLocator location, DTDErrorCode code, Object[] arguments, DOMDocument document) Create the LSP range from the SAX error.static DTDErrorCodeReturns the enum constant of this class with the specified name.static DTDErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AttNameRequiredInAttDef
-
AttTypeRequiredInAttDef
-
ElementDeclUnterminated
-
EntityDeclUnterminated
-
EntityNotDeclared
-
EntityExpansionLimitExceeded
-
ExternalIDorPublicIDRequired
-
IDInvalidWithNamespaces
-
IDREFInvalidWithNamespaces
-
IDREFSInvalid
-
LessthanInAttValue
-
MSG_ATTRIBUTE_NOT_DECLARED
-
MSG_ATTRIBUTE_VALUE_NOT_IN_LIST
-
MSG_CONTENT_INCOMPLETE
-
MSG_CONTENT_INVALID
-
MSG_ELEMENT_ALREADY_DECLARED
-
MSG_ELEMENT_NOT_DECLARED
-
MSG_ELEMENT_TYPE_REQUIRED_IN_ATTLISTDECL
-
MSG_ELEMENT_TYPE_REQUIRED_IN_ELEMENTDECL
-
MSG_ELEMENT_WITH_ID_REQUIRED
-
MSG_ENTITY_NAME_REQUIRED_IN_ENTITYDECL
-
MSG_FIXED_ATTVALUE_INVALID
-
MSG_MARKUP_NOT_RECOGNIZED_IN_DTD
-
MSG_NOTATION_NAME_REQUIRED_IN_NOTATIONDECL
-
MSG_OPEN_PAREN_OR_ELEMENT_TYPE_REQUIRED_IN_CHILDREN
-
MSG_CLOSE_PAREN_REQUIRED_IN_CHILDREN
-
MSG_REQUIRED_ATTRIBUTE_NOT_SPECIFIED
-
MSG_SPACE_REQUIRED_BEFORE_ELEMENT_TYPE_IN_ATTLISTDECL
-
MSG_SPACE_REQUIRED_BEFORE_ELEMENT_TYPE_IN_ELEMENTDECL
-
MSG_SPACE_REQUIRED_BEFORE_ENTITY_NAME_IN_ENTITYDECL
-
MSG_SPACE_REQUIRED_AFTER_NOTATION_NAME_IN_NOTATIONDECL
-
NotationDeclUnterminated
-
OpenQuoteExpected
-
OpenQuoteMissingInDecl
-
PEReferenceWithinMarkup
-
QuoteRequiredInPublicID
-
QuoteRequiredInSystemID
-
SpaceRequiredAfterSYSTEM
-
DTDNotFound
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getCode
Description copied from interface:IXMLErrorCodeReturns the XML error code.- Specified by:
getCodein interfaceIXMLErrorCode- Returns:
- the XML error code.
-
get
-
toLSPRange
public 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.- Parameters:
location-key-arguments-document-- Returns:
- the LSP range from the SAX error.
-