Class: EMLMissingValueCode

EMLMissingValueCode()

A missing value code is a code that is used to indicate that a value is missing from the data.

Extends

  • Backbone.Model

Methods

defaults() → {object}

The default attributes for an EMLMissingValueCode model.
Properties:
Name Type Description
type string The element type in the DOM
code string The missing value code
codeExplanation string The explanation for the missing value code
nodeOrder Array.<string> The order of the EML nodes in this object
Source:
Returns:
The default attributes
Type
object

isEmpty() → {boolean}

Return true if all of the model's attributes are empty
Source:
Returns:
Type
boolean

serialize() → {string}

Create an XML string from the model's attributes.
Source:
Returns:
The XML string
Type
string

updateDOM(objectDOM)

Copy the original XML and update fields in a DOM object
Parameters:
Name Type Description
objectDOM object The DOM object to update
Source:

validate() → {object|undefined}

Validate the model attributes
Source:
Returns:
The validation errors, if any
Type
object | undefined