UriExportContext

Inheritance: java.lang.Object

public class UriExportContext

Contains information about a resource URI being written during conversion. Passed to IUriExportStrategy.updateResourceUri(UriExportContext).

Read the default values from resourceFileName and resourceFileUri , then call #setResourceFileName(String).setResourceFileName(String) or #setResourceFileUri(String).setResourceFileUri(String) to override them.

Constructors

Methods

Method Description
getResourceFileName() Gets the default resource file name generated by the library.
getResourceFileUri() Gets the default URI that the library would write into the Markdown output.
getResourceFileNameOutput() Gets the overridden file name, or null if no override was set.
getResourceFileUriOutput() Gets the overridden URI, or null if no override was set.
setResourceFileName(String resourceFileName) Overrides the resource file name in the Markdown output.
setResourceFileUri(String resourceFileUri) Overrides the URI that will appear in the Markdown output.

UriExportContext(String resourceFileName, String resourceFileUri)

public UriExportContext(String resourceFileName, String resourceFileUri)

Parameters:

Parameter Type Description
resourceFileName java.lang.String
resourceFileUri java.lang.String

getResourceFileName()

public String getResourceFileName()

Gets the default resource file name generated by the library.

Returns: java.lang.String

getResourceFileUri()

public String getResourceFileUri()

Gets the default URI that the library would write into the Markdown output.

Returns: java.lang.String

getResourceFileNameOutput()

public String getResourceFileNameOutput()

Gets the overridden file name, or null if no override was set.

Returns: java.lang.String

getResourceFileUriOutput()

public String getResourceFileUriOutput()

Gets the overridden URI, or null if no override was set.

Returns: java.lang.String

setResourceFileName(String resourceFileName)

public void setResourceFileName(String resourceFileName)

Overrides the resource file name in the Markdown output.

Parameters:

Parameter Type Description
resourceFileName java.lang.String the new file name

setResourceFileUri(String resourceFileUri)

public void setResourceFileUri(String resourceFileUri)

Overrides the URI that will appear in the Markdown output.

Parameters:

Parameter Type Description
resourceFileUri java.lang.String the new URI (for example, a CDN URL)