public class LSDocument extends Object
| Constructor and Description |
|---|
LSDocument() |
LSDocument(String uri) |
LSDocument(String uri,
String sourceRoot) |
| Modifier and Type | Method and Description |
|---|---|
Path |
getPath()
Get the path of the given URI.
|
String |
getSourceRoot()
Get source root.
|
Path |
getSourceRootPath()
Get source root path.
|
URI |
getURI()
Get the URI of the given string URI.
|
String |
getURIString()
Get the uri.
|
void |
setSourceRoot(String sourceRoot)
Set source root.
|
void |
setUri(String uri)
Set URI.
|
public LSDocument()
public LSDocument(String uri)
public Path getPath() throws MalformedURLException, URISyntaxException
Path get the pathMalformedURLException - can throw malformed url exceptionURISyntaxException - can throw URI syntax exceptionpublic Path getSourceRootPath()
Path source root pathpublic URI getURI() throws MalformedURLException, URISyntaxException
URI get the URIMalformedURLException - can throw malformed url exceptionURISyntaxException - can throw URI syntax exceptionpublic void setUri(String uri)
uri - string URIpublic void setSourceRoot(String sourceRoot)
sourceRoot - source rootCopyright © 2018 WSO2. All rights reserved.