public class ExtensionMetadata extends Object
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
public static final ExtensionMetadata.ScriptLanguage JAVASCRIPT
public String getTitle()
public void setTitle(String title)
title
- the extension titlepublic String getDescription()
public void setDescription(String description)
description
- the extension descriptionpublic String getProvider()
public void setProvider(String provider)
provider
- the provider namepublic String getVersion()
public void setVersion(String version)
version
- the version number or codepublic ExtensionMetadata.ScriptLanguage getScriptLanguage()
public void setScriptLanguage(ExtensionMetadata.ScriptLanguage scriptLanguage)
scriptLanguage
- the script language for this resource extensionpublic RequestParameters asParameters()
Copyright © 2013-2016 MarkLogic Corporation.