public class FilePathCompletionResult extends Object
| Constructor and Description |
|---|
FilePathCompletionResult(int startOffset,
int endOffset,
Path baseDir) |
| Modifier and Type | Method and Description |
|---|---|
static FilePathCompletionResult |
create(String content,
String fileUri,
int startNodeOffset,
int endNodeOffset,
int completionOffset,
Character separator)
Create the file path completion result.
|
Path |
getBaseDir()
Returns the resolved base directory of the declared path.
|
int |
getEndOffset()
|
int |
getStartOffset()
|
public FilePathCompletionResult(int startOffset,
int endOffset,
Path baseDir)
public int getStartOffset()
public int getEndOffset()
public Path getBaseDir()
the method will return 'file://C:/path/to'
public static FilePathCompletionResult create(String content, String fileUri, int startNodeOffset, int endNodeOffset, int completionOffset, Character separator)
content - the xml content.fileUri - the file Uri.startNodeOffset - the start node offset where file path is declared.endNodeOffset - the end node offset where file path is declared.completionOffset - the completion offset.separator - the separator used to declare multiple files and null
otherwise.Copyright © 2024. All rights reserved.