public class ExtensionMetadata extends Object
Extension Metadata provides detail about a transform or resource services extension. All of the detail is optional but recommended.
| Modifier and Type | Class and Description |
|---|---|
static class |
ExtensionMetadata.ScriptLanguage
The ScriptLanguage enumeration specifies the categories of metadata read from or written to the database.
|
| Modifier and Type | Field and Description |
|---|---|
static ExtensionMetadata.ScriptLanguage |
JAVASCRIPT
Convenience constant to provide something shorter than ExtensionMetadata.ScriptLanguage.JAVASCRIPT
|
static ExtensionMetadata.ScriptLanguage |
XQUERY
Convenience constant to provide something shorter than ExtensionMetadata.ScriptLanguage.XQUERY
|
| Constructor and Description |
|---|
ExtensionMetadata()
Zero-argument constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RequestParameters |
asParameters()
Constructs request parameters expressing the extension metadata.
|
String |
getDescription()
Returns the description of the extension.
|
String |
getProvider()
Returns the name of the organization providing the extension.
|
ExtensionMetadata.ScriptLanguage |
getScriptLanguage()
Returns the script language for this resource extension, either XQUERY (default) or JAVASCRIPT.
|
String |
getTitle()
Returns the title of the extension.
|
String |
getVersion()
Returns the version identifier for the extension implementation.
|
void |
setDescription(String description)
Specifies the description of the extension.
|
void |
setProvider(String provider)
Specifies the name of the organization providing the extension.
|
void |
setScriptLanguage(ExtensionMetadata.ScriptLanguage scriptLanguage)
Specifies the script language for this resource extension, either XQUERY (default) or JAVASCRIPT.
|
void |
setTitle(String title)
Specifies the title of the extension.
|
void |
setVersion(String version)
Specifies the version identifier for the extension implementation.
|
public static final ExtensionMetadata.ScriptLanguage XQUERY
Convenience constant to provide something shorter than ExtensionMetadata.ScriptLanguage.XQUERY
public static final ExtensionMetadata.ScriptLanguage JAVASCRIPT
Convenience constant to provide something shorter than ExtensionMetadata.ScriptLanguage.JAVASCRIPT
public String getTitle()
Returns the title of the extension.
public void setTitle(String title)
Specifies the title of the extension.
title - the extension titlepublic String getDescription()
Returns the description of the extension.
public void setDescription(String description)
Specifies the description of the extension.
description - the extension descriptionpublic String getProvider()
Returns the name of the organization providing the extension.
public void setProvider(String provider)
Specifies the name of the organization providing the extension.
provider - the provider namepublic String getVersion()
Returns the version identifier for the extension implementation.
public void setVersion(String version)
Specifies the version identifier for the extension implementation.
version - the version number or codepublic ExtensionMetadata.ScriptLanguage getScriptLanguage()
Returns the script language for this resource extension, either XQUERY (default) or JAVASCRIPT.
public void setScriptLanguage(ExtensionMetadata.ScriptLanguage scriptLanguage)
Specifies the script language for this resource extension, either XQUERY (default) or JAVASCRIPT.
scriptLanguage - the script language for this resource extensionpublic RequestParameters asParameters()
Constructs request parameters expressing the extension metadata.
Ordinarily, this method is called internally during extension processing, but you can call this method directly if convenient.
Copyright © 2013-2017 MarkLogic Corporation.