Class: Facet

Facet

new Facet(id, name, value, groupId, groupName, options) → {Facet}

Parameters:
Name Type Description
id number
name string
value string
groupId number
groupName string
options Array.<Object>
Source:
Returns:
Type
Facet

Methods

(static) createFromJson(jsonObject) → {Facet}

Parameters:
Name Type Description
jsonObject Object
Source:
Returns:
Type
Facet

(static) uniqueKey() → {string}

a facet is unique with the combination about id and group id
Source:
Returns:
Type
string

getGroupId() → {number}

Get the group id.
Source:
Returns:
Type
number

getGroupName() → {string}

Get the group name.
Source:
Returns:
Type
string

getId() → {number}

Get the facet id.
Source:
Returns:
Type
number

getName() → {string}

Get the facet name.
Source:
Returns:
Type
string

getOption(key) → {string|null}

Get option value.
Parameters:
Name Type Description
key string The option key.
Source:
Returns:
Type
string | null

getUniqueKey() → {string}

a facet is unique with the combination about id and group id
Source:
Returns:
Type
string

getValue() → {string}

Get the value.
Source:
Returns:
Type
string