Class EntitiesDocumentationUtils
java.lang.Object
org.eclipse.lemminx.extensions.entities.EntitiesDocumentationUtils
Utilities class to generate entities documentation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumPredefined entities. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.lsp4j.MarkupContentgetDocumentation(String entityName, String entityValue, String systemID, String publicID, String targetURI, EntitiesDocumentationUtils.EntityOriginType type, boolean markdown) Returns the entity documentation.static org.eclipse.lsp4j.MarkupContentgetDocumentation(String entityName, String entityValue, EntitiesDocumentationUtils.EntityOriginType type, boolean markdown) static org.eclipse.lsp4j.MarkupContentgetDocumentation(DTDEntityDecl entity, EntitiesDocumentationUtils.EntityOriginType type, boolean markdown)
-
Method Details
-
getDocumentation
public static org.eclipse.lsp4j.MarkupContent getDocumentation(String entityName, String entityValue, EntitiesDocumentationUtils.EntityOriginType type, boolean markdown) -
getDocumentation
public static org.eclipse.lsp4j.MarkupContent getDocumentation(DTDEntityDecl entity, EntitiesDocumentationUtils.EntityOriginType type, boolean markdown) -
getDocumentation
public static org.eclipse.lsp4j.MarkupContent getDocumentation(String entityName, String entityValue, String systemID, String publicID, String targetURI, EntitiesDocumentationUtils.EntityOriginType type, boolean markdown) Returns the entity documentation.- Parameters:
entityName- the entity name.entityValue- the entity value.type- the entity type (local, external or predefined)markdown- true if the documentation can be formatted as markdown and false otherwise.- Returns:
- the entity documentation.
-