public class ResolveCompletionItemRequest extends Object implements ICompletionItemResolverRequest
ICompletionItemResolverRequest| Constructor and Description |
|---|
ResolveCompletionItemRequest(org.eclipse.lsp4j.CompletionItem unresolved,
DOMDocument document,
IComponentProvider componentProvider,
SharedSettings sharedSettings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSupportMarkupKind(String kind)
Returns
true if the client can support the given Markup kind for
documentation and false otherwise. |
<T> T |
getComponent(Class clazz)
Returns the component class instance from the given class and null otherwise.
|
String |
getDataProperty(String fieldName)
Returns the value of a field from the supplementary data attached to the
request as a string.
|
Integer |
getDataPropertyAsInt(String fieldName)
Returns the value of a field from the supplementary data attached to the
request as an integer, or null if the field is not an integer.
|
DOMDocument |
getDocument()
Returns the DOM document.
|
String |
getParticipantId()
Returns the id of the participant that can resolve the request.
|
SharedSettings |
getSharedSettings()
Returns the shared settings.
|
org.eclipse.lsp4j.CompletionItem |
getUnresolved()
Returns the unresolved completion item.
|
public ResolveCompletionItemRequest(org.eclipse.lsp4j.CompletionItem unresolved,
DOMDocument document,
IComponentProvider componentProvider,
SharedSettings sharedSettings)
public org.eclipse.lsp4j.CompletionItem getUnresolved()
ICompletionItemResolverRequestgetUnresolved in interface ICompletionItemResolverRequestpublic String getParticipantId()
ICompletionItemResolverRequestgetParticipantId in interface ICompletionItemResolverRequestpublic String getDataProperty(String fieldName)
ICompletionItemResolverRequestgetDataProperty in interface ICompletionItemResolverRequestfieldName - the name of the field to retrieve the data frompublic boolean canSupportMarkupKind(String kind)
ISharedSettingsRequesttrue if the client can support the given Markup kind for
documentation and false otherwise.canSupportMarkupKind in interface ISharedSettingsRequestkind - the markup kindtrue if the client can support the given Markup kind for
documentation and false otherwise.public Integer getDataPropertyAsInt(String fieldName)
ICompletionItemResolverRequestgetDataPropertyAsInt in interface ICompletionItemResolverRequestfieldName - the name of the field to retrieve the data frompublic <T> T getComponent(Class clazz)
IComponentProvidergetComponent in interface IComponentProviderclazz - class of the component.public DOMDocument getDocument()
ICompletionItemResolverRequestgetDocument in interface ICompletionItemResolverRequestpublic SharedSettings getSharedSettings()
ICompletionItemResolverRequestgetSharedSettings in interface ICompletionItemResolverRequestgetSharedSettings in interface ISharedSettingsRequestCopyright © 2022. All rights reserved.